![]() |
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 |
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... |
edit: nevermind i figured it out at vb.com but thx for your help nexialys.
|
All times are GMT. The time now is 10:37 PM. |
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:
|