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 |
#142
|
||||
|
||||
Add the link manually in the nav manager, no need for a plugin.
|
#143
|
||||
|
||||
Quote:
It's not a simple link and it's created differently for each user that has linked accounts. That's why it needs plugin to create all links for each user, if user has linked accounts. |
#144
|
||||
|
||||
Ahhh, yeah so the link is dynamic, well then yeah, the plugin idea is the only way.
|
#145
|
|||
|
|||
It'll require template edits, and possibly an edit to the plugin itself. I don't have this installed on my site anymore, but I might be able to help you out. What is your site URL?
|
#146
|
|||
|
|||
Site may be going a different route (i.e. starting over on 3.8), so I'm good for now. Thank you!
|
#147
|
|||
|
|||
Hey everyone, thanks for all the help you gave me earlier. I ended up modifying the navbar to make QAS a navtab rather than a sublink and I thought I'd share the code if you guys want to do something similar.
Here's what it looks like: Here's the code: Edit ---> QAS_navbar_link template Code:
<vb:if condition="$show['qas_switch']"> <li class="popupmenu"><a class="navtab popupctrl" href="javascript://">{vb:rawphrase qas_qas}</a> <ul class="popupbody popuphover">{vb:raw switchbit}</ul> </li> <vb:else /> {1} </vb:if> Thanks again for all of your help! EDIT: I should also note I changed the QAS rawphrase to say "Accounts" rather than "Quick Account Switch." Sorry, I'm terrible at being helpful. |
#148
|
|||
|
|||
Works on vBulletin 4.2.4. However, it will have an annoying space between "quick links" and "Quick Account Switch". I tried all the above suggestions, nothing worked.
In the end, I fixed it from "Styles and Templates" - Replacement Variable Manager" - "Add Replacement Variable". It required two replacements. 1. Add Replacement Variable At "Search for text" write: <a href=""> Replace with text: leave it blank. Save 2. Add replacement variable At "Search for text" write: <li id="qas_switch"><a href=""> Replace with text: leave it blank. Save Works perfectly even on custom themes. No other things needed |
#149
|
|||
|
|||
Does anyone know why I get this on my forum home page and how I can fix it? Happens when I install the mod.
"syntax error, unexpected 'new' (T_NEW) on line 74 in /home/thepoke7/public_html/global.php(29) : eval()'d code #0 /home/thepoke7/public_html/forum.php(67): require_once() #1 {main} Fatal User Error: syntax error, unexpected 'new' (T_NEW) on line 74 in ..../global.php(29) : eval()'d code in ..../vb/vb.php on line 286 Trace Data: #1 : vbstop() called in ..../includes/class_core.php on line 6089 #2 : vbulletin_error_handler() called in on line #3 : trigger_error() called in ..../vb/vb.php on line 286 #4 : vB::handleException() called in on line Var Type: [ NULL ] Var Data: null" |
#150
|
||||
|
||||
Quote:
Open xml file product-psi_qas with editor and in about line 161, find Code:
$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']); Code:
$vbulletin->session =new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']); Actually this is the change we make, as my specialist friend @MarkFL said to other deprecated codes "change "=&" to this "=" |
Благодарность от: | ||
MarkFL |
#151
|
|||
|
|||
Thanks for the fast response! Appreciate the help and thanks to @MarkFL as well for his support on everything.
EDIT: The edit or add settings dont show in the acp under the options for the qas and I don't have the switch account button in the navbar. Any ideas? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|