![]() |
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? |
Have you tried dropping the ".php" ?
|
The best way i think is, you put your adsense-code in the template of your choise.
|
Quote:
Quote:
so I should add the ads banners code either in header or navbar |
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> |
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'"> Thanks dear |
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'"> |
Quote:
|
All times are GMT. The time now is 05:29 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|