| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  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. | 
| 
			 
			#2  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			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 | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			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">
<!--
	var SESSIONURL = "";
	var SECURITYTOKEN = "guest";
	var IMGDIR_MISC = "http://xxxxxxxxxxxxx";
	var IMGDIR_BUTTON = "http://xxxxxxxxxxxxx";
	var vb_disable_ajax = parseInt("0", 10);
	var SIMPLEVERSION = "412";
	var BBURL = "http://xxxxxxxxxxxxx";
	var LOGGEDIN = 0 > 0 ? true : false;
	var THIS_SCRIPT = "register";
        var RELPATH = "register.php";
        var PATHS = {forum : ""}
// -->
</script>Code: <vb:if condition="THIS_SCRIPT != 'register'">Don't show on register.php</vb:if> Thanks for your time! | 
| 
			 
			#4  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   
			
			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.
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			Thanks!! I wrote: Code: <vb:if condition="THIS_SCRIPT != 'register'"> HTML </vb:if> PS: I wanted to avoid ads on two pages, so I wrote: Code: <vb:if condition="THIS_SCRIPT != 'register' AND THIS_SCRIPT != 'gdirect'"> | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |