vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Quick Account Switch (https://vborg.vbsupport.ru/showthread.php?t=114994)

akanevsky 05-06-2006 10:00 PM

Quick Account Switch
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*===================================*\
|| Quick Account Switch
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jul 03, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*===================================*/

DESCRIPTION

This modification gives users the ability to easily switch between linked accounts. Accounts can be linked by administrators via admincp or by users via usercp as long as these users know the passwords for both accounts. Optionally, you can disallow users to link and unlink accounts from the usercp.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES
  • Adds AdminCP and UserCP controls to link and unlink accounts.
  • Allows to easily switch between linked accounts from the navbar.
  • Allows to disable the public UserCP controls and leave just the AdminCP part.

VERSION HISTORY

1.1.0
[+] Compatible with vBulletin 3.5.x - 3.8.x.
[+] Removed all template modifications.
[+] Added option to disable usercp controls for linking accounts.

1.0.1
[+] The modification is now officially compatible with vBulletin 3.6.
[+] The hack has been optimized and now performs much less queries than before.
[+] Users now can link accounts without an administrator as long as they know the passwords for both accounts.

1.0.0
Initial Release (Port of Quick Account Switch by Ianomed)

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

akanevsky 05-07-2006 02:23 PM

- reserved -

Basboss 05-07-2006 02:30 PM

This is so cool, Thanks :)

Ntfu2 05-07-2006 02:46 PM

Pretty cool indeed.

Does anyone have the ability to link names, or is it reserved so that only admins can link peoples names?

Tralala 05-07-2006 02:50 PM

Awesome. I can already see how helpful this will be. THANK YOU.

akanevsky 05-07-2006 02:53 PM

Quote:

Originally Posted by Ntfu2
Pretty cool indeed.

Does anyone have the ability to link names, or is it reserved so that only admins can link peoples names?

Only administrator with 'canadministerusers' permission can link/unlink accounts from admincp.

Andyrew 05-07-2006 03:21 PM

Nice hack, once i change from admin account to another it then only gives me the option to go back to admin account even though i have linked 4 accounts.
Is this how it should work or should i be able to go from one account to any other account.

akanevsky 05-07-2006 03:22 PM

Of course.. Each link only links two accounts, chains are not supported.

Andyrew 05-07-2006 03:24 PM

Quote:

Originally Posted by Psionic Vision
Of course.. Each link only links two accounts, chains are not supported.

Thanks, still a great mod, saves logging in and out. :banana:

Developer 05-07-2006 03:59 PM

Vert Great port
i'll use it in the test forum ;)

Tralala 05-07-2006 04:22 PM

Quote:

Originally Posted by Andyrew
Nice hack, once i change from admin account to another it then only gives me the option to go back to admin account even though i have linked 4 accounts.
Is this how it should work or should i be able to go from one account to any other account.

Quote:

Originally Posted by Psionic Vision
Of course.. Each link only links two accounts, chains are not supported.

Quote:

Originally Posted by Andyrew
Thanks, still a great mod, saves logging in and out.

To clarify though, you could just edit each of the 4 accounts to link the other 3. Then no matter which account you switch to, you could always switch back, correct?

akanevsky 05-07-2006 04:28 PM

Yes.

Code Monkey 05-07-2006 04:38 PM

Brilliant! I'll test this out on my test site. For my recent "mark forums read" hack I had to have an admin acount in FF open and a user acount in IE and one in Opera open so I could make hundreds of posts while testing. This would have made that much easier. :D

soulface 05-07-2006 04:39 PM

aahh nice... but why the .zip file named vB 3.5.4 Private.Profiles 1.0.1 by.Psionic.Vision.zip :o

[high]* soulface installed...[/high]

akanevsky 05-07-2006 04:54 PM

Good Question.... I don't know. :P I'll fix that.

Code Monkey 05-07-2006 04:58 PM

Works as described.

*Clicks Install*

Holidazed 05-07-2006 05:19 PM

I am not sure what purpose this serves. Unless as an admin, you want to quickly change to another account to test a feature. I would like to see this ability given to the users.

However, in order to link to another account, they have to know the username and password for that account. They should be able to link to an admin set number of accounts too. I run an RPG board and my users have multiple accounts.

mat64 05-07-2006 05:38 PM

I like it, Might have ago with it later. Great work.

waza 05-07-2006 05:40 PM

very, very useful to test things!
thx

theodonnells 05-07-2006 06:16 PM

Another really great hack!!!
I like hacks i didnt know i needed til i saw them on vb.org lol....
This is a really useful hack indeed thanks....

Tralala 05-07-2006 06:44 PM

Quote:

Originally Posted by bitg
I am not sure what purpose this serves. Unless as an admin, you want to quickly change to another account to test a feature.

Another possible use is for a household where two people share a computer and both are members of your forum. Routinely I will see them post as the other person by mistake. And sometimes they ask if they can both just share one account to keep things easier. (Logging in and out can be a drag after awhile.)

