PDA

View Full Version : Quick Account Switch


akanevsky
05-06-2006, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=70971))

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=217771)

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
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
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
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.
Of course.. Each link only links two accounts, chains are not supported.
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

* soulface installed...

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
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
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
Seems if you log out you have to log back in using the account you logged out as.

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
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
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
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 (https://vborg.vbsupport.ru/showpost.php?p=969004&postcount=6):

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

Boofo
05-08-2006, 12:19 AM
As Psionic Vision said above (https://vborg.vbsupport.ru/showpost.php?p=969004&postcount=6):

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?

akanevsky
05-08-2006, 01:15 AM
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.

Yes, that is intended behavior. Quick switch = no password required to switch into linked accounts.

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.

Don't allow anyone but yourself to edit users. Or do you want a separate permission for this?

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

No, non-superadmins also 'canadministerusers' if you enable their permission to do so.

Any thought on the CMPS issue?

Please do have some patience.

Quarterbore
05-08-2006, 12:52 PM
Sorry to be so basic....

So, as a SuperAdmin I can link my primary account to my test account and then swich accounts without th eneed to log in again... When that switch is done my test account will have the permissions based on the group settings it belongs to. I can then switch back to the Admin group and continue working...

I love the idea at least for my development board... I'll have to try it tonight.

Holidazed
05-08-2006, 01:33 PM
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.It seems to me that on large boards, it would be more advanteous to allow the users to link themselves.

InsaneContender
05-08-2006, 05:22 PM
I think that might cause some problems, however...

Ok, I would like to put in a feature request. Whenever I am logged in as one user, and switch to another - it says both users are logged on, but only will show the one you are currently logged in as in the WOL. Is there a way to at least show the previous user you were logged in as in the WOL until the typical WOL time-out?

akanevsky
05-08-2006, 07:23 PM
It seems to me that on large boards, it would be more advanteous to allow the users to link themselves.

That would be insecure though.

Ok, I would like to put in a feature request. Whenever I am logged in as one user, and switch to another - it says both users are logged on, but only will show the one you are currently logged in as in the WOL. Is there a way to at least show the previous user you were logged in as in the WOL until the typical WOL time-out?

No, multiple sessions per same system may cause problems.

Holidazed
05-08-2006, 07:29 PM
That would be insecure though.I don't see a security issue here at all. If the user had to have the username and password prior to adding the "quick switch" account, then where is the security hole? That is no different amount of security problems as logging out the then back in as another user.

I fail to see the problem.

akanevsky
05-08-2006, 07:35 PM
I don't see a security issue here at all. If the user had to have the username and password prior to adding the "quick switch" account, then where is the security hole? That is no different amount of security problems as logging out the then back in as another user.

I fail to see the problem.

The problem would be in setting up the link. Unless it's done the way you make friends on myspace (request-accept/decline) - it would be an issue.

Holidazed
05-08-2006, 07:38 PM
The problem would be in setting up the link. Unless it's done the way you make friends on myspace (request-accept/decline) - it would be an issue.That is why I suggested you allow the user to do it him/herself and require the account login and password before letting it happen. This would prove that this person is the owner of the account in question. I still do not see a real use for this (at least for me) unless the users can do it all on their own. Otherwise, it is just way too much work for an admin to do for all the users I have on my site.

Quarterbore
05-09-2006, 12:37 AM
This will make testing mods and permissions so much easier... It was on my development board for less then 5-minues before I installed on my main board... THANK YOU! :banana:

Quarterbore
05-09-2006, 11:55 AM
Oops... sorry reported something that was already known... I still love the hack!

Matt Slick
05-09-2006, 02:46 PM
I guess I'm a dunce but I can't figure out HOW to use this hack. I've installed it but then what? Where do you access it? I've looked all over and can't figure it out.

Need some help here.

Also, I have no idea what this means: "Example: If you need to copy ./admincp/thehack.php to ./somefolder/thehack.php, it would mean that you need to copy a file, called thehack.php from the admincp subfolder of the package you have downloaded to the somefolder subdirectory of your forum engine."

Sorry, no offense, but for a newbie like me, that is one confusing statement.

I'd love to use this hack, but can't.

a little help here

thanks

InsaneContender
05-09-2006, 04:33 PM
Once installed, look on your navbar at your username. There, whatever account is linked, you can click and there will be a drop down menu listing your linked accounts. Click & Switch.

Arissa
05-09-2006, 04:59 PM
One of the skins I am using does not have the <!-- / PAGENAV POPUP --> in the template does that effect anything?

Arissa
05-09-2006, 06:14 PM
Ok the code I needed to replace is in header in that template.

akanevsky
05-09-2006, 07:16 PM
The fact that it does not work with vBAdvanced has already been mentioned. The problem shall be fixed in the future release.

Matt Slick
05-09-2006, 08:12 PM
Once installed, look on your navbar at your username. There, whatever account is linked, you can click and there will be a drop down menu listing your linked accounts. Click & Switch.

I still don't get it. The Nav bar has User CP, FAQ, etc., my name isn't there.

If I go to a post with my name in the "postbit"(?), there isn't an option to switch anything.

But, how do you link a name? I don't see anything in the Admin CP at all for this. The directions don't say HOW to use it, how to find it...

I've done the install correctly (I've done lots of them), but this one has me baffled.

still need help.

akanevsky
05-09-2006, 08:24 PM
Look at the screenshots please, then you'll easily figure it out.

Matt Slick
05-09-2006, 09:15 PM
Look at the screenshots please, then you'll easily figure it out.

Thanks for the input, but something else must be going on.

My moderators really need this hack so this is why I'm trying to get it to work.

I've done everything I can think of but still nothing. I've looked at the images, but on my board NO link (drop down?) is next to my name in the upper right nav bar area.

The only thing I'm confused about in the instructions is the following:

"For each of the pairs below, copy the file on the left from the archive package you have downloaded to the path you can see on the right.
Example: If you need to copy ./admincp/thehack.php to ./somefolder/thehack.php, it would mean that you need to copy a file, called thehack.php from the admincp subfolder of the package you have downloaded to the somefolder subdirectory of your forum engine."

I write for a living and that sentence confuses the heck out of me.

Anyway, I could really use some help on this one.

Where do you go to see the screenshot1? I looked in the user profile area, couldn't find it.

I've gone to user profile fields area, users area, vBulletin Options, and no luck

I'm dumbfounded by this one.

thanks in advance for any help on this.

akanevsky
05-09-2006, 09:17 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?

I just checked, it does logout you properly. Unfortunately, I am unable to recreate the problem on my computer...

Thanks for the input, but something else must be going on.

My moderators really need this hack so this is why I'm trying to get it to work.

I've done everything I can think of but still nothing. I've looked at the images, but on my board NO link (drop down?) is next to my name in the upper right nav bar area.

The only thing I'm confused about in the instructions is the following:

"For each of the pairs below, copy the file on the left from the archive package you have downloaded to the path you can see on the right.
Example: If you need to copy ./admincp/thehack.php to ./somefolder/thehack.php, it would mean that you need to copy a file, called thehack.php from the admincp subfolder of the package you have downloaded to the somefolder subdirectory of your forum engine."

I write for a living and that sentence confuses the heck out of me.

Anyway, I could really use some help on this one.

Where do you go to see the screenshot1? I looked in the user profile area, couldn't find it.

I've gone to user profile fields area, users area and no luck.

I'm dumbfounded by this one.

thanks in advance for any help on this.

The screenshots are in the bottom of the first post.
They depict the admincp user manager interface, the bottom part in the user editor... Concerning the confusing statement, you simply have to upload the contents of /upload/ to your /forum/ folder.

Tralala
05-09-2006, 10:57 PM
I just checked, it does logout you properly. Unfortunately, I am unable to recreate the problem on my computer...

Maybe I need to clarify; I'm not sure we're talking about the same thing. You might have written this mod for an admin who swaps back and forth between two accounts, and for that it works great. But in practice, I thought it might also help some members of my forum who share the same computer and often forget to log in and out to the proper account.

Here are the reproducible steps I am talking about:
User A (Alex) and User B (Brenda) have linked accounts, set up by a moderator.
Clear cache, clear all cookies, launch browser for first time.
Log into forum as Alex. (Without checking "Remember me.")
Alex is then able to easily "switch" to Brenda's account, despite Brenda never having logged in on this computer. Alex an switch back and forth between Alex and Brenda's account, even if Alex doesn't know Brenda's password. If, while logged in as Brenda, the user "logs out," the user can log right back in with Alex's account, and switch back over to Brenda's account. Essentially the accounts are linked intrinsically and if one is logged in, the other is logged in too. When either account "logs out," it logs both accounts out. I guess what I'm saying is, they share the same "logged in/out" state, and that could be an issue for linked accounts who aren't actually the same person. Like, say, a married couple who share the same computer. Each could just switch over to the other and read their PM's, post as them, whatever. I was hoping it would give each user separate and distinct cookies for their separate "logged in states."

I have tested this on 4 different browsers on 2 different machines. The results are always the same.

I guess my question is; is it supposed to be working differently?


Thanks for a great hack regardless.

Tralala
05-09-2006, 11:03 PM
I still don't get it. The Nav bar has User CP, FAQ, etc., my name isn't there.

If I go to a post with my name in the "postbit"(?), there isn't an option to switch anything.

But, how do you link a name? I don't see anything in the Admin CP at all for this. The directions don't say HOW to use it, how to find it...

I've done the install correctly (I've done lots of them), but this one has me baffled.

