vb.org Archive

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

akanevsky 03-01-2010 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 4.0.x
|| Released : Mar 02, 2010
||
|| 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

2.0.1
[F] Fixed a minor bug.

2.0.0
[+] Hack ported to vBulletin 4.0.x.

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

Jonluci 03-02-2010 01:03 PM

thanks
worked great in 4.0.2 :)

Kolbi 03-02-2010 02:49 PM

Is it possible to only allow for admin?

And that noone can see which accounts the admin own?

utahraves 03-02-2010 03:29 PM

Wow, looks dope!

akanevsky 03-02-2010 04:14 PM

Quote:

Originally Posted by Kolbi (Post 1995302)
Is it possible to only allow for admin?

And that noone can see which accounts the admin own?

Yes, go to vBulletin Options -> Quick Account Switch

madotds 03-02-2010 05:32 PM

That Sir is one sexy mod! I have test accounts set up to check different usergroup settings and it is a pain having to log in and out to test them, but now all I nead do is click a link in my navbar! Sweet.

MaDavis

Matt Slick 03-02-2010 08:42 PM

How do you make the switch? In the old one on 3.8 boards there was a pulldown next to the login name. But, that isn't showing up after the install.

Don't know why, but it isn't there. Am I missing something?

TalkVirginia 03-02-2010 09:13 PM

OMG!! This addon is SIC!! It Rocks! :D Thank you so much!!

Got my vote for MOTM! :D

Matt Slick 03-02-2010 09:57 PM

How do you make the switch? In the old one on 3.8 boards there was a pulldown next to the login name. But, that isn't showing up after the install.

I know that on the 4.x boards it is next to the quick links pulldown, but it doesn't show up there. Don't know why, but it isn't there. Am I missing something?

http://forums.carm.org/vbb/forum.php

Thanks for any assistance you might give. Our moderators really like this hack.

akanevsky 03-02-2010 10:22 PM

Quote:

Originally Posted by Matt Slick (Post 1995569)
How do you make the switch? In the old one on 3.8 boards there was a pulldown next to the login name. But, that isn't showing up after the install.

I know that on the 4.x boards it is next to the quick links pulldown, but it doesn't show up there. Don't know why, but it isn't there. Am I missing something?

http://forums.carm.org/vbb/forum.php

Thanks for any assistance you might give. Our moderators really like this hack.

Please see the following screenshot.
https://vborg.vbsupport.ru/attachmen...7&d=1267541418

akvaryumforum 03-02-2010 10:25 PM

It erase all the other custom sub-nav links added. Except this it works fine.

akanevsky 03-02-2010 11:37 PM

Quote:

Originally Posted by akvaryumforum (Post 1995591)
It erase all the other custom sub-nav links added. Except this it works fine.

Fixed. Please download updated archive and replace the product xml.

Matt Slick 03-03-2010 01:15 AM

Quote:

Originally Posted by Psionic Vision (Post 1995586)
Please see the following screenshot.
https://vborg.vbsupport.ru/attachmen...7&d=1267541418

I saw that earlier, but it isn't working still.

I have no idea what the problem is and we really need this hack.

Please help...

thanks..

akanevsky 03-03-2010 01:49 AM

Quote:

Originally Posted by Matt Slick (Post 1995701)
I saw that earlier, but it isn't working still.

I have no idea what the problem is and we really need this hack.

Please help...

thanks..

Maybe you didn't link users? The dropdown only shows if you have linked your account to some other account.

Matt Slick 03-03-2010 02:50 AM

Quote:

Originally Posted by Psionic Vision (Post 1995721)
Maybe you didn't link users? The dropdown only shows if you have linked your account to some other account.

I linked to several other accounts and vice versa to my main one.

Logged out, back in.

Two different browsers: IE and FF

Unistalled and reinstalled the hack.

???

Sorry for the difficulty, but I'm stumped and really want to use the great hack...

thanks

Veer 03-03-2010 03:36 AM

Will this product upgrade previously installed 3.8 version or a fresh installation needed?

Matt Slick 03-03-2010 05:15 AM

Quote:

Originally Posted by Veer (Post 1995760)
Will this product upgrade previously installed 3.8 version or a fresh installation needed?

I'd tried the 3.8 version on the 4.0 boards, but it didn't work so I uninstalled it.

Then I installed this one.

akanevsky 03-03-2010 12:30 PM

Quote:

Originally Posted by Veer (Post 1995760)
Will this product upgrade previously installed 3.8 version or a fresh installation needed?

It is better to do a fresh installation.

archet1337 03-03-2010 02:16 PM

This mod is absolutely awesome! Great time saver. :)

* 5 stars

Matt Slick 03-04-2010 12:43 AM

Quote:

Originally Posted by Psionic Vision (Post 1996010)
It is better to do a fresh installation.


I had to reinstall and re-do the links then it worked... whew!

Sorry to bug you about it. I appreciate this hack a lot.

Great Job.

Zaiaku 03-08-2010 03:38 PM

Finally! How dare you make me wait for this mod to be brought over lol
Great work.

Joseph Witchard 03-27-2010 05:12 AM

Psionic Vision, I could kiss you right about now. Thanks so much for updating this mod!

Joseph Witchard 06-20-2010 03:59 AM

Sorry for the double post, but I wasn't sure if the thread would mark itself unread to anyone if I just edited my last post.

