View Full Version : vBulletin 4 Template Conditionals not work for VB4.0.3
squangcao
04-23-2010, 11:02 AM
<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>
not work, i test some forum.
borbole
04-23-2010, 11:21 AM
<vb:if condition="in_array($forum['forumid'], array(1,2,3))">Show this to forum 1, 2 and 3</vb:if>
not work, i test some forum.
What exactly did you want to do?
Did you replace the 1,2,3 with your actual forums id''s that you wanted to do stuff?
Lynne
04-23-2010, 02:12 PM
That condition will work in some templates I'm sure. You can't just give us a condition though without telling us what template it is in. Noone can test it otherwise. Also, go find where the template is rendered in the code and make sure the variable you are using (in this case $forum) is registered for use.
chris1979
04-24-2010, 04:37 PM
How do you check if a variable is registered for use?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.