still need help.

Once you've uploaded the files to their proper place (see Psionic's response above,) done the product install and template changes, make sure you go to the user's profile in AdminCP and actually LINK them to another user.

That's when the pulldown will appear next to their name:

Welcome Tralala! -v-
Private Messages: Unread 0, Total 121

akanevsky
05-09-2006, 11:11 PM
Tralala,
That is intended behavior, you can only have one session per browser instance.
If I do not clear old session on switch and have two sessions, the results are undefined.

Furthermore, as vBulletin only has one login/pass pair per browser instance, you cannot have more than one logged in user.
If you want more than one logged in user, you'll have to open two different browsers.

Tralala
05-09-2006, 11:25 PM
Tralala,
That is intended behavior, you can only have one session per browser instance.
If I do not clear old session on switch and have two sessions, the results are undefined.


Gotcha. Thanks for the explanation. I figured it was a browser/vB session limitation like that. So when this hack says the accounts are linked... they really and truly are LINKED!

It is working as intended, then. Works great for me as an admin with some Bot and tester accounts.

With this caveat, I think I will offer this as a convenience to the members on my forum, too, who share a computer (it's a small social and family-oriented forum.) As long as they understand that it gives each member full access to the other's account, they might appreciate this QuickSwitch over having to log out and log in all the time.

Valter
05-09-2006, 11:29 PM
Wow, nice work!

Installed.

akanevsky
05-09-2006, 11:30 PM
Gotcha. Thanks for the explanation. I figured it was a browser/vB session limitation like that. So when this hack says the accounts are linked... they really and truly are LINKED!

It is working as intended, then. Works great for me as an admin with some Bot and tester accounts.

With this caveat, I think I will offer this as a convenience to the members on my forum, too, who share a computer (it's a small social and family-oriented forum.) As long as they understand that it gives each member full access to the other's account, they might appreciate this QuickSwitch over having to log out and log in all the time.

Correction: Not full access. Each linked person would still require the knowledge of current password for any of the accounts in order to change the password or the e-mail to something new. :)

Tralala
05-10-2006, 12:20 AM
Correction: Not full access. Each linked person would still require the knowledge of current password for any of the accounts in order to change the password or the e-mail to something new. :)

