Log in

View Full Version : Conditional not working..


x3sphere
08-19-2006, 02:32 AM
<if condition="is_browser('ie', 6) == 'index'">
<td><img src="images/misc/footer_left_ie.gif" width="30" height="64" /><img src="images/misc/footer_ie.gif" width="800" height="64" /><img src="images/misc/footer_right_ie.gif" width="30" height="64" /></td>
<else />
<td><img src="images/misc/footer_left.gif" width="30" height="64" /><img src="images/misc/footer.gif" width="800" height="64" /><img src="images/misc/footer_right.gif" width="30" height="64" /></td>
</if>

The code is supposed to display a different footer image for IE browsers on the forumhome index ONLY, but its not working .. it displays the code after the else statement.

Any ideas?

Kirk Y
08-19-2006, 03:51 AM
Call me crazy, but shouldn't this be:
<if condition="is_browser('ie', 6) AND THIS_SCRIPT == 'index'">

x3sphere
08-19-2006, 04:24 AM
Ah I missed that - thanks, works perfect now :)