PDA

View Full Version : "undefined" when logging out?


Linkz0r
04-26-2009, 11:04 PM
Hi I've just installed a new vbulletin board here (http://www.club-gamer.com) and our having issues with logging out when logged in.

If you click logout from the nav link or the one at the bottom a pop-up message comes up saying "undefined" and says OK or cancel, a screen shot of it can be found here (http://i44.tinypic.com/2ps0taa.png). I don't think I've touched any of the templates involving the log out part of the site so I don't know what's wrong, and when I click OK it comes up with
https://vborg.vbsupport.ru/external/2009/04/9.png
and then I click logout and it logs me out fine, but this is a hassle and I don't want to have to do this every time.

My login seems fine and there is nothing wrong there. Also over the last few days I have installed quite a few mods not knowing if that could have made this happen or not, though I doubt it did. Any ideas on what the problem is?

Angel-Wings
04-26-2009, 11:10 PM
Looks like the "logout" link is wrong. You can copy & paste that link and then do a search in the template of the skin you're using.
Usually it's a call for a Javascript function that is defined in the default skin, but not the skin you're using - sometimes it's missed, sometimes not.

Just some comparing between the default skin and the one you use will help :)

Linkz0r
04-26-2009, 11:37 PM
Looks like the "logout" link is wrong. You can copy & paste that link and then do a search in the template of the skin you're using.
Usually it's a call for a Javascript function that is defined in the default skin, but not the skin you're using - sometimes it's missed, sometimes not.

Just some comparing between the default skin and the one you use will help :)

Alright thanks, I seem to have fixed the bottom logout words but which template can I find the logout button in the nav in?

tipoboy
04-26-2009, 11:43 PM
the bottom one IIRC is in your forumdisplay template

Linkz0r
04-26-2009, 11:51 PM
Yeah ive fixed that one and ive actualy fixed my top one now, but the images have messed up a bit in the nav, just wondering if one of you could correct this peice of code so the button shows properly again
<img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./search.php?$session[sessionurl]" accesskey="4"><img src="$stylevar[imgdir_misc]/search.gif" border="0" alt="Search" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">Log Out<img src="$stylevar[imgdir_misc]/logout.gif border="0" alt="Log Out" /></a></if></td>
</tr>
</table>
<!-- /nav -->

tipoboy
04-26-2009, 11:54 PM
Yeah ive fixed that one and ive actualy fixed my top one now, but the images have messed up a bit in the nav, just wondering if one of you could correct this peice of code so the button shows properly again
<img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./search.php?$session[sessionurl]" accesskey="4"><img src="$stylevar[imgdir_misc]/search.gif" border="0" alt="Search" /></a><img src="$stylevar[imgdir_misc]/navbar.gif" border="0" alt="" /><a href="./login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">Log Out<img src="$stylevar[imgdir_misc]/logout.gif border="0" alt="Log Out" /></a></if></td>
</tr>
</table>
<!-- /nav -->

could you provide a link or screenshot?

either that or pm me with details and i'll have a quick look :D

Linkz0r
04-26-2009, 11:55 PM
<a href="http://www.club-gamer.com/index.php?" target="_blank">http://www.club-gamer.com/index.php?</a> is the forum with the issue, thanks

tipoboy
04-26-2009, 11:56 PM
do you have a guest account, i can not see the log out button?

Linkz0r
04-27-2009, 12:05 AM
Ah yes, sorry
Username - Gamer
Password - 11223344

tipoboy
04-27-2009, 12:11 AM
<img src="$stylevar[imgdir_misc]/logout.gif" border="0" alt="log out" /><a href="./login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')"></a></td>


try changing your log out button to this code

Linkz0r
04-27-2009, 12:16 AM
alright I did that and it says this.

The following error occurred when attempting to evaluate this template:

The conditional on line 20 appears to be missing its end tag (</if>). The template will not function properly unless this is fixed.


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.

tipoboy
04-27-2009, 12:19 AM
alright I did that and it says this.

need to see your whole navbar code you could post it here or pm me it on your forum...

Linkz0r
04-27-2009, 12:22 AM
Alright Thanks for editing the code for me, much apreciated :)

tipoboy
04-27-2009, 12:44 AM
no problem at all mate