vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Quick Account Switch v1.2 (https://vborg.vbsupport.ru/showthread.php?t=70971)

Lionel 10-26-2004 03:37 AM

:banana: I found my problem.
Somehow, someday I woke up to find out that navbar for vbadvanced and forum got all messed up with the headers. Since that day, I have been carrying 2 navbars one for vbadvanced and one for vbulletin, both placed in their respective $header, that's for the loggedin bits. And used the normal navbar just for the links.

I just removed the condition in forum header (where the loggedin things are) and placed it anywhere in real navbar. That worked! :banana:

That is going to be some job to restore that navbar

Forgot to say thank you, for the hack, for the help, and maybe for that discovery that could finally fix my online problem

Lionel 10-26-2004 05:03 AM

All Fixed!

I dumped both $header and $index_header in the navbar. While doing so, I found out that there was a miscontructed conditional. Navbar template would not accept it, but both index did. It had to do with the hivenail hack. The conditional if bbuserinfo[userid] was not properly closed. I am leeping my fingers closed, maybe this is why the board was not recognizing me. Hehehe!

bendigo-tech 10-26-2004 06:01 AM

That could come in very handy. Thanks a lot! :)

kaotic 10-26-2004 08:17 AM

Genious! I've already thought of a creative method of use for this hack. Many thanks! :)

Oblivion Knight 10-26-2004 09:08 AM

Hmm.. When trying to switch to another account, I get the error:
Quote:

An error occurred while attempting to log you out. Click here to log out.
The only thing I've changed from your original hack is the navbar code because I didn't like the layout..

Lionel 10-26-2004 09:48 AM

Quote:

Originally Posted by Oblivion Knight
Hmm.. When trying to switch to another account, I get the error:

The only thing I've changed from your original hack is the navbar code because I didn't like the layout..

I get the same too. My observation is that this happens when you sstay inactive for a long time. And it will not log you out too sometimes.

Ianomed 10-26-2004 09:54 AM

Quote:

Originally Posted by Oblivion Knight
Hmm.. When trying to switch to another account, I get the error:

The only thing I've changed from your original hack is the navbar code because I didn't like the layout..

This can happen if you put spaces in the IDs linked, Oblivion.
Example, account 1 has secondary accounts 10 and 45, you would enter

10,45

and not:

10, 45

I'm just about to release v1.1, fixing something else. For now please be observant of the IDs as above. In a future version I'll provide an easier way to select the slave accounts.

Ianomed 10-26-2004 09:55 AM

Quote:

Originally Posted by Lionel
I get the same too. My observation is that this happens when you sstay inactive for a long time. And it will not log you out too sometimes.

The new session cookie was set to expire, instead of to last. This has been fixed in v1.1, which I',m about to release. So it could've been either of two things :)

Oblivion Knight 10-26-2004 10:01 AM

Hmm.. The ids were only separated by a commar and not a space.

It appears that the session has to be active before it can be switched. I successfully switched from my account to "Test Account", when trying to switch back I got the error occured while logging out again. I tested this again, this time clicking on a forum and returning to the forum home with Test Account, and switching back worked fine.

It appears that a bit more work is required with the queries or something, hopefully this issue is fixed with 1.1.. :)

Ianomed 10-26-2004 10:08 AM

Quote:

Originally Posted by Lionel
All Fixed!

I dumped both $header and $index_header in the navbar. While doing so, I found out that there was a miscontructed conditional. Navbar template would not accept it, but both index did. It had to do with the hivenail hack. The conditional if bbuserinfo[userid] was not properly closed. I am leeping my fingers closed, maybe this is why the board was not recognizing me. Hehehe!

Good to hear that, Lionel.

By the by, I've just released an important update (v1.1). It only requires to redo the additions to global.php and login.php, so no worries about the tempalte ;)


All times are GMT. The time now is 04:53 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.01139 seconds
  • Memory Usage 1,741KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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