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 >>

CBSubs 1.0

CBSubs 1.0.3 released!

Find out more about the revolutionary new Joomla subscription system:

Info on CBSubs

CB 1.2.3 Documentation

Thank you bonus:

ProfileBook (+Blog) 1.2RC
ProfileGallery 1.2RC2
CB Privacy 1.0RC

What? Why? Where?

Click here for a yearly subscription: subscribe now

CB 1.2.3 Download

Community Builder 1.2.3
Stable and native for:
Joomla 1.5 & 1.0 & Mambo
(incl. CB 1.2.3 Installation pdf)
You need to be a registered member to download.

Full 180 pages updated
CB 1.2.3 documentation:
You need to be a CB doc subscriber to download.

CB Login