UBB.Dev
Posted By: jerry Header question... - 07/28/2002 10:29 PM
How is ubbdev.com calling the header menu and logo above? From a .tmpl file? Is so, would it be from the ubbt_header.tmpl file? Curious how this was done.
Posted By: JoshPet Re: Header question... - 07/28/2002 11:00 PM
The header does come from the ubbt_header.tmpl file. The menu at the top comes from ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl.

Hope that helps!
Posted By: jerry Re: Header question... - 07/28/2002 11:12 PM
Thanks for direction! Appreciate it.
Posted By: jerry Re: Header question... - 07/28/2002 11:22 PM
Josh, since we are on the subject of tmpl... would it be possible to modify the ubbthreads.tmpl file to display total rigistered users to administrators and/or moderators?
Posted By: Aglavalin Re: Header question... - 07/28/2002 11:30 PM
It already shows total registered users to everyone all the time at the bottom of the page. Do you mean to change this to showing it to only admins and moderators? If so, it can probably be done with a simple if statement added before displaying that line.
Posted By: JoshPet Re: Header question... - 07/28/2002 11:55 PM
To Display Total Number of users only to Admins and Mods:

in your ubbthreads.tmpl file, find this around line 101:
code:
$registered {$ubbt_lang['REGED_USERS']}



Change it to this:
code:
UBBTPRINT;
if ($user['U_Status'] == "Administrator" or $user['U_Status'] == "Moderator") {
echo <<<UBBTPRINT
$registered {$ubbt_lang['REGED_USERS']}
UBBTPRINT;
}
echo <<<UBBTPRINT



Hope that helps!
Posted By: jerry Re: Header question... - 07/29/2002 12:18 AM
Thanks again! Works like a charm...
© UBB.Developers