HTML Code:
<td><if condition="$bbuserinfo['userid'] == 0"> <a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Login','','newlayout/header/buttons/login-on.jpg',1)"><img src="newlayout/header/buttons/login-off.jpg" alt="Log In" name="Login" width="63" height="22" border="0"></a>
<else /><a href="login.php?do=logout&u=$vbulletin->userinfo[userid]" onclick="return log_out()" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Log Out','','newlayout/header/buttons/logout-on.jpg',1)"><img src="newlayout/header/buttons/logout-off.jpg" alt="Log Out" name="Log Out" width="63" height="22" border="0"></a></if></td>
This is the table for my log-in/out rollover images, the conditionals attached to them, and the links for them. I tried what you suggested, as you can see above, but upon clicking Log Out, I'm sent to an error page saying, "An error occurred while attempting to log you out. Click here to log out."
Could you check the code and tell me what I've done wrong? :nervous: