View Full Version : Hide ad if on xyz page
Jon12345
03-06-2013, 10:39 PM
I have some pages where I want to avoid my ads from showing. So, I need some type of conditional.
How can stop my ad code from showing on certain pages?
I am using 3.8x.
Thanks,
Jon
blind-eddie
03-07-2013, 03:28 AM
https://vborg.vbsupport.ru/showthread.php?t=215032
On the linked page, look for the If This Script Is or Is Not XXX section.
You will be wanting to use the following on the page you do not want the ad code to show.
<if condition="THIS_SCRIPT != 'your page name'"></if>
Jon12345
03-07-2013, 09:42 AM
I tried something like that but I am not sure I got the page name right. Is it the file name or template name or what?
blind-eddie
03-07-2013, 12:05 PM
What php file created the page?
Look in URL
Lynne
03-07-2013, 03:40 PM
I tried something like that but I am not sure I got the page name right. Is it the file name or template name or what?
Look at the top of the script to find out what THIS_SCRIPT is defined as.
define('THIS_SCRIPT', 'xxxxxx');
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.