Arrow Home arrow Forums
larger font smaller font default font Fixed screen resolution Auto adjust screen size

Joomlapolis Forums  


<< Start < Prev 1 2 Next > End >>
Re:UHP-CB automatic page approval
Date: 2006/02/09 09:41 By: aqsg Status: User  
Karma: 4  
Junior Joomlapolitan

Posts: 35
graphgraph
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:

      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"«»);              }


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
Click here to see the profile of this user The administrator has disabled public write access.

Re:UHP-CB automatic page approval
Date: 2006/02/09 15:07 By: chaking Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 18
graphgraph
great... thanks so much!
Click here to see the profile of this user The administrator has disabled public write access.

Re:UHP-CB automatic page approval
Date: 2006/02/10 16:25 By: aqsg Status: User  
Karma: 4  
Junior Joomlapolitan

Posts: 35
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

Re:UHP-CB automatic page approval
Date: 2006/02/10 23:48 By: aqsg Status: User  
Karma: 4  
Junior Joomlapolitan

Posts: 35
graphgraph
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
Click here to see the profile of this user The administrator has disabled public write access.

<< Start < Prev 1 2 Next > End >>

Documentation

Documentation Subscription Service
(updated for CB 1.2 RC2)

What?

Why?

Where?

Just click here for answers!

Click here for a yearly subscription: subscribe now

Download Latest Release

The latest stable Community Builder Release is version 1.1 for Joomla 1.0 and Mambo.
You need to be a registered member of Joomlapolis to download.

The latest release candidate of Community Builder is version 1.2 RC3, native for Joomla 1.0, 1.5 and Mambo.
It is available as "thank you" to all CB documentation subscribers at this time.

CB Login