Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

UHP-CB automatic page approval

  • aqsg
  • aqsg
  • OFFLINE
  • Posts: 29
  • Thanks: 0
  • Karma: 3
18 years 10 months ago #5904 by aqsg
Replied by aqsg on topic Re:UHP-CB automatic page approval
The function you are looking for looks something like this when cleaned up. Note we don't use this function it is just taken straight from the old code and cleaned up.

[code:1]
function uhpadmin_addallusers($option)
{
global $database, $my, $mosConfig_absolute_path, $mosConfig_live_site;
//require_once("components/com_uhp/uhp_config.php"«»);

$lists = array();
$where = array();
$where[] = "u.id is NULL ";
$database -> setQuery("SELECT h.* FROM #__users as h" . "\nLEFT JOIN #__uhp as u ON u.user_id = h.id"
. (count($where) ? "\nWHERE "
. implode(' AND ', $where) : ""«») );
if (!($users = $database -> loadObjectList()))
{
mosRedirect("index2.php?option=$option", 'Access granted to all users.');
}

for ( $i = 0, $n = count( $users ); $i < $n; $i++ )
{
$userrow = &$users[$i];
$row = new mosuhp($database);
$row->user_id = $userrow->id;
$row->nick = $userrow->username;
$row->email = $userrow->email;
$row->website = "";
$row->published = 1;
$row->shownick = 1;
$row->showemail = 0;
$row->showwebsite = 1;
$row->mypage = UHP_NOUHP;
$row->_tbl_key = "id";

if (!$row -> check())
{
echo "<script> alert('" . $row->getError() . "'); window.history.go(-1); </script>\n";
exit();
}
if (!$row -> store())
{
echo "<script> alert('" . $row->getError() . "'); window.history.go(-1); </script>\n";
exit();
}

$row -> checkin();
}

mosRedirect("index2.php?option=$option","All users granted access"«»);

}
[/code:1]

Director/Solutions Architect of Australian Quality Solutions Group ( www.aqsg.com.au )
Founder of josCommunity ( www.joscommunity.com )
Founder of CCHSStudent ( www.cchsstudent.com )
Community Builder 3rd Party Developer
PAXXGallery Developer

Please Log in or Create an account to join the conversation.

  • chaking
  • chaking
  • OFFLINE
  • Posts: 12
  • Thanks: 0
  • Karma: 0
18 years 10 months ago #5914 by chaking
Replied by chaking on topic Re:UHP-CB automatic page approval
great... thanks so much!

Please Log in or Create an account to join the conversation.

  • aqsg
  • aqsg
  • OFFLINE
  • Posts: 29
  • Thanks: 0
  • Karma: 3
18 years 10 months ago #6011 by aqsg
Replied by aqsg on topic Re:UHP-CB automatic page approval
When you get a cron script or something working just give us ahoy and hopefully we'll be able to use it with the new User Home Pages

Director/Solutions Architect of Australian Quality Solutions Group ( www.aqsg.com.au )
Founder of josCommunity ( www.joscommunity.com )
Founder of CCHSStudent ( www.cchsstudent.com )
Community Builder 3rd Party Developer
PAXXGallery Developer

Please Log in or Create an account to join the conversation.

  • aqsg
  • aqsg
  • OFFLINE
  • Posts: 29
  • Thanks: 0
  • Karma: 3
18 years 10 months ago #6032 by aqsg
Replied by aqsg on topic Re:UHP-CB automatic page approval
We are releasing a new User Home Pages component that intergrates with CB and UDDEim soon.

Minimum Requirements are:
Joomla 1.0.7

Can be extended using:
Community Builder
UDDEim 0.5
TFSforMambo

We are looking for 50 users who have had experience with CB and preferably some coding experience to beta test our new component and pick out any bugs in the code (possibly provide a solution) to help us better the component.

Please PM me if you are interested and just list your level of experience with Joomla/CB and coding ability.

Hurry we've already signed up 9 people.

NOTE: Applying more than once will forfeit your application.

Director/Solutions Architect of Australian Quality Solutions Group ( www.aqsg.com.au )
Founder of josCommunity ( www.joscommunity.com )
Founder of CCHSStudent ( www.cchsstudent.com )
Community Builder 3rd Party Developer
PAXXGallery Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum