The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
disable certain templates
What im trying to do is call certain templates to be displayed in certain forums without using conditionals such as.
<if condition="$show and (in_array($forumid, array (X,Y)))"> $navbar </if> but have something more like <if condition="$show[blah_template]"> $navbar </if> (using $navbar template as an example) im going to have too many forums and once i add more fourms just going back and adding a number to all the templates has thas the array conditionals that i dont want certain things to show in certain forums is just too much work. so is their a way to do this as an option in admincp when editing or adding a new forum that gives an option if you want only enable/disable certain templates from showing in a particular fourm but not all |
#2
|
|||
|
|||
if you need the navbar to be disabled only, this is simple... no need to edit the template. in any script you want it to be managed with a conditional, just do like:
PHP Code:
same thing for all the templates in the scripts... |
#3
|
||||
|
||||
edit: nevermind i figured it out at vb.com but thx for your help nexialys.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|