I'm getting ready to update my forum to VB4, so I'll be installing this mod. I assume I need to uninstall the 3.8 mod from my forum, run the VB4 update, and install the 4.0 mod on my new 4.0 forum. But, I was looking at the 3.8 mod, and it looks like it's going to delete necessary database data if I uninstall it, forcing my members to start linking their accounts all over again when the 4.0 mod is installed. Is there a way to uninstall the old mod without deleting what MySQL needs to link the accounts? Thanks!

peter_trucker 06-21-2010 08:02 AM

sorry m8

i installed this and it didnt work for me in vb4.0.4 :(

i had another mod [evi-tab] installed and thought that would be the cause for not wrking but i disablled that mod uninstalled yours and reinstalled it and it still isnt working.

Joseph Witchard 06-24-2010 03:55 AM

I just upgraded my test forum to 4.0.4 PL1 and installed it, and it seems to be working fine. My test forum is completely clean; no custom mods or skins whatsoever.

thisgeek 07-15-2010 01:14 PM

For what it's worth, I installed this on VB 4.0.5, and I had to change line 40 in qas.php from:

PHP Code:

      print_cp_redirect('Location: user.php?' $vbulletin->session->vars['sessionurl'] . 'do=finduser'); 

To:
PHP Code:

        print_cp_redirect('Location:user.php?' $vbulletin->session->vars['sessionurl'] . 'do=finduser'); 

Odd issue. Don't know if it's my Apache, or the VB version.

Joseph Witchard 07-17-2010 12:34 PM

Quote:

Originally Posted by thisgeek (Post 2069477)
For what it's worth, I installed this on VB 4.0.5, and I had to change line 40 in qas.php from:

PHP Code:

      print_cp_redirect('Location: user.php?' $vbulletin->session->vars['sessionurl'] . 'do=finduser'); 

To:
PHP Code:

        print_cp_redirect('Location:user.php?' $vbulletin->session->vars['sessionurl'] . 'do=finduser'); 

Odd issue. Don't know if it's my Apache, or the VB version.

Mind telling me what it was doing wrong before you made this code edit? I'm going to update to VB4 soon; I want to use the latest version if it's completely compatible with the mod.

ahmedipa 07-19-2010 07:03 PM

this is what I am looking for thank you so much

HellBoy 07-21-2010 05:15 AM

Works great! Thanks a lot, I was really happy to see that this mod has been modified for vB 4.

Michlerish 08-15-2010 03:12 AM

Amazing mod. Works perfect on 4.0.6

Thank you!

Boko577 08-15-2010 07:35 AM

I love this idea and mod, but I've got a few worries... Let's say I have another admin, that doesn't have full admin abilities, but does have some like editing users. So he could easily go to his profile and edit it and add my profile to it without needing a password. Then he could get on my account and have all abilities. I think this needs to be changed! Make it so only the superadmin can add/disable linked accounts. And make it so other admins can only do it if they have the other account's password.

Boko577 08-17-2010 12:56 AM

Quote:

Originally Posted by Boko577 (Post 2084123)
I love this idea and mod, but I've got a few worries... Let's say I have another admin, that doesn't have full admin abilities, but does have some like editing users. So he could easily go to his profile and edit it and add my profile to it without needing a password. Then he could get on my account and have all abilities. I think this needs to be changed! Make it so only the superadmin can add/disable linked accounts. And make it so other admins can only do it if they have the other account's password.

Can I get an answer??

Merjawy 09-03-2010 07:34 AM

Love it.. Had used it a bit in past

Can you add the option for user group permission? I like to allow SMODs also to use it if I could like it was with vB 3 mod

Also, I noticed the drop down menu only shows up in Forum but not in CMS or Blogs

Thanks

EDIT: I just went ahead and linked each SMOD to other accounts from AdminCP and they now have the option to swich even as user.. Great

Thanks again

Merjawy 09-03-2010 08:25 AM

Quote:

Originally Posted by Boko577 (Post 2084123)
I love this idea and mod, but I've got a few worries... Let's say I have another admin, that doesn't have full admin abilities, but does have some like editing users. So he could easily go to his profile and edit it and add my profile to it without needing a password. Then he could get on my account and have all abilities. I think this needs to be changed! Make it so only the superadmin can add/disable linked accounts. And make it so other admins can only do it if they have the other account's password.

Even I as SuperAdmin can not link any account unless I know the password if I do it from UserCP... But from AdminCP you do not need the password.

My work around abuse is posted above.. I link accounts for whoever I want and they can use the feature without making the mod public



I hope this helps

Khrissy 09-04-2010 11:42 AM

I go to link a account and it comes up a 'page not found' did I do something wrong?

Merjawy 09-04-2010 11:45 AM

Make sure you upload the file qas.php to admincp folder

Khrissy 09-04-2010 11:51 AM

Ahhh a BIG thankyou ;-) I knew my brain was somewhere XD

sulasno 09-05-2010 03:40 AM

installed;

definitely a must for Admins

edit

only the Admin can select which user to switch to if more than 1 account is linked;
the user can only switched to the Admin account

Merjawy 09-05-2010 05:56 AM

If you (the Admin) link a user's accounts, he/she can switch between all linked accounts

sulasno 09-05-2010 09:25 AM

thanks

add the links to the profile in ACP


All times are GMT. The time now is 06:18 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.01360 seconds
  • Memory Usage 1,838KB
  • 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
  • (4)bbcode_php_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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