View Full Version : if condition="$forum[forumid]
I am trying this if statement for one forum and its working
<if condition="$forum[forumid] == 86">
but when i want to add one more it doesent work what ma i doing wrong?
<if condition="$forum[forumid] == 86,12">
peterska2
08-21-2006, 10:19 AM
<if condition="in_array($forum[forumid], array(86,12))">
If you have more than one then you need to place it in an array.
i get this error when i whant to save the template
With a few exceptions, function calls are not permitted in template conditional expressions. Please go back and re-write this expression.
peterska2
08-21-2006, 10:36 AM
which version vB and which template?
I use that same code myself in version template across my 3.6.0 with no problems, but I'll check it out for you on the version and location that you are using it.
3.6.0 and the template is forumhome_forumbit_level2_post
peterska2
08-21-2006, 10:47 AM
yeah, works fine. Of course it does help if I don't put I typo in it :(
I've edited the code above to remove the typo, you shouldn't have any problems now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.