The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
What hook location are you using?
|
#3
|
|||
|
|||
|
#4
|
||||
|
||||
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))"> stuff to show only in forumid 1,2,3,4,5,6 </if> |
#5
|
|||
|
|||
thank you, that worked perfectly!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|