![]() |
PHP Code to Include or Exclude forums
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! |
What hook location are you using?
|
Quote:
|
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: HTML Code:
<if condition="in_array($thread['forumid'], array(1,2,3,4,5,6))"> |
thank you, that worked perfectly! :)
|
All times are GMT. The time now is 12:53 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:
|