![]() |
1 Attachment(s)
I have updated to 4.2.2 but this script gives me the following error:
Quote:
- Go to admin panel - Go to Plugin & Products - Go to Manage Products and disable the Quick Account Switch - Go to Plugin manager - Scroll in the list to QAS: Handle Switch (global_start) and edit the file - Find in the PHP code the following: Quote:
Quote:
|
I just wanted to say a quick thanks to all of you who have helped keep this mod updated. I just used this mod on my role playing site, and really appreciate all the help offered here. :)
|
I totally agree with Rebecca. I updated to vB 4.2.1 and without the help of the users here (Alan and Tankkiller) I wouldn't be able to use this addon.
So thank you very much for keeping the addon up to date so we can use it or for offering help :) |
I have uploaded the new version...but still no link on the NavBar...
Am I missing something? |
Quote:
|
Quote:
|
Quick question, I have renamed in the 4.2.x Navigation Manager menu from "Quick Account Switch" to "Account". However, it does not change the menu title in my navigation?
Any ideas on how to do this? |
I need this but it's not working for me.
I have the accounts linked in AdminCP but can't find it on the forum. |
Forgive me if I missed it, but I literally read all 9 pages of this thread and a couple of people asked this same thing, but I don't think it was ever answered.
I would love to move the link out of the navbar and into the header template. How might I go about doing this? Thank you in advance! :) |
Well, you need to create template hook association for this mod with existing template hook in header (I don't know if there exist one), or create association for new hook that you'll place in header in position you like.
I described procedure here and here. Missing image in second post is because imageshack deleted it. :( I still use this system for quick change of accounts. |
Quote:
Thank you again for your help! :) |
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.
|
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. |
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: https://vborg.vbsupport.ru/external/2015/01/15.jpg 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. |
That's strange. I just checked, I don't have empty href tag. I use version given here. Interesting is, picture is back again, so you can see how it looks like.
Anyway, maybe you did something wrong? |
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! :) |
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. |
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! |
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. |
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. |
Add the link manually in the nav manager, no need for a plugin.
|
Quote:
Quote:
|
Ahhh, yeah so the link is dynamic, well then yeah, the plugin idea is the only way. :(
|
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?
|
Quote:
|
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: http://www.althanas.com/world/attach...5&d=1387559194 Here's the code: Edit ---> QAS_navbar_link template Code:
<vb:if condition="$show['qas_switch']"> 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. |
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 :D |
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" |
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 "=" |
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? |
Hate to double post, but does anyone have a solution for this? Thanks!
|
Once again I apologize for posting in this. Can anyone help me get this modification functioning? Thanks! Could really use this plug-in.
|
Quote:
|
Quote:
View this to see what I mean. No buttons to edit or anything... I tried unistalling it and reinstalling and now I can't. I get this error. "syntax error, unexpected '<', expecting end of file on line 1 in /home/thepoke7/public_html/usercp.php(77) : eval()'d code #0 {main} Fatal User Error: syntax error, unexpected '<', expecting end of file on line 1 in ..../usercp.php(77) : 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" |
No idear. It's always worked fine on every vB I've ever adminned that had this installed.
|
is it compatible with the newest version of VB 4?
|
Quote:
|
Anyone else?
|
Could someone bring this to vB5?
|
You mean, something like this?
|
All times are GMT. The time now is 09:00 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|