The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How can I detect what template the user is viewing?
I have added a custom template which works great.
But for this specific template I don't want the ad_navbar_below to be included. If I could put some kind of conditional in the navbar template that says something to the effect of: Code:
if current_template != sponsors.php then $ad_location[ad_navbar_below] end if That would be perfect for me. Anyone know how I can code this to work? I am new to this so be gentle. Thanks Eric |
#2
|
||||
|
||||
You can base your condition off of THIS_SCRIPT if that is defined at the top of your page:
HTML Code:
<if condition="THIS_SCRIPT == 'sponsors'"> stuff </if> |
#3
|
||||
|
||||
That did it perfectly. Thanks Lynne!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|