The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Error when using curly brackets in if statement
Hello,
I am editing the display of the forums (forumhome_level1_nopost). I made an variable which is counting how many categories there are: {catcount} ($catcount++) and if statement that makes space every 4 cats: <vb:if condition="{vb:raw catcount}%4==0"><div class="clear"></div></vb:if> but when i'm trying to save, I get the next error: "Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3332" "The following error occurred when attempting to evaluate this template: %1$s This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish." any ideas what is the problem? |
#2
|
||||
|
||||
Try:
HTML Code:
<vb:if condition="$catcount%4==0"><div class="clear"></div></vb:if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|