php forum
php mysql forum
php mysql smarty
 
Topic Options
#221806 - 07/28/02 03:29 PM Header question...
jerry Offline
User

Registered: 06/25/02
Posts: 41
How is threadsdev.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.

Top
#221807 - 07/28/02 04:00 PM Re: Header question... [Re: cradloff]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
The header does come from the ubbt_header.tmpl file. The menu at the top comes from ubbt_registerednav.tmpl and ubbt_unregisterednav.tmpl.<br /><br />Hope that helps! <img src="/forum/images/icons/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221808 - 07/28/02 04:12 PM Re: Header question... [Re: Daine]
jerry Offline
User

Registered: 06/25/02
Posts: 41
Thanks for direction! Appreciate it.

Top
#221809 - 07/28/02 04:22 PM Re: Header question... [Re: Daine]
jerry Offline
User

Registered: 06/25/02
Posts: 41
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?

Top
#221810 - 07/28/02 04:30 PM Re: Header question... [Re: cradloff]
Aglavalin Offline
Enthusiast

Registered: 06/18/02
Posts: 394
Loc: Southern California
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.

Top
#221811 - 07/28/02 04:55 PM Re: Header question... [Re: cradloff]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
To Display Total Number of users only to Admins and Mods:<br /><br />in your ubbthreads.tmpl file, find this around line 101:<br /><pre><font class="small">code:</font><hr>$registered {$ubbt_lang['REGED_USERS']}<br /></pre><hr><br /><br />Change it to this:<br /><pre><font class="small">code:</font><hr>UBBTPRINT;<br />if ($user['U_Status'] == "Administrator" or $user['U_Status'] == "Moderator") {<br />echo <<<UBBTPRINT<br />$registered {$ubbt_lang['REGED_USERS']}<br />UBBTPRINT;<br />}<br />echo <<<UBBTPRINT<br /></pre><hr><br /><br />Hope that helps!<br />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#221812 - 07/28/02 05:18 PM Re: Header question... [Re: Daine]
jerry Offline
User

Registered: 06/25/02
Posts: 41
Thanks again! Works like a charm...

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks