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

Joomlapolis Forums  


UHP-CB automatic page approval
Date: 2006/01/30 09:35 By: chaking Status: User  
Karma: 0  
Fresh Joomlapolitan

Posts: 18
graphgraph
Ok, so I'm trying to insert the database statement that runs when you "add all users" (allow all users to use their "my homepage") in UHP's backend, into the registration of CB... Can someone help me do this please? I believe the code below is what the 'addallusers' function runs... Can someone help me put this into a self-running function when someone registers an/or after verification? I'm thinking this should be pretty easy, I don't know what I'm doing with mysql statements though... thanks!

Code:

 function Ffd7a4b05($option) {  global $database$my$mosConfig_absolute_path$mosConfig_live_site; require_once("components/com_uhp/functions.php"«»); 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.'); }

Click here to see the profile of this user The administrator has disabled public write access.


      Topics Author Date
    thread link
UHP-CB automatic page approval
chaking 2006/01/30 09:35
    thread link
thread linkthread link Re:UHP-CB automatic page approval
JoomlaJoe 2006/01/30 13:58
    thread link
thread linkthread link Re:UHP-CB automatic page approval
chaking 2006/01/30 18:28
    thread link
thread linkthread linkthread link Re:UHP-CB automatic page approval
chaking 2006/01/31 17:21
    thread link
thread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
chaking 2006/02/04 20:31
    thread link
thread linkthread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
aqsg 2006/02/09 01:26
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
aqsg 2006/02/09 09:41
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
chaking 2006/02/09 15:07
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
aqsg 2006/02/10 16:25
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:UHP-CB automatic page approval
aqsg 2006/02/10 23:48

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