And so with this hack, they can request to be "linked" and then they can more easily switch back and forth between the two accounts.

da420 05-07-2006 06:47 PM

Very useful for users when using gimmicks. I can dig it.

Tralala 05-07-2006 06:51 PM

One minor point, and I'm sure this is fairly obvious, but it's worth mentioning in case someone's unsure: once the accounts are linked, the notion of "cookies" and "logging out" of one account no longer applies.

It works great when it's one person logging in/out of two or more accounts.

However, if in fact it is two different people on one forum, with linked accounts for easy switching, and one of them logs out... the other person can still just switch right into their account. (Since the accounts are "linked" it does not ask for that password again, even if one of them logged out when their session was done.)

SO... be sure you're okay with this before using it for two separate people. A husband and wife may enjoy the easy switching back and forth, but the price for this, is the inability to "log out" for sure. (Either spouse could easily log in as the other and read PM's, etc.)

Psionic Vision, is there any way to modify this so that it respects the login/logout cookie for each account?

Code Monkey 05-07-2006 06:57 PM

Ok, I loged out, now I can't log back in. Even after dumping cookies. So something is not right with this.

akanevsky 05-07-2006 06:59 PM

It's working for me, must be something wrong with your cookies. Try dumping them again after you close all your browser windows.

Tralala 05-07-2006 07:18 PM

Quote:

Originally Posted by Psionic Vision
It's working for me, must be something wrong with your cookies. Try dumping them again after you close all your browser windows.

Are you replying to me or JumpD? Am I correct that if one of the linked accounts logs out, the other still can switch right in?

Code Monkey 05-07-2006 07:28 PM

Seems if you log out you have to log back in using the account you logged out as.

akanevsky 05-07-2006 08:20 PM

I'm going to look into the logout bug.
But please, give me the exact steps require to reproduce the problem.

InsaneContender 05-07-2006 08:23 PM

Works fine for me. Love the hack.

*clicks install*

InsaneContender 05-07-2006 08:27 PM

Oh, the only thing I can see needed, is support for vB CMPS. You have to be on the actual forums for it to work, or you don't see any linked users in the drop-down.

Not that big of a deal though.

Mr Chad 05-07-2006 09:49 PM

Very useful!

I got sick of relogging in and shit!

akanevsky 05-07-2006 10:20 PM

I wonder why it doesn't work with vba cmps by default... vba cmps uses the same global.php as far as I know. I'll check though.

Boofo 05-07-2006 10:27 PM

Any way to make this available to certain userids only? Maybe via the config.php file?

akanevsky 05-07-2006 10:34 PM

Boofo...
Your request does not make any sense.

Tralala 05-07-2006 10:38 PM

Quote:

Originally Posted by JumpD
Seems if you log out you have to log back in using the account you logged out as.

Quote:

Originally Posted by Psionic Vision
I'm going to look into the logout bug.
But please, give me the exact steps require to reproduce the problem.


JumpD and I have reported different issues. In my case, I can log out account B, and then log back in as account A, and still have full access to account B by the Quick Account Switch menu. It doesn't ask me for account B's password ever again. I am not sure if that's intended behavior by your hack or not.

JumpD's issue seems to be that once he logs out, he can't easily log BACK in, or at least is having confusion over which account he can log in with.

In my case I was able to log out and log in using the same or the other account, but when logging in one person it ultimately gave me access to both accounts (even if one had "logged out" and cleared cookies.)

So what is the intended behavior? Then I can tell you steps to reproduce the 'bug.'

Tralala 05-07-2006 10:39 PM

Quote:

Originally Posted by Boofo
Any way to make this available to certain userids only?

The admin can just link those userid's manually in AdminCP. Not sure what you're requesting here.

Boofo 05-07-2006 10:49 PM

Quote:

Originally Posted by Tralala
The admin can just link those userid's manually in AdminCP. Not sure what you're requesting here.

I don't want anyone else to be able to use this but myself. Like you said, linking to another's account could cause problems. This way I never have to worry about disgruntled staff or anything like that.

Tralala 05-07-2006 10:59 PM

Quote:

Originally Posted by Boofo
I don't want anyone else to be able to use this but myself. Like you said, linking to another's account could cause problems. This way I never have to worry about disgruntled staff or anything like that.


As Psionic Vision said above:

Quote:

Only administrator with 'canadministerusers' permission can link/unlink accounts from admincp.

Boofo 05-08-2006 12:19 AM

Quote:

Originally Posted by Tralala
As Psionic Vision said above:

Ahh, then that would be the SuperAdmin only anyway, right?

Thank you, sir. ;)

InsaneContender 05-08-2006 12:44 AM

Any thought on the CMPS issue?


All times are GMT. The time now is 06:05 PM.

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.01353 seconds
  • Memory Usage 1,819KB
  • 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
  • (14)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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