Ah, yes, that. :cool:

luroca
05-10-2006, 08:10 PM
Click Install; if you add this as a usergroup option, with password, I?ll click twice :)

Great, congratulations

akanevsky
05-10-2006, 08:14 PM
Twice would be a uninstall. ;) What usergroup option are you talking about?

luroca
05-11-2006, 07:30 AM
Hello Psionic Vision, I talk about to give this option to some groups (Premium, more active, etc), perhaps with a setting in ACP, not necessarily in Usergroups properties. Naturally, they would need to write the password of the linked account to can add it.
Twice would be a uninstall. ;)?I?ll click three times :)

Ziki
06-05-2006, 05:47 PM
Nice.Psion is truly a Master Coder

Zowners
06-07-2006, 08:17 AM
This hack is awesome and wipes the floor with the post by proxy hack!

Thanks so much :D

nymyth
06-14-2006, 07:42 PM
this is great....love it..........installed....

Peace

akanevsky
06-14-2006, 07:49 PM
This hack is awesome and wipes the floor with the post by proxy hack!

Post by Proxy?
Have you tried my adv.editing options for mods and admins?

Mythotical
06-15-2006, 04:44 AM
Psionic: You beat me to the release, I would have released my version if it wasn't for the last file didn't give me so much problems. it wasn't linking accounts so I asked Ianomad for assistance which I was waiting on him but since you got it, great. Glad to see it made it to 3.5.x

