vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   An error occurred while attempting to log you out...? (https://vborg.vbsupport.ru/showthread.php?t=116638)

rogersnm 05-25-2006 03:35 PM

An error occurred while attempting to log you out...?
 
I always get "An error occurred while attempting to log you out. Click here to log out." when i try to log out is there any way to bypass this screen so it just logs out even if there is an error?....

peterska2 05-25-2006 03:43 PM

you have a problem in your navbar template.

replace everything in the script section at the top of the template with
Code:

<script type="text/javascript">
<!--
function log_out()
{
        ht = document.getElementsByTagName("html");
        ht[0].style.filter = "progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)";
        if (confirm('$vbphrase[sure_you_want_to_log_out]'))
        {
                return true;
        }
        else
        {
                ht[0].style.filter = "";
                return false;
        }
}
//-->
</script>

and it will work :) If not, then your logout button itself is faulty, so let me know how you get on and I'll provide the code for the logout button too if required.

rogersnm 05-26-2006 05:33 PM

nope still the same poblem already had that... can i have the log out script then.....

Regards,
Nick (the dum guy over there ;))

Zachery 05-26-2006 05:35 PM

There has been a mass of changes to how the logout script works, try reverting your forumhome and navbar templates.

rogersnm 05-26-2006 05:36 PM

definately not converting my navbar have enough extra links there not to bother but i'll look into the forum home....

do you know which bit of the forum home i would need to revert?....

Zachery 05-26-2006 05:39 PM

You'll need to revert both, or use the logout link from the default versions in order for your logouts to work.

rogersnm 05-26-2006 05:40 PM

where's the logout code in teh reverted FORUMHOME?

Dan 05-26-2006 05:40 PM

It's the logout link in your navbar, try replacing the link for it and making it
Code:

login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]
Should work fine, I had this problem on my forums and I compared the links and that will/should fix it.

rogersnm 05-26-2006 05:43 PM

ahh work now it was the log out link in the navbar not the script....


All times are GMT. The time now is 02:10 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.01126 seconds
  • Memory Usage 1,722KB
  • 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
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete