vb.org Archive

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

akanevsky 11-27-2006 10:00 PM

Quick Account Switch
 
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

akanevsky 11-28-2006 09:29 PM

<font size="3">First Post Reserved.</font>

Mecho 11-28-2006 09:36 PM

Thanks . sounds good .

thedvs 11-28-2006 09:48 PM

the old 3.5.4 upwards version works on v3.6.4 too

Valter 11-28-2006 09:53 PM

Thanks for update.

What about option to allow or not users to link accounts without administrator?

Btw you are missing upgrade info.

voteforbird 11-28-2006 10:03 PM

Very cool, thank you.

akanevsky 11-28-2006 10:10 PM

Quote:

Originally Posted by thedvs (Post 1127603)
the old 3.5.4 upwards version works on v3.6.4 too

You are correct. The 3.5 version, however, was not posted in the 3.6 section.

Quote:

What about option to allow or not users to link accounts without administrator?
-> Please see the changelog. Thanks.

Sorry, the upgrade instructions are as follows (I assumed you reverted everything since 3.6 upgrade):
Re-upload the files.
Re-upload product xml.
Cancel previous template modifications, do the new ones instead.

projectego 11-28-2006 11:19 PM

Cool hack. Thank you. :)

Slave 11-29-2006 02:37 AM

Hi :)

Nice hack .. a couple of things ..

When you enter an incorrect username in the UserCP you get an error message "Could not find phrase 'badlogin_strikes'" .. perhaps use the same '5 goes and your out' type protection as vBMS does on normal account login?

The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Thanks :)

Slave 11-29-2006 02:58 AM

Quote:

Originally Posted by Slave (Post 1127794)
The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Looks like adding "switchbit" to "Portal Output Global Variables" in vBa's Default settings page did the trick :)

Slave 11-29-2006 03:10 AM

Oh, and if you have things like vBGallery or vBlogetin installed you need to edit the .xml to put your full URL in front of one instance of login.php in one of the templates before installing the product.

Seems to work on all pages then :)

ragtek 11-29-2006 05:43 AM

Psionic Vision thx for your great work

your products are great!

HellRazor 11-29-2006 10:19 AM

Thanks Psionic for the update and new features! :)

Suggestion for a new hack that would be similar (but not the same) as this:

Alias System:

1. Allow members to have an admin-defined number of alias names to post under.
2. Forums would have the option to allow users to post under an alias. Alias forums would have a dropdown of all the member's alias' in the "Post From" box.
3. Each alias would also be able to have its own seperate avatar.

The reason this would be useful is that a lot of roleplaying game forums have a forum set aside for users to post "in character". An alias would allow them to post under the name and with the avatar of their character without needing a seperate user account.

akanevsky 11-29-2006 06:04 PM

Quote:

Originally Posted by Slave (Post 1127794)
Hi :)

Nice hack .. a couple of things ..

When you enter an incorrect username in the UserCP you get an error message "Could not find phrase 'badlogin_strikes'" .. perhaps use the same '5 goes and your out' type protection as vBMS does on normal account login?

The "Quick Account Switch" drop down menu in the welcome box doesn't seem to work on vBa CMPS pages. Do you know what is needed to get this to work?

Thanks :)

That phrase is present in vBulletin by default. I don't know what you did with it. :)

Quote:

Psionic Vision thx for your great work
No problem, but please click install.

Roms 11-30-2006 01:06 AM

This is a great idea. They used something similar on ezboard and I've always missed it here. :) (I'll click install if i end up using it. :) )

Snake 11-30-2006 07:44 PM

Wow! This is GREAT! :D

Caerydd 12-29-2006 11:19 AM

So just to check, to use in a CMS that is intergrated withe vbulletin I just need to call the $switchbit variable? None of the others I found in the plugin, live psi_qas ?

And also which line of the plugin to input the full url, as my CMS runs in root, and my vbulletin runs in a /forums subfolder.

This worked great otherwise, but I really need it to work every where the navbar appears!

akanevsky 12-29-2006 12:20 PM

Quote:

So just to check, to use in a CMS that is intergrated withe vbulletin I just need to call the $switchbit variable? None of the others I found in the plugin, live psi_qas ?
Yes.

Saskia 12-29-2006 02:01 PM

Just upgraded from 3.5. Nice work! I especially like the option of allowing users to link their profiles by themselves, good integration.

I placed it all in a custom profile page, because that was of better use for my forums and just changed the location of one of the plugins, the two redirect links to the appropriate profile page and changed the link in the qas_userbit template. Works like a charm!

This was definetly something that a lot of my users highly valued when I installed it. So thank you!