Cheers
Myth

SHalliday
06-17-2006, 01:56 PM
Absolutely awesome hack and one that is extremely useful. **clicks install **

Unfortunately I have had to disable the plugin until I figure out how I can restrict this to specific user ids. I have both administrator and moderator groups setup. The admins do need access to edit member accounts in order to perform their admin role. There is no way however that I can have administrators being able to "setup" links to access other admin accounts, including my own, as well as any member on the site.

I really want to use this hack! Is there any way to restrict this feature to specific user Ids only?
.

akanevsky
06-17-2006, 02:05 PM
Yes.
Replace:

if (!can_administer('canadminusers'))
{
print_cp_no_permission();
}

With

if (!can_administer('canadminusers') OR !in_array($vbulletin->userinfo['userid'], array(ALLOWEDID#1, ALLOWEDID#2)))
{
print_cp_no_permission();
}

Zowners
06-17-2006, 02:38 PM
Post by Proxy?
Have you tried my adv.editing options for mods and admins?

No I haven't. *Looks for find out what that is!*

EDIT: That hacks pretty good! *Installed*

SHalliday
06-18-2006, 07:19 PM
Thank you very much. I made the change as you provided and it works perfectly. Happy to say I now have your quick account switch plugin reenabled.

Thank you again!

Saskia
06-19-2006, 12:27 PM
Excellent hack. This is just what I needed for my RPG where some members play with multiple accounts.

Thanks a lot! :)

TheBlackPoet
06-21-2006, 06:12 AM
whoa!! that was a serious unnerving feeling... to be in someone else's profile.. i tested this on an inactive user's profile.
as administrator.... can i just teleport into anyone's space like that????

what about my members, can they teleport into my space or each other's space as easily as i did the inactive member's space....???

if this question was already asked... my apologies.....

THIS HACK WORKS PERFECTLY... NOW I KNOW WHAT "BEAM ME UP SCOTTY" FEELS LIKE....

hahhah ***maniacal laughter!!!

sensimilla
06-21-2006, 06:17 AM
cool I was in need of this, thanks

TheBlackPoet
06-21-2006, 06:18 AM
Only administrator with 'canadministerusers' permission can link/unlink accounts from admincp.


YO!! i asked this question a minute ago... so as admin... with canadministeruser permission....

ONLY i can link.... and teleport!!?? man you are DANGER OUS!!!! PELIGRO!!!

akanevsky
06-21-2006, 11:12 AM
You can only switch between users if your account is linked.
Only administrator with canadministerusers can link accounts.
If accounts are not linked, switch is not possible.

DM Lackey
06-24-2006, 05:01 PM
Ok, I think I may have done something incorrect on my install after reading through this thread. Please bear with me as this is my first install on vBulletin.

I followed the directions in the zip and uploaded the product, made the changes to the templates and imported the xml file. After linking a couple accounts to mine, I see the switch arrow and a box with Switch Accounts shows, but none of the accounts I linked appeared. Did I forget to do something during the install?

Any help would be awesome! My users have been begging for this option for a long time!!

sduckie2k5
06-28-2006, 02:29 AM
This hack works great if I'm on an forum related page. But for some reason the linked user doesnt show up under the menu on the cmps page, I get the drop down but no user link under it. Can someone tell me how to fix this, so that it shows up on that one too? Thankyou in advance

GrendelKhan{TSU
06-28-2006, 03:14 AM
nice! times saver hacks pwn. :)

<< clicks install

akanevsky
06-28-2006, 04:20 PM
np, np

goldenllama
07-13-2006, 02:48 PM
I'd still really love to be able to give my members the ability to make the link themselves. I love the hack and my members have been asking for something exactly like this, but I simply do not have the time to answer all of their requests myself.

Is there any possibility of adding a (secure) way for members to link their accounts? I'm sure if a password is required, it would be secure enough. If you don't want to add this as an option yourself, perhaps you could tell me how I might put in this functionality myself?

Thanks for a terrific hack and I really hope that you can take my request and make it perfect for me.

da420
07-14-2006, 04:51 AM
Works good, except one thing. It conflicts with my Photopost vBGallery. Whenever it is enabled and you click on a category Images in Category: will have a username instead of the category you clicked on. Disable it, it works fine.

Uninstalled for now.

Snake
07-14-2006, 11:11 AM
Thank you! :)

oz_moses
07-27-2006, 06:36 AM
the cmps issue is likely due to any variables being used by this hack not been globalised to cmps... if we can find the variables then we can fix it

ragtek
08-04-2006, 04:39 PM
will it work with 3.6?

akanevsky
08-04-2006, 06:50 PM
I don't know, but feel free to check and then let me know whether it does or not.

ragtek
08-15-2006, 04:50 PM
It works :)

