The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have a strip of ads that I have set up with conditionals so they change based on what forum you're viewing. I want a default set to show up on search results pages, but I think it would look cleaner to remove them completely from the main forum home view. I imagine I can enclose the whole section in an <if> statement that should do this, but I don't know what the if statement should be exactly.
Basically, <IF [current template/page] !==[the main home page one]> (ad stuff) </if> How would I write this properly? Thanks. |
|
#2
|
|||
|
|||
|
<if condition="THIS_SCRIPT != 'index'">
</if> |
|
#3
|
|||
|
|||
|
Well depending on the script, put at bottom of navbar template like this:
HTML Code:
<if condition="THIS_SCRIPT == 'defined page'">ad code here</if> In attachments for example its: define('THIS_SCRIPT', 'attachment'); So you would use HTML Code:
<if condition="THIS_SCRIPT == 'attachment'">ad code here</if> |
|
#4
|
|||
|
|||
|
Sweet, that does it! Thanks!
Quote:
I appreciate the speedy responses! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|