![]() |
How to use condition: if on this page, don't show ads to anybody
I was looking for a code to do this but I can't find it.
I would like to remove ads on register.php Is it possible to use a condition like: <vb:if condition="is on register.php">Ads removed</vb:if> Thanks in advance! PD: I think this is a way to boost new members as it would be easier to register. |
Show in only one file: Look for define('THIS_SCRIPT', 'calendar'); in the top of the php file you want it to show in.
Code:
<vb:if condition="THIS_SCRIPT == 'calendar'">Show this only on calendar.php</vb:if> Show in every file but one: Look for define('THIS_SCRIPT', 'calendar'); in the top of the php file you do not want it to show in. Code:
<vb:if condition="THIS_SCRIPT != 'calendar'">Show this only on calendar.php</vb:if> https://vborg.vbsupport.ru/showthread.php?t=231525 |
Thanks for your quick reply.
I was trying to use it but I can't find a way: My ads are shown using vbulletin ad manager: Code:
<div id="ad_global_below_navbar"> Code:
<script type="text/javascript"> Code:
<vb:if condition="THIS_SCRIPT != 'register'">Don't show on register.php</vb:if> Thanks for your time! |
You are using the Advertising tab in the admincp? So put Mikes code around your ad code that you entered into the Ad HTML box.
|
Thanks!!
I wrote: Code:
<vb:if condition="THIS_SCRIPT != 'register'"> PS: I wanted to avoid ads on two pages, so I wrote: Code:
<vb:if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'gdirect'"> |
All times are GMT. The time now is 09:54 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:
|