PDA

View Full Version : Trouble with my <if> statement


anarchystar
03-17-2006, 10:52 PM
I changed some of the graphics in my vb theme, now the if statement in my header will not work. Specifcally, the register button does not appear for unregistered visitors, they just see the quick links button. Any tips?


<if condition="$show['registerbutton']">
<td width="63" height="25" align="left" valign="top"><a href="register.php?$session[sessionurl]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.gif" alt="" width="63" height="25" border="0" /></a></td>
<else />
<td width="63" height="25" align="left" valign="top" id="usercptools"><a href="#usercptools"><img src="$stylevar[imgdir_misc]/q_links.gif" alt="" width="63" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
</if>

Code Monkey
03-18-2006, 12:10 AM
$show[registerbutton]

You might try dropping the quotes.

anarchystar
03-18-2006, 01:48 PM
I tried that and it gave me a nasty parse error

Code Monkey
03-18-2006, 02:04 PM
Is $show['registerbutton'] actually being set?

anarchystar
03-18-2006, 02:16 PM
where do I check? that is pretty much what I have been trying to find out.
it was working fine before, but I added an extra button. I modified the table so everything would fit, but the register button stopped appearing for non-registered guests. Everyone sees the quicklinks button.

Code Monkey
03-18-2006, 02:52 PM
Post the original template bit.