The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Coding issue...
I have a dropdown call template and below is the code in the template:
Code:
<!-- post specs_menu --> <if condition="$post['field23']"> <div style="background-image: url('http://glitchpc.com/forums/images/buttons/specs.gif'); position:absolute; width:auto;" id="specs_$post[postid]" class="vbmenu_control"> <a href="#specs">$vbphrase[dropdown_title]</a> <script type="text/javascript"> vbmenu_register("specs_$post[postid]"); </script> </div> </if> <!-- / post specs_menu --> I want to exclude certain forums from using this code (or calling the template)...so I tried the following and I get a parse error...malformed conditional. Code:
<!-- post specs_menu --> <if condition="$forum[forumid] != XX"> <if condition="$post['field23']"> <div style="background-image: url('http://glitchpc.com/forums/images/buttons/specs.gif'); position:absolute; width:auto;" id="specs_$post[postid]" class="vbmenu_control"> <a href="#specs">$vbphrase[dropdown_title]</a> <script type="text/javascript"> vbmenu_register("specs_$post[postid]"); </script> </div> </if> </if> <!-- / post specs_menu --> The code above will work with one forum...where the forum ID is "XX". However, if I add another forum ID after the XX (separated by a comma) the conditional fails...malformed syntax. Can someone help me correct this? Thank you. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|