Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Quick Account Switch v1.2 Details »
Quick Account Switch v1.2
Mod Version: 1.2., by Ianomed (Member) Ianomed is offline
Developer Last Online: Dec 2005 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 23
Released: 25 Oct 2004 Last Update: 17 Nov 2004 Downloads: 16
Not Supported DB Changes  

Quick Account Switch v1.2.
by Ianomed


Uses of this hack:
This account will let you string together several accounts owned by the same person. Of course it will also let you string together accounts owned by different people, but that's a dangerous thing to do.

What then is the use of stringing accounts together? Well, this hack will let you switch from one to the other account without having to log out, then log in again. Those interested in the technical aspect I refer to the addition made to login.php, it's all quite simple. You'll see now why it's dangerous to string together your account with someone else's, they'd be able to switch to your account.

I wrote this for two play-by-board RPGs that I frequent, at each of which I have several accounts, an account for each character. This lets me assume another account in moments.

It's also used by admins to switch between test accounts quickly.

Maybe you'll find other uses, eh?
Changes required:
  1. Adding of 1 field to user table (installer will try to do this)
  2. Adding of 18 phrases (installer does this)
  3. An addition to admincp/user.php
  4. An addition to global.php
  5. An addition to login.php
  6. A modification to the navbar template (for each style)

    Time needed: 20-30 minutes
    Difficulty rating: moderate

Known issues with v1.2:
Changing the username of an account that's either a slave or master, it does not update these cached usernames. This will be taken care of in v1.3.
Work-around: If you rename a user, unlink it first, and relink after the renaming.
Since I don't see this happening very often on any board I'm releasing v1.2 with this caveat.
Item of note:
For some obscure reason vBportal does NOT play nice with this hack. It'll introduce cookie/header errors. Either do not install this hack if vBportal is installed, or vice versa. Since I don't plan on spending $20 to buy software I'll never use, there's no intention on my part to work out that problem. You're good to go with vbadvanced CPMS, however, this has been tested.
Warranties:
None, in the instructions you'll notice I tell you to backup before applying the hack. I've tested it on 4 boards, each of which have additional hacks installed, and it runs on many more. If it doesn't for you then, well... roll back the changes you've just made and blame yourself.
Tested (and works) on:
  • vB 3.0.3. - vanilla
  • vB 3.0.1. - vanilla
  • vB 3.0.3. - With vbAdvanced Homepage / CPMS (out of the box)
  • vB 3.0.1. - With vbAdvanced Homepage / CPMS (out of the box)
  • vB 3.0.3. - With vBindex v3.0.0 RC5 (Instructions by bondjetta)
  • vB 3.0.3. - Nexialys - ACP cookie hack. <- Recommended combination
  • vB 3.0.1. - Nexialys - ACP cookie hack. <- Recommended combination
  • vB 3.0.3. - Assorted mods

Future plans:
  • v 1.3 - Optionally displaying the linked accounts on the public profile. (i.e. 'I am also ....')
  • v 1.3 - Fix user rename issue (see known issues, above).
  • v 1.3 - Under Users in the ACP add a Manage Linked Accounts option, listing all linked accounts and their slaves.
  • v x.x - Very maybe: allow sharing of a secondary account between two users. This is the trickiest of all, since when on that account, who should you allow switching back to in a way that can't be circumvented.
Future non-plans (I will probably never implement these):
  • A 'let users link accounts themselves' mode.

Thanks to Oblivion Knight for the updated dropdown look.

Enjoy

--- History ---
v1.2 - 17th November 2004
  • Removed username colouring, it's not really necessary and only adds extra queries.
  • No longer uses a custom profile field, instead an extra field in the usertable is made
  • Fully phrased, installer written to add phrases
  • The usernames for the linked accounts are cached, this means that running the hack now takes no extra queries at all for those logged on as master, or who have no linked accounts. Being logged on as a slave account adds only 1 query per page view, this used to be more too.
v1.1.1 - 27th October
Fixes session expiration problem occuring after switch. Users are encouraged to upgrade. To upgrade follow the instructions in switch_11_to_111.txt. For new installs the corrected code is in switch_111.txt, the installation instructions.
v1.1 - 26th October
Fixes a flaw where on some MySQL versions IDs were matched improperly, also the new session is now permanent. Users are encouraged to upgrade.
To upgrade roll back and redo the changes to global.php and login.php, no changes were made to the template or custom field.
v1.0 - 25th October 2004
initial release

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1.gif
Views:	203
Size:	7.6 KB
ID:	21823   Click image for larger version

Name:	2.gif
Views:	141
Size:	8.3 KB
ID:	21824   Click image for larger version

Name:	3.gif
Views:	131
Size:	11.3 KB
ID:	21825   Click image for larger version

Name:	4.gif
Views:	164
Size:	10.4 KB
ID:	21826  

Click image for larger version

Name:	result.gif
Views:	298
Size:	13.1 KB
ID:	21827  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Profile Enhancements Quick Account Switch akanevsky vBulletin 3.6 Add-ons 103 19 Nov 2014 00:57
Quick Account Switch akanevsky vBulletin 3.5 Add-ons 128 28 Apr 2009 08:52