Renmiri
08-16-2006, 12:11 AM
Works like a charm!

Txs a lot!!!!

Arissa
08-16-2006, 03:20 PM
Will this work with 3.6.0?

Arissa
08-16-2006, 03:49 PM
I see that it does great!

EasyTarget
09-09-2006, 08:54 AM
/me installs

EasyTarget
09-09-2006, 06:17 PM
Yes.
Replace:

if (!can_administer('canadminusers'))
{
print_cp_no_permission();
}

With

if (!can_administer('canadminusers') OR !in_array($vbulletin->userinfo['userid'], array(ALLOWEDID#1, ALLOWEDID#2)))
{
print_cp_no_permission();
}
Thanks for that.

anyway to get it to work with the 'unalterable admins' setting as well? It seems you can edit an unalterable users linked accounts.

akanevsky
09-10-2006, 02:01 AM
Thanks for that.

anyway to get it to work with the 'unalterable admins' setting as well? It seems you can edit an unalterable users linked accounts.
I don't quite understand what you mean.

EasyTarget
09-10-2006, 10:01 AM
so say I'm an unalterable admin and user X has the ability to administer users. my account would be protected from him making any changes, unless I have this hack installed, which he can then add a link to my account, even though he shouldn't be allowed to alter it because its protected in the config file.

akanevsky
09-10-2006, 02:30 PM
Adding a link does not alter user's profile.

Antivirus
10-04-2006, 02:53 AM
Works good, except one thing. It conflicts with my Photopost vBGallery. Whenever it is enabled and you click on a category Images in Category: will have a username instead of the category you clicked on. Disable it, it works fine.
Uninstalled for now.

Da420, were you ever able to resolve this issue?

PoetJA-1975
10-05-2006, 11:36 PM
AWESOME share - thanx very much for this one ;)

Jacquii.

da420
10-05-2006, 11:39 PM
Da420, were you ever able to resolve this issue?

No, unfortunately I was never able to resolve this issue so I had to disable the hack.

ConqSoft
10-12-2006, 05:36 PM
Very nice. Works well on vB v3.6.2 also. Thanks

Chicago_VLNU_4s
10-22-2006, 12:09 AM
Nice!! **installed**

jerudc
11-02-2006, 05:29 PM
Psionic, I installed this hack, did the two changed fields, and uploaded the file. I attempted to link my account to another of the ones I use, and it said all went well. When I clicked that little arrow thing next to my name, I got a small white box that says Switch Accounts. Thats all it says, and thats all it does. Can you think of a reason its not working? I'm using VB 3.5.1
Thanks.

akanevsky
11-02-2006, 07:25 PM
This has not been checked on a vBulletin version prior to 3.5.4. Please make sure 3.5.4 is installed on your site...

jerudc
11-09-2006, 02:00 PM
I updated my site, (boy did I fall behind!) And it works perfectly. Thank you so very much.

jerudc
11-15-2006, 06:13 PM
I have noticed something weird. If I am on a forum and I do an account switch, I end up on the main page, and logged out, not switched to the new name. If I am on the main page, and try the account switch, it works just fine. Is there a reason this could be happening?

akanevsky
11-26-2006, 09:08 PM
That's impossible, the URL of the links is the same in any case, so perhaps it either your cookies or you have not installed the hack correctly.

HellRazor
11-27-2006, 06:54 AM
Suggested feature: Allow users to link accounts on their own (validated by the user being required to input the name and password of the other account). This would automate the linking process and not require the admin to have to link accounts individually.

akanevsky
11-27-2006, 11:06 PM
Suggested feature: Allow users to link accounts on their own (validated by the user being required to input the name and password of the other account). This would automate the linking process and not require the admin to have to link accounts individually.

It shall be done.

akanevsky
11-28-2006, 09:33 PM
UPDATE:
It is done. :)

dknelson
12-11-2006, 09:37 AM
I am looking for something like this but have a question. Like many here, I have a forum where there are more than one user in a household that use the same computer. Their issue is that when one spouse logs out the other one and then logs in under their own name, all the cookies are lost for the first one. Does this hack preserve the cookies for each account as they are switched between?

HellRazor
12-13-2006, 10:54 AM
UPDATE:
It is done. :)

