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-08-2006 01:15 AM

Quote:

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.

Quote:

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?

Quote:

Ahh, then that would be the SuperAdmin only anyway, right?
No, non-superadmins also 'canadministerusers' if you enable their permission to do so.

Quote:

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

Quote:

Originally Posted by Tralala
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

Quote:

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.

Quote:

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

Quote:

Originally Posted by Psionic Vision
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

Quote:

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

Quote:

Originally Posted by Psionic Vision
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

Quote:

Originally Posted by InsaneContender
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

Quote:

Originally Posted by Psionic Vision
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

Quote:

Originally Posted by Tralala
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...

Quote:

Originally Posted by Matt Slick
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

Quote:

Originally Posted by Psionic Vision
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

Quote:

Originally Posted by Matt Slick
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

Quote:

Originally Posted by Psionic Vision
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

Quote:

Originally Posted by Tralala
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

Quote:

Originally Posted by Psionic Vision
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.
Quote:

Originally Posted by Psionic Vision
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

Quote:

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:

PHP Code:

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


With

PHP Code:

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

Quote:

Originally Posted by Psionic Vision
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!!!


All times are GMT. The time now is 01: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,857KB
  • 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
  • (2)bbcode_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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