Comments
  #2  
Old 25 Oct 2004, 16:29
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Interesting
__________________
God180 <--------------------- My Modified vBulletin
Reply With Quote
  #3  
Old 25 Oct 2004, 16:30
Azhrialilu's Avatar
Azhrialilu Azhrialilu is offline
 
Join Date: Aug 2003
Real name: Lee
I can confirm the working of this
__________________
Admin Extra - The Switzerland of Community Administrator Forums
Reply With Quote
  #4  
Old 25 Oct 2004, 16:33
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Real name: Jeroen van Rijn
Ah yes, my first beta tester. Hi Azh.

Hopefully it'll be useful to you as well, Polo.
Reply With Quote
  #5  
Old 25 Oct 2004, 16:52
Red Blaze's Avatar
Red Blaze Red Blaze is offline
 
Join Date: Jan 2003
Real name: Frank E.
Nice, I could use this for easy switching testing different usergroups. Thanks alot.
Reply With Quote
  #6  
Old 25 Oct 2004, 16:57
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Real name: Jeroen van Rijn
My pleasure Sonikku, please remember to click Install if you end up using it. That way if I release an update you'll be notified of this as well.

At one of the RPG boards this is now in use allowing 6 people to switch between their various accounts with success. It's a hit there.
Reply With Quote
  #7  
Old 25 Oct 2004, 17:11
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
How long have you been testing or using this?
Reply With Quote
  #8  
Old 25 Oct 2004, 17:28
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Real name: Jeroen van Rijn
Hi Lionel,

It's a dead simple hack that I wrote it in a manner of hours. A friend and I have tested it on 4 different boards for a couple of hours as well, on which it's officially live as of today to the members' joy.

If you're worried about security, there's nothing in the hack that makes the board more insecure/secure than it was before. The user's current session is checked against on switching.

If you're logged on as a master account you can switch to your slave accounts, and if you're currently logged on to a slave account you can switch to your master account (or possible additional slave account).

Simply trying someone else's userID in the URL parameter will fail to achieve anything

Feel free to take it apart on a test installation if you care to examine this for yourself. As a matter of speaking this is a good thing to do for any hack whatsoever by anyone. Tinkering with productions boards should be approached with caution, as always.
Reply With Quote
  #9  
Old 25 Oct 2004, 17:45
nexialys
Guest
 
simple hack ?!.. wrote in hours ?!... damn, welcome home, join the coders club... this is a quite good piece of work !!

it's even better than what i've played with lately (different cookie for admincp) ... and it's acting exactly like the "Fast User Switching" on my OS-X !!!
Reply With Quote
  #10  
Old 25 Oct 2004, 18:03
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Real name: Jeroen van Rijn
I'm glad you like it so much, Nexialys

It's my first publicly released hack for vB. Before this I did a couple of custom ones, mainly also RPG related in some way or another: a Warp Speed calculator, Stardate Calendar.

Then there's another small hack which will make the referrer a mandatory field on registration, and will send the sponsor a PM from the administrator, to confirm they did indeed refer the person.

It's quite fun to write hacks for vB
Reply With Quote
  #11  
Old 25 Oct 2004, 18:08
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
that does not work for me with 3.01 and vbadvanced. In advanced page (I harcoded the link to login in global.php) it displays the toggle, but when I select a username, it takes me to a blank page.

On forumhome, the toggle does not display at all.

And yes, I have a valid licence :-)
Reply With Quote
  #12  
Old 25 Oct 2004, 18:11
nexialys
Guest
 
Originally Posted by Lionel
And yes, I have a valid licence :-)
fiou... i hope for you... with 590 posts already done, no license would be futile.. lol..

btw, do you have anyother hack related to login or identification install on your board ?!...
Reply With Quote
  #13  
Old 25 Oct 2004, 18:14
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Haha... I do not remember. The board has so many hacks. But I do have a problem for four weeks now with who's online.
Reply With Quote
  #14  
Old 25 Oct 2004, 18:22
Ianomed's Avatar
Ianomed Ianomed is offline
 
Join Date: Oct 2004
Real name: Jeroen van Rijn
Lionel, within the forum itself does it switch proper?

Secondly: do you have the forum in /forum, and the site in /, or something similar? or are the forum and portal both in the same directory?

Thirdly (and lastly): vbadvanced or vbadvanced CPMS, and which version?

My beta tester, AzhriaLilu, ran this hack succesfully on a modded 3.0.3. with vbadvanced CPMS, perhaps it's a 3.0.1. specific issue, or doesn't work with the standard portal out of the box. I'll have a look either way.

It's been tested solely on 3.0.3. (with various previous modifications on 3 of the boards), which is why I listed it as a requirement in the instructions.

I'll get back to you on this, with some changes perhaps it can be made tick for 3.0.1. and vbA as well. *goes and finds the 3.01 installer*
Reply With Quote
  #15  
Old 25 Oct 2004, 18:23
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
I think I am going to do a beyond compare to see what is messed up with my who's online. Maybe that will solve the problem. I went to every single function line by line, every relevant php, except login.php
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 21:10.

Layout Options | Width: Wide Color: