The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I want to display some text next to the 'Most users ever online was x, 20th January 2008 at 12:53 PM.' text on the index page but do not want it to appear on the /online.php page.
I have written this code but it is showing nothing when implemented into the online phrase: - Code:
Most users ever online was {1}, {2} at {3}. <? $url = $_SERVER['REQUEST_URI']; if($url == 'online.php') { echo "front"; } else { echo " | <font color=#045CA7>Administrators</font> | <font color=#55932F>Moderators</font> | <font color=#CD54C1>Premium Members</font> | Members";} ?> |
#2
|
||||
|
||||
![]()
Where are you putting that code? I do something similar on my site but I just edited the FORUMHOME template to add it in.
|
#3
|
||||
|
||||
![]()
this was inside the phrase manager for the most users online.
|
#4
|
|||
|
|||
![]()
What have you got
Quote:
|
#5
|
||||
|
||||
![]()
Can you have php code within a phrase? Have you ever done that before? (I am really not sure here.)
|
#6
|
||||
|
||||
![]()
im not sure - any suggestions?
|
#7
|
||||
|
||||
![]()
Well, you could just edit the template. I put this before the most ever online phrase text:
Code:
<span style="float:$stylevar[right]">My Extra Stuff</span> |
#8
|
||||
|
||||
![]()
What template is that? and will that change it on just the index or also on the whos online page?
|
#9
|
|||
|
|||
![]()
Edit the FORUMHOME template...
AdminCP > Styles & Templates > Style Manager > Edit Templates > Forum Home Templates > FORUMHOME. (You'll be looking for the area around <!-- what's going on box --> comment) |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|