Log in

View Full Version : Footer Template error


LouiseWilson
06-04-2012, 05:58 AM
Hi Im trying to port some code over from Vb3 to Vb4 however running into an issue.
I'm posting the code below into the footer, right at the bottom.

<if condition="$bbuserinfo[userid]">

<div id="bar_bottom" style="width: %80; height: 32px; bottom: 0px;">
<div class="bar_float" style="height: 25px; width: %75;">

info here

</div>

<div class="bar_float1" style="width: %80">

info here

</div>

<div class="bar_float2">

info here


</div>
</div>

<else />
</if>

and im getting the below error

Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3965

vBulletin Message
The following error occurred when attempting to evaluate this template:
%1$s

can anyone with abit more experience, point me in the right direction please ?

Thank you

futureaudio
06-04-2012, 06:01 AM
Correct syntax for "If" block in VB 4.x is:

<vb:if condition="condition">

<vb:else />

</vb:if>

Replace your if tags and it should be fine.

LouiseWilson
06-04-2012, 07:24 AM
Super thank you all working :)