The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Quick Account Switch Details »» | |||||||||||||||||||||||||||||||||||||
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
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 Download Now
Screenshots
Show Your Support
|
Благодарность от: | ||
svyrydov |
Comments |
#132
|
|||
|
|||
Quote:
Thank you again for your help! |
#133
|
||||
|
||||
Is there is a way to show notifications for those linked accounts in the dropdown? like maybe a "Total Notifications"? to show an admin someone has interacted with one of the linked accounts? If I am using a few linked accounts for different management, I want to know if there is a notification for that account without having to switch over to it first.
|
#134
|
||||
|
||||
Quote:
Actually, you can do two things: a) You can edit plugins (actually, one plugin of this mod in question). b) You can edit installation xml file by yourself, or use one I attached and upload it with allowing overwrite to assure it is accepted by vB. Everything will stay the same, except, of course, you'll have additional working hook (or completely new one) that you now can place in header template where you want it. I don't know what exactly you intend to do, but I still use things as I described in second post (much faster to see all linked accounts and it needs only one click). Sorry for missing image, imageshack dropped it. Anyway, creating new, previously not existing hook is the best path and afterwards placing it in template of choice (navbar, footer, whatever someone prefers). At least I see it that way. Quote:
Linked accounts are still completely separate. This mod just makes easy switching between them. No information (except linked accounts) is stored about them. And I agree it would be useful to see if there are new PM's or other notifications about other accounts. |
#135
|
|||
|
|||
Quote:
Although, now I'm seeing this issue (in fact it's been there all along, but I thought it'd be easier to take care of...) Screenshot with space highlighted and Chrome's inspect for reference: There's a couple of things I'm confused about... 1: There's an li with an id of "qas_switch" that was empty (it also had an empty href tag) - I have that id set to display none, because it was creating more space. 2: The QAS is in the next li, but there's a weird empty href tag in there too, before the actual link. When I inspect and do display:none on that one, the space goes away and all is well. I'm not sure why there's an empty href tag there and because the link is being added in through the Navigation Manager, there's no way for me to edit the html. Any ideas how to get that empty href to go away? I can't do something like this (li#yui.gen0 { a: display:none; }) as that would remove all the links in that id. |
#137
|
|||
|
|||
Quote:
If I wanted to do this one without using the new .xml, do I need to uncomment one of the lines at the bottom of the code? This is what is in this board's QAS: Handle Switch: PHP Code:
Thank you, Alan for your patience! |
#138
|
||||
|
||||
Well, I'm using hook in my version and template which I modified to create output I like as shown in the image (both are in my xml version, you only need to place hook manually where you want output).
Here is used phrase for navigation, but how vB handles it, I don't know, maybe that creates problem, maybe not, I'm not on vB4.2.1+ But, when updating, you just can reload older version and allow overwrite if you don't like new version. Every setting will stay the same this way. So you can play with different versions of QAS. About code, you could try to uncomment hook locations and see if it will work on your version of vB. |
#139
|
|||
|
|||
I had to take a break looking at this... but finally at it again!
Okay, after some testing... this is what I've found... PHP Code:
Doing this, the QAS link is now the very last link in the navbar and there is no extra funky space that I was seeing. I'd prefer this to not be the last link in the navbar, but I definitely won't complain as the extra space to the side was bothering me more than the order does. Thank you for your help, Alan! |
#140
|
||||
|
||||
If I understand you correctly, now you're using two hooks: navbar_end and navbar_after_links? As in the code isn't version you described you're using.
Anyway, from what you did if I get it correctly, there's a problem with Navigation Manager, who creates that extra space, which is probably bug in vB. You could always add new hook location in template navbar at exact place where you want QAS switch and add it in the plugin code. |
#141
|
|||
|
|||
I've just commented out two of the hook locations, and now am using this one, which seems to work and not break anything:
PHP Code:
PHP Code:
Being used to how the navbar worked in vb3, I'm considering just not using the Navigation Manager at all and just hardcoding the links in there in the order that I want them. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|