The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Find out script_name
I'm trying to create a navigation bar, which recognises which page you are on and then if you are on that page, it will put a different CSS state.
Can anyone tell me how to do this? I've got this for my blogs, and it works: PHP Code:
Thanks. |
#2
|
||||
|
||||
Something I use myself
Code:
<if condition="$show['guest']"> <div id="relevant_replacement"> <if condition="(THIS_SCRIPT == 'forumdisplay') OR (THIS_SCRIPT == 'showthread')"> <!--VBSEO_RR_1--> <else /> <if condition="(THIS_SCRIPT == 'album')"> <h1 class="descr">$vbphrase[albums]</h1> <else /> <if condition="(THIS_SCRIPT == 'tags')"> <h1 class="descr">$vbphrase[tags]</h1> <else /> <if condition="(THIS_SCRIPT == 'member')"> <h1>$userinfo[username]</h1> <p>Viewing $userinfo[username]'s profile, <font style="text-transform: lowercase;">$prepared[usertitle]</font> at $vboptions[bbtitle]</p> <else /> <if condition="(THIS_SCRIPT == 'blog') OR (THIS_SCRIPT == 'blog_search') OR (THIS_SCRIPT == 'blog_ucp')"> <h1 class="descr">$vbphrase[blogs]</h1> <else /> <if condition="(THIS_SCRIPT == 'blog_post')"> <h1 class="descr">$bloginfo[title]</h1> <else /> <h1>$vboptions[bbtitle]</h1> <p>$vbphrase[bbdescription]</p> </if> </if> </if> </if> </if> </if> </div> </if> Code:
define('THIS_SCRIPT', 'xxx'); |
#3
|
|||
|
|||
Thanks.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|