vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   "undefined" when logging out? (https://vborg.vbsupport.ru/showthread.php?t=212252)

Linkz0r 04-26-2009 11:04 PM

"undefined" when logging out?
 
Hi I've just installed a new vbulletin board here 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. 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

Quote:

Originally Posted by Angel-Wings (Post 1799620)
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
Code:

<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

Quote:

Originally Posted by Linkz0r (Post 1799648)
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
Code:

<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

Code:

<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


All times are GMT. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01067 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete