Prince
02-09-2009, 06:01 PM
Please help - I need to wrap some ad code with a PHP IF statement so I can specify forums for it to either display or not display, either way would work.
Thanks!
Lynne
02-09-2009, 08:40 PM
What hook location are you using?
Prince
02-09-2009, 09:18 PM
What hook location are you using?
the postbit template
Lynne
02-10-2009, 01:57 AM
You can't put php in templates. You said php, so I assumed you were writing php code - like in a plugin, no?
Well, if in the plugin template, probably:
<if condition="in_array($thread['forumid'], array(1,2,3,4,5,6))">
stuff to show only in forumid 1,2,3,4,5,6
</if>
Prince
02-10-2009, 02:40 AM
thank you, that worked perfectly! :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.