The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I hide the ads banners from this page in forum?
I have a forum with some products such as (DownloadII, Gallery, classifieds, cms, ...)
I want to display the ads banners only in forum pages, I mean I want to hide the banners from some pages which is: forum/downloads.php forum/classifieds.php gallery/index.php /index.php What is the (if statement) can I use? __________________________ I have this code to hide the banners from the users profiles and it is working fine Code:
<vb:if condition="THIS_SCRIPT!='member'"> I tried for example Code:
<vb:if condition="THIS_SCRIPT!='downloads.php'"> Any hint? |
#2
|
||||
|
||||
Have you tried dropping the ".php" ?
|
#3
|
||||
|
||||
The best way i think is, you put your adsense-code in the template of your choise.
|
#4
|
|||
|
|||
Yes, It is not working
Quote:
so I should add the ads banners code either in header or navbar |
#5
|
||||
|
||||
Check what THIS_SCRIPT is defined as on each of the pages you don't want your ads to show on.
PHP Code:
Then Code:
<vb:if condition="THIS_SCRIPT != 'XXX'">Ad</vb:if> |
Благодарность от: | ||
sadiq6210 |
#6
|
|||
|
|||
Quote:
This is very helpful post Now it is working Thank you very much Iain, you are the best ^_^ This is the result: Code:
<vb:if condition="THIS_SCRIPT!='member'"> <vb:if condition="THIS_SCRIPT!='downloads2'"> <vb:if condition="THIS_SCRIPT!='gallery_index'"> <vb:if condition="THIS_SCRIPT!='mc_classifieds'"> ADS </vb:if></vb:if></vb:if></vb:if> Thanks dear |
#7
|
||||
|
||||
No worries =]
Yeah, you should be able to combine them into one by doing Code:
<vb:if condition="THIS_SCRIPT != 'member' OR THIS_SCRIPT != 'downloads2' OR THIS_SCRIPT != 'gallery_index' OR THIS_SCRIPT != 'mc_classifieds'"> ADS </vb:if> |
#8
|
|||
|
|||
Unfortunately, this is not working Iain
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|