/me clicks install.

The dman 12-29-2006 02:15 PM

This looks like just what I've been looking for but before I install it I wanted to know if I can set it so only the mods or administrators can use this?

Caerydd 12-30-2006 07:13 AM

Hmm, well no joy at present getting it to work outside the forum pages, and I had to reset the system/reinstall it after fiddling around with the source code :(

Other than that, works great and my users love it! Now all I need is something built on this to integrate it into our premium features that allows one to have more than one account >>

Also, perhaps some way of viewing all accounts that are mapped at all in this system.

buileminh 01-02-2007 01:35 PM

Thanks for this nice hack!
Suggestion: Only certain group(s) can use this feature

voteforbird 01-06-2007 12:04 AM

Does this script lay a cookie entitled "userid"?

akanevsky 01-06-2007 01:37 PM

Quote:

Originally Posted by voteforbird (Post 1151676)
Does this script lay a cookie entitled "userid"?

No.

scan-pa 01-07-2007 12:48 AM

Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

stomph 01-28-2007 04:51 PM

Quote:

Originally Posted by scan-pa (Post 1152306)
Anthony,

Great mod, but can you please add a feature for only certain groups to be able to access this function?

I simply enclosed the whole modification to the USERCP template with:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
Code:

</if>
Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

Mastar 01-30-2007 04:23 PM

Anyone got it working on Vb3.64?

akanevsky 01-30-2007 06:23 PM

Quote:

Originally Posted by Mastar (Post 1170652)
Anyone got it working on Vb3.64?

This works on 3.6.4. 3.6.0 is the minimum version required in the 3.6.x series.

Caerydd 01-30-2007 06:40 PM

Quote:

Originally Posted by stomph (Post 1169126)
I simply enclosed the whole modification to the USERCP template with:
Code:

<if condition="in_array($bbuserinfo['usergroupid'], array(2, 6, 7))">
and:
Code:

</if>
Now only users from the groups 2, 6 and 7 will see the hack in UserCP.

This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

akanevsky 01-30-2007 07:26 PM

Quote:

Originally Posted by Caerydd (Post 1170754)
This only seems to work with 'primary' usergroups, either that or it doesn't work for a more than three numbers in an array?

I have users awarded a usergroup as their secondary usergroups, and want the ability to link available to them then.

Please use is_member_of($bbuserinfo, 2, 6, 7) in the conditional instead of what he posted.

Mastar 01-30-2007 08:12 PM

Psionic Vision for some reason it isn't working on my board.

akanevsky 01-30-2007 09:32 PM

Quote:

Originally Posted by Mastar (Post 1170810)
Psionic Vision for some reason it isn't working on my board.

What exactly isn't working? Sorry, I don't know how to read minds yet.

wolfyman 02-07-2007 03:01 PM

oh good lord this is cool :D

ragtek 02-10-2007 04:17 PM

is it possible that this hack is defect / not safe?

i have a problem that sometimes (until now 2 times) a user logged in with a other account
i mean:
i log in as ragtek but i'm logged in as another user which is neither linked with me, nor has been on the computer before.

wolfyman 02-10-2007 04:33 PM

that doesn't sound good.

if the wrong person accidentally logged in as admin.... uh oh.

Anybody got any strong opinions on this?

akanevsky 02-10-2007 04:46 PM

Quote:

Originally Posted by ragtek (Post 1179220)
is it possible that this hack is defect / not safe?

i have a problem that sometimes (until now 2 times) a user logged in with a other account
i mean:
i log in as ragtek but i'm logged in as another user which is neither linked with me, nor has been on the computer before.

That's not something that could be caused by this hack.

ragtek 02-10-2007 07:43 PM

allright
than i must check the other plugins

Gsmdenis 03-05-2007 07:39 PM

no bad, supported

BR.,

bluesoul 04-23-2007 04:38 PM

Quote:

Originally Posted by Slave (Post 1127810)
Looks like adding "switchbit" to "Portal Output Global Variables" in vBa's Default settings page did the trick :)

This gets me about halfway, but when I go to switch users from the vBA portal it takes me to a white page with "No Input File Specified." It also leaves off the /forum/ in the URL (it tries to access http://www.wifom.net/login.php?do=qas_switch&userid=168 instead of http://www.wifom.net/forum/login.php...ch&userid=168), but login.php is included in all 3 Replacement lists.

dutchbb 05-02-2007 01:45 PM

I can link an account but the drop down menu in the navbar doesn't work. And yes I did every step correct.


All times are GMT. The time now is 04:59 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.01429 seconds
  • Memory Usage 1,828KB
  • 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_code_printable
  • (14)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