![]() |
Quick Account Switch v1.2
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. :)Changes required:
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.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:
Future plans:
Thanks to Oblivion Knight for the updated dropdown look. Enjoy :) --- History --- v1.2 - 17th November 2004
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.v1.0 - 25th October 2004 initial release |
Interesting :)
|
I can confirm the working of this :D
|
Ah yes, my first beta tester. Hi Azh. :D
Hopefully it'll be useful to you as well, Polo. |
Nice, I could use this for easy switching testing different usergroups. Thanks alot. :)
|
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. :) |
How long have you been testing or using this?
|
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. |
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 !!! http://images.apple.com/macosx/featu...nu10082003.jpg |
I'm glad you like it so much, Nexialys :D
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 :) |
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 :-) |
Quote:
btw, do you have anyother hack related to login or identification install on your board ?!... |
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.
|
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* :) |
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
|
Ianomed, the condition does not applies at all in the forum. I does not display at all. I logged off, log back on, nothing, nada.
I have vbadvanced regular installed at root and forum on a directory under. That hack was like God sent for me. It's a shame what is happening to me. The board has been behaving erratically. I installed the mod management hack last week, no template will display. I placed an echo "hello"; at the top, it started displaying. The next day, it gave me an error message about header, then I removed the echo, and by accident I clicked on the link, and voila, like by magic, it worked. Who's online? Sometimes I see no one, but I know they are online. Some other times, I see 2 of myself. :speechless: |
Hmmm, it sure does sound something else was messed up good before you installed this hack. I'll still install vbadvanced regular on 3.0.1. here to see what it does, but I can't guarantee anything.
If there's something specific to vbA and 3.0.1. in accordance with this hack I'll find it, if not then it appears your board's prior state is likely the culprit somehow. :( Sadly you have a looooooottt of hacks installed, as you say, or I would suggest upgrading to vB 3.0.3. and reapply vbA and this hack. With a board that start working like magic, who knows what can happen? ;) Speaking of which, we know it works on CPMS, since this we tested. The 'diet' version as yet goes untested, so this I'll take along with it on my todo list. |
I've just tested this hack on a vanilla (clean) install of vB 3.0.1., and it works perfectly.
Now to test with vBAdvanced homepage as well... *rolls drums* |
Really interesting hack !
Thanks |
Quote:
|
Lionel,
vBadvanced homepage on 3.0.1. works as well in conjunction with this hack. No problems. It lets you switch from within the portal and forums. Sadly, for you that is, this brings me to the conclusion your previous hacks are incompatible. Your saying the board sometimes work, sometimes didn't strengthens that belief. The good news is that I can now ratify this hack for 3.0.1. as well. |
i have this problem daily on my forums (going between my admin account and my personal account) :( so thank you for this hack! :D I'll try it out tonight :)
|
Quote:
|
Verdict: not only does it work, it rocks!
It's probably the best thing since sliced bread, the combination of these two hacks, lol. Now it allows you to be logged on as an admin in the ACP while simultaneously you change between all measure of different test accounts to see your changes. :D Nexialys' hack giving the ACP a seperate session means you won't be logged out of the ACP while you switch around in the forum. |
Excellent, thanks for testing that for me Ianomed.! :D
|
My pleasure, Oblivion Knight, I'm glad I did test it. :)
I've linked to Nexialys's hack now in the this thread's first post, because the combo just works so well. |
Ianomed thank you. I am going to troubleshoot, cause I am determined to have it work. It's like butter near my mouth and I can't grab it.
|
Ok, it's running well for me :) but no integration to VBindex. :(
vBulletin Version 3.0.3 & vBindex Version 3.0.0 RC5 oh wait, i don't care :D this is fantastic :D Thank you |
Good news. I put up a clean login.php, and it works on homepage. I still have to troubleshoot the forums.
|
I am on the verge of committing vbsuicide.
I found the typo in login.php that was causing the blank page and it works now perfect on vbadvanced homepage. Still not in forums. I tried a clean copy of global.php, of online.php, of functions_online.php. I tried removing the condition, the image shows but the click is empty. I do not know where to look anymore. What could cause the main forum to be blocked? Which major script in there that vbadvanced do not use? It's like the forums do not know it's me. :tired: |
: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 |
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! |
That could come in very handy. Thanks a lot! :)
|
Genious! I've already thought of a creative method of use for this hack. Many thanks! :)
|
Hmm.. When trying to switch to another account, I get the error:
Quote:
|
Quote:
|
Quote:
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. |
Quote:
|
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.. :) |
Quote:
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:23 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|