Awesome, thank you! :)

nymyth
05-14-2007, 11:52 PM
3.6.6 anyone?

nymyth
06-05-2007, 04:52 PM
anyone got this figured out for vbadvanced?

Cheers

nymyth
06-14-2007, 02:05 PM
after I set my cookiepath to my sitename in vbulletin options it stopped working any ideas why?

viper357
06-16-2007, 07:55 AM
One question before I install, please.

I want to use this for 2 different usergroups, i.e. regular member and sponsor, now if the regular member switches to his sponsor account, will the permissions for the usergroup "sponsor" still work?

My sponsors are not allowed to view or post in certain forums, will this hack take that into consideration?

Thanks.

viper357
06-16-2007, 11:56 AM
One question before I install, please.

I want to use this for 2 different usergroups, i.e. regular member and sponsor, now if the regular member switches to his sponsor account, will the permissions for the usergroup "sponsor" still work?

My sponsors are not allowed to view or post in certain forums, will this hack take that into consideration?

Thanks.

never mind, it works perfectly, using 3.6.5. Thanks for a great hack.


anyone got this figured out for vbadvanced?

Cheers

yeah, not working on vBadvanced, anyone got a fix for this?

Razasharp
07-04-2007, 04:04 PM
Looks like a great hack Psionic Vision!

A couple of suggestions:

How about making a quick sign-up process from within an account? That way passwords and emails are not needed to be re-typed etc as they are already in the db? And then they automatically get linked. Making the whole process easier and even more user friendly :)

How about linking all accounts so it works like one pretty much acts like the master and the other slaves or sub accounts. Then the 'options' from the master account are carried over to the slave accounts? (so only profile changes are used for the additional accounts).

Thanks for releasing this, my new site may be able to to make use of it! Would love to see the above features included too and could possibly donate if that that helps?

kjhkjh
07-05-2007, 02:46 AM
One of the skins I am using does not have the <!-- / PAGENAV POPUP --> in the template does that effect anything?

I cannot find this in the template either. Am not running any skins ov anything... just v3.6


Anyone know if I can still do the other changes and this'll work??

Thx

PoetJA-1975
06-26-2008, 06:54 AM
Sill works in 3.7 wow!
Thanx - should be helpful!

Jacquii.

SAReefer
08-14-2008, 08:57 AM
cool hack thanks, but since installing i have had complaints of the drop downs in the navbar periodically not working, is there something i could have done wrong??

ArchangelX
08-30-2008, 09:17 PM
Brilliant!

Maddogz420
09-07-2008, 09:51 PM
I'm getting an error when trying to link accounts @ usercp.php

"Your submission could not be processed because a security token was missing or mismatched"

Any ideas?

ArchangelX
04-28-2009, 07:52 AM
You need to add the security token to the form, I don't have the link but if you do a search you'll find it...obviously this plugin wasn't made for 3.8's new security token feature.