The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am trying this if statement for one forum and its working
Code:
<if condition="$forum[forumid] == 86"> but when i want to add one more it doesent work what ma i doing wrong? Code:
<if condition="$forum[forumid] == 86,12"> |
#2
|
|||
|
|||
![]() Code:
<if condition="in_array($forum[forumid], array(86,12))"> |
#3
|
|||
|
|||
![]()
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. |
#4
|
|||
|
|||
![]()
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. |
#5
|
|||
|
|||
![]()
3.6.0 and the template is forumhome_forumbit_level2_post
|
#6
|
|||
|
|||
![]()
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. |
#7
|
|||
|
|||
![]()
Thanks works good now
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|