View Full Version : If Statement in Forumhome
kronnos
02-04-2008, 10:38 AM
I would like to make an advertisement code show on my home page only. How do I make an if statement for exp: if it is forumhome then show "some ad code here1" , if its showthread then show" some ad code here1" , if its any other page show "some ad code 2"
Paul M
02-04-2008, 11:10 AM
Check the THIS_SCRIPT variable.
kronnos
02-04-2008, 05:53 PM
Whew do i find it?
--------------
Ohh, just used phrase search and got some result but no if statements:(
--------------- Added 1202132520 at 1202132520 ---------------
ok i found this: <if condition="THIS_SCRIPT != 'forumdisplay' and THIS_SCRIPT != 'showthread'">
So how do i correctly use the above phrase then right after it paste the code i want and write else another code?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.