vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Profile Enhancements - Quick Account Switch (https://vborg.vbsupport.ru/showthread.php?t=217771)

akanevsky 07-02-2009 10:00 PM

Quick Account Switch
 
1 Attachment(s)
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

saadessa 07-03-2009 04:55 PM

thank yo for this nice hack

i will try it

COBRAws 07-03-2009 11:20 PM

I've been using this for a while. Thanks for the upgrade Anton.

sensimilla 07-04-2009 08:24 AM

I loved his modification, thanks for the update.

Hornstar 07-04-2009 11:05 PM

I suppose if you were to start a new site and want to post as different people to pretend there was some activity going on this might be good lol (split personality ^^ )

akanevsky 07-05-2009 12:39 AM

Quote:

Originally Posted by hornstar1337 (Post 1842938)
I suppose if you were to start a new site and want to post as different people to pretend there was some activity going on this might be good lol (split personality ^^ )

Or if you were to start a board for schizophrenics and people with other personality disorders. :D

Kayvin 07-09-2009 11:22 PM

This was one of the two mods you made Psionic Vision that were why I am still using 3.6.x.

I'll be upgrading this weekend, you're awesome.

Big-Pete 07-11-2009 07:33 PM

I've just installed this, i've set up an additional Admin-Team account in the user profile section and linked it to my account but its not showing up anywhere, if i goto Usercp and edit details there is nothing showing there, or in the navbar, Ive got it set so that only admins can see and use this, does tha mean that it wont show on the navbar?? if so how do i switch accounts?

Also is it possible for my mods to use this aswell as there is a general Mods account that all the mods have access to so they can remain anonymous :D

akanevsky 07-11-2009 09:17 PM

Quote:

Originally Posted by Big-Pete (Post 1847133)
I've just installed this, i've set up an additional Admin-Team account in the user profile section and linked it to my account but its not showing up anywhere, if i goto Usercp and edit details there is nothing showing there, or in the navbar, Ive got it set so that only admins can see and use this, does tha mean that it wont show on the navbar?? if so how do i switch accounts?

Also is it possible for my mods to use this aswell as there is a general Mods account that all the mods have access to so they can remain anonymous :D

The option is for linking and unlinking accounts. The links that are set up (no matter if through admincp or front-end) are usable by the linked users regardless of permissions.

Big-Pete 07-12-2009 10:06 AM

Quote:

Originally Posted by Psionic Vision (Post 1847176)
The option is for linking and unlinking accounts. The links that are set up (no matter if through admincp or front-end) are usable by the linked users regardless of permissions.

Thanks for replying so quickly Psion, what i need to know is where are you supposed to be able to switch the accounts over? i've installed as instructed but i've still nothing showing in the navbar or in usercp>edit details as you have in the attached pics, i've no way of changing from username1 to username2 even though i've linked the accounts?


Pete

Kayvin 07-12-2009 12:19 PM

Up where it displays your username on the navbar, generally, it adds a drop down menu directly following your username.

Big-Pete 07-12-2009 12:35 PM

Cheers kayvin, thats the same area as it shows in the pics, which is where i was expecting to find the dropdown menu, but for some reason its not happening on my site, I will have to look into it a bit more, its not showing in the usercp either :confused:

Would it be possible to add the dropdown link manually to my navbar?

Kayvin 07-13-2009 06:21 AM

Is this a custom template, and if so, have you checked to see if it displays properly using the default vBulletin template, and see if it appears, because QAS shouldn't have had any trouble plugging into that one at the very least.

Oh, and Psionic, not sure if this is fixable or not, but if I'm logged in as an admin when the site's disabled (cuz I was doing upgrades), and I wanted to test the QAS after I added it. I tried switching to a non-admin account, and that worked fine. But when I was on my non-admin account, seeing the board is closed notice, it would still let me open the Account Switch dropdown, but my linked account wasn't displayed, so to get back in, I had to log out and log back into my admin account.

Not sure if that's because of what vB disables when the site's locked down, but I'm wondering if that can be adjusted at all.

Ollie8557 07-25-2009 01:16 PM

I have been unable to unarchive the files. I am on a mac, and have had no problems with unarchiving files of this format before.

Ive done a bit of digging, and it appears that the error is caused by all the dots in the file name. Could you provide a simple file name version for me please?

akanevsky 07-25-2009 02:31 PM

Could you please just rename the file yourself?

BigDog56 07-25-2009 08:05 PM

Where in the admin cp can you link? Nevermind, I figured it out, lol

BigDog56 07-25-2009 08:24 PM

Works great, once I figured it out, lol. Thank you! This is handy for my wife and I.

Julie 07-26-2009 05:41 PM

Works like a charm right out of the box! :D Awesome mod, thanks!

Serenity278 08-02-2009 08:27 AM

I installed a new style and the dropdown next to the name isnt showing. It shows up fine in the other styles I use but just not this one. Is there a way I can get it to show in this new style? http://www.christianfellowship-net.c...php?styleid=22

Thanks!

SorentoUltimate 08-03-2009 12:10 AM

Perfect !!!!!!!!!!!!
Thanks !!!!!!!!!

Joseph Witchard 08-12-2009 02:25 PM

Is it safe on this mod to upgrade to vBulletin 3.8.4?

akanevsky 08-15-2009 01:06 PM

Yes, this mod should be safe for use on 3.8.4.

Alisa Lindsay 08-15-2009 04:29 PM

I have the old version on 3.8.3 and we love it. I have not been able to upgrade as I can't seem to unzip the file. I keep getting a header error.

Updated: My bad! I took a chance and downloaded the file again and voila! The newest version of Stuffit Expander opened it. I am trying to decide now if I am brave enough to try upgrading to this version.

Thanks for the great code!

akanevsky 08-15-2009 06:14 PM

Quote:

Originally Posted by Alisa Lindsay (Post 1867976)
I have the old version on 3.8.3 and we love it. I have not been able to upgrade as I can't seem to unzip the file. I keep getting a header error.

Updated: My bad! I took a chance and downloaded the file again and voila! The newest version of Stuffit Expander opened it. I am trying to decide now if I am brave enough to try upgrading to this version.

Thanks for the great code!

You are brave enough because this version is easier to install that the old one, and it has less bugs. :)

Alisa Lindsay 08-15-2009 10:26 PM

Psionic Vision,

You have great faith in me! However, I am the vBulletin Village Idiot. LOL.

I guess I'm mainly afraid I'll break something else by installing the new code and every single time I have to upload something to Host Monster...it's a trauma. For me AND Host Monster.

But it is a great code and saved us as we do a Stargate RPG and each play several characters so I and my Writers/Players thank you very much. Installation and Donation forthcoming as soon as I get the nerve to try installing it.

Regards,

Alisa

Wonksta 08-16-2009 02:15 AM

Possible to mask IP so it doesn't show the same IP?

Merjawy 08-16-2009 03:09 AM

installed and linked but the drop down won't show on my style.. does show on default style though.. I looked into navbar template and saw nothing different

akanevsky 08-18-2009 12:25 PM

Quote:

Originally Posted by SighK (Post 1868274)
Possible to mask IP so it doesn't show the same IP?

Show the same IP where?

Quote:

Originally Posted by Merjawy (Post 1868294)
installed and linked but the drop down won't show on my style.. does show on default style though.. I looked into navbar template and saw nothing different

That means your navbar template is severely different from the original. You might have to do the navbar modification by hand. If you want, post your template here as a text file.

Merjawy 08-20-2009 10:28 AM

Thanks Psionic, I will do that soon if I can't figure it out :)

Merjawy 08-21-2009 06:36 AM

I did figure it out.. I used [musername] instead of [username] to show the color.. I took the "m" out and all works now.

can it be allowed to mods/smods without the rest? I mean give them the option rather than doing it via admincp


Thanks

EDIT:Wow ... I added a link to another admin and I was able to switch to his account without asking me for his password.. I don't even know his password !!!

Thats rather not good :)


EDIT: I noticed theres no drop down in vBPortal .. also, there is a drop down in vBAdvanced but it lists no linked users

numsi 08-21-2009 01:12 PM

Quote:

Originally Posted by Merjawy (Post 1871463)
I did figure it out.. I used [musername] instead of [username] to show the color.. I took the "m" out and all works now.

Hello Merjawy

I think we have the same mod installed: Username HTML Markup in Navbar.

I have made the changes in the QAS: Handle Switch global_start and everything works fine...all so with the colored Usernames in the Navbar.

Go to -> Admin CP -> Plugins & Product -> Plugin Manager and find the: QAS: Handle Switch global_start

Open it for edit.

Find:

Code:

        $find_string_v1 = compile_template('<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>');
        $find_string_v2 = compile_template('<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>');


and change it to:

Code:

        $find_string_v1 = compile_template('<strong><phrase 1="$bbuserinfo[musername]">$vbphrase[welcome_x]</phrase></strong>');
        $find_string_v2 = compile_template('<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>');


Add only the m in red and everything work.

Hope that help
Cheers numsi

Merjawy 08-22-2009 12:44 AM

Thanks numsi,....

no I am not really using a mod for that.. I just went in and edited navra myself :) I didn't know there was a mod already...

I did look into one of qas templates but got kinda late and went to sleep..

thanks for the help I will do that so I can get name colors back in navbar..


cheers


EDIT: works great.. thanks

Joseph Witchard 09-01-2009 07:17 PM

Can you interlink accounts? Like, if I have Account A linked to Account B and Account C, when I switch to either one of them, they only link back to Account A. Could I go into Account B and Account C, link them together, and be able to switch to any account from any account I'm currently logged in as?

aymelek 09-01-2009 09:05 PM

How can I prevent users from linking their own accounts? I just want this ability in the Admin CP.

Wheezy 09-02-2009 08:24 PM

Very convenient; thanks!

/me clicks install.

akanevsky 09-05-2009 12:06 AM

Quote:

Originally Posted by aymelek (Post 1878029)
How can I prevent users from linking their own accounts? I just want this ability in the Admin CP.

Use vBulletin Options -> Quick Account Switch Options

Cause4Chaos 09-05-2009 11:07 AM

is there a way for moderators to use this as well as the admins and no body else

mattwmc2001 09-05-2009 05:32 PM

Time required to install: ~30 seconds

product-psi_qas

Where does this go?

*Nevermind, found where, lol: Manage Products-Import Product

Now where do I link the accounts, lol?

Log on 09-06-2009 09:27 AM

Very nice

but when I disabled the users to link the accounts... how I can link the accounts from the cPanel as administrator ?

thank u

kourou 09-08-2009 04:11 PM

Hello,

I installed the plugin in my forum and I have the following question:
I have a common Moderator account and linked all users that are moderators to that account. The problem is that when switched to that Moderator account, the can switch back to any other account linked to Moderator account. So what I would like to know is if there is any way to do "one-way" linking or something like that.

For example:
A is linked to C
B is linked to C
When A switches to C, it can switch back to B, which is not exactly what I'm looking for.

Thanks in advance for any answer,
Ilias


All times are GMT. The time now is 05:54 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.02279 seconds
  • Memory Usage 1,830KB
  • 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_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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