View Full Version : Profile Enhancements - Quick Account Switch
akanevsky
03-01-2010, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=70971))
The installation manual is contained within the attached file.
IF YOU LIKE MY HACK, PLEASE CLICK INSTALL (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=237286)
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
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
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/attachment.php?attachmentid=113397&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
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
Please see the following screenshot.
https://vborg.vbsupport.ru/attachment.php?attachmentid=113397&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
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
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
Will this product upgrade previously installed 3.8 version or a fresh installation needed?
Matt Slick
03-03-2010, 05:15 AM
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
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
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:
print_cp_redirect('Location: user.php?' . $vbulletin->session->vars['sessionurl'] . 'do=finduser');
To:
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
For what it's worth, I installed this on VB 4.0.5, and I had to change line 40 in qas.php from:
print_cp_redirect('Location: user.php?' . $vbulletin->session->vars['sessionurl'] . 'do=finduser');
To:
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
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
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
sulasno
09-06-2010, 03:49 PM
not sure whether this is a bug;
I got 4 accounts using different styles; switching users do not change the styles
Alisa Lindsay
09-17-2010, 02:14 PM
Hello,
I use this modification at all 3 of my boards and have used it for years and years. It's invaluable to my roleplaying groups since most members have multiple characters.
However, I have discovered a bug that seems to be linked to this mod in 4.06 (only one board on 4.06 right now).
When I view another member's profile page, their avatars and profile pictures show as the unknown.gif. This happens even when I look at my other account's profiles that are linked to my primary account. On the other hand, when I Quick Switch to the other account, I can then see the profile images with no issues.
Anyone else have this issue in 4.06 + ? Is there a fix for it ?
Regards,
Alisa
Alisa Lindsay
09-20-2010, 08:17 AM
Hello,
I use this modification at all 3 of my boards and have used it for years and years. It's invaluable to my roleplaying groups since most members have multiple characters.
However, I have discovered a bug that seems to be linked to this mod in 4.06 (only one board on 4.06 right now).
When I view another member's profile page, their avatars and profile pictures show as the unknown.gif. This happens even when I look at my other account's profiles that are linked to my primary account. On the other hand, when I Quick Switch to the other account, I can then see the profile images with no issues.
Anyone else have this issue in 4.06 + ? Is there a fix for it ?
Regards,
Alisa
Update: Just discovered similar issue on 4.03. On 4.03, we can see the profile pictures but not the avatars, it goes to the default avatar image.
Please, can we get a fix?
Warmest Regards,
Alisa
Alisa Lindsay
10-04-2010, 06:57 PM
Hello,
I use this modification at all 3 of my boards and have used it for years and years. It's invaluable to my roleplaying groups since most members have multiple characters.
However, I have discovered a bug that seems to be linked to this mod in 4.06 (only one board on 4.06 right now).
When I view another member's profile page, their avatars and profile pictures show as the unknown.gif. This happens even when I look at my other account's profiles that are linked to my primary account. On the other hand, when I Quick Switch to the other account, I can then see the profile images with no issues.
Anyone else have this issue in 4.06 / 4.03 + ? Is there a fix for it ?
Regards,
Alisa
I hate to bump my own issues...but still looking for an answer to this issue. I realize this mod is not supported, but this is a pretty major user-impacting bug.
Thanks and Regards,
Alisa
Joseph Witchard
10-11-2010, 11:04 AM
I hate to bump my own issues...but still looking for an answer to this issue. I realize this mod is not supported, but this is a pretty major user-impacting bug.
Thanks and Regards,
Alisa
Hi:) I also run an RPG forum. I'm using this mod on 4.0.5, but I have experienced no such trouble with such an issue. I don't know if that narrows it down to what it might be for you, but I thought I would let you know just in case.
Alan_SP
10-11-2010, 09:40 PM
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
I think that having option for usergroup permissions is very important, I like to enable some things to some usergroups and not to others.
Also, I think that even admins should know pass of users that they would link.
Alan_SP
10-12-2010, 03:20 AM
How to check usergroup with if statement in php?
This line checks if it's allowed for users to use this plugin:
if ($vbulletin->options['psi_qas_allow_front_end_linking'])
I can change variable psi_qas_allow_front_end_linking to represent allowed usergroups, but I don't know how to phrase correct if statement to check if user is member of it.
Alan_SP
10-12-2010, 04:22 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.
I think that having option for usergroup permissions is very important, I like to enable some things to some usergroups and not to others.
Also, I think that even admins should know pass of users that they would link.
Ok, I solved everything that bothered me and found a way around for Boko577. :)
Now you can control whether you want to allow admins without right to administer plugins to use it via AdminCP. You just go to Plugin manager, find "QAS: Admin Controls" in "Product : Quick Account Switch" and turn it off, or use changed xml I attached.
I enabled you to choose which usergroups can link another accounts and it's done in UserCP, so they must know pass. Also, by default plugin for using it in AdminCP is turned off. If you want to turn it on, just go to plugin manager and enable it (QAS: Admin Controls). Or, you can edit my file and enable it from the start.
Dominico Savio
10-25-2010, 08:55 PM
installed then uninstalled because it break the layout with so hundreds lines of warning
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: Display_Visitors_User in [path]/includes/functions.php on line 4007
Haenk
10-27-2010, 06:13 AM
Sorry for this perhaps easy question from an German.
Where can I link to other User-Account in Admin CP?
I can link in usercp, but can't find the option in admincp.
Many thanks!
Alan_SP
10-30-2010, 02:37 AM
In AdminCP go to user you want linked, and in left column of his settings (if you use two column layout) you'll find with whom this user is linked (of course, if he's linked) and options to link users with this user account. It's somewhere around user profile fields (Location, Occupation...).
Just go there and look, you'll see it.
Or just look at the picture in first post, it shows where it is. :)
sulasno
12-16-2010, 03:13 AM
using this hack to check the current version
https://vborg.vbsupport.ru/showthread.php?t=255054
there is an error;
smirkley
12-24-2010, 12:39 PM
Ok, I solved everything that bothered me and found a way around for Boko577. :)
Now you can control whether you want to allow admins without right to administer plugins to use it via AdminCP. You just go to Plugin manager, find "QAS: Admin Controls" in "Product : Quick Account Switch" and turn it off, or use changed xml I attached.
I enabled you to choose which usergroups can link another accounts and it's done in UserCP, so they must know pass. Also, by default plugin for using it in AdminCP is turned off. If you want to turn it on, just go to plugin manager and enable it (QAS: Admin Controls). Or, you can edit my file and enable it from the start.
Thank you, makes a good mod better.
Mukashi
05-21-2011, 03:30 AM
Can anyone confirm if this addon still works for 4.1.3? Either the original, or Alan_SP's modification to it?
Alan_SP
05-21-2011, 10:25 PM
On 4.1.2 still works. Don't see why it wouldn't work on 4.1.3.
togotutor
05-25-2011, 01:50 AM
Downloaded, will try soon!
FReeSTER
06-25-2011, 04:05 PM
Is there a way to prevent users to share same info?
For sample, I logged in as one user and when I checked the user posts is sharing all users posts from the main user which is admin. That brings confusion
Thanks for/your help
FReeSTER
07-12-2011, 07:43 PM
Bump :p
FReeSTER
07-19-2011, 06:09 PM
How can I have this mod but with out the option of linking accounts? When we make multiple accounts is for the purpose that at the end we dont want users to know we are those extra accounts.
The mod is great but the linking all accounts is what it get me.
This mod will save me so much time that I will be more then greatfull to donate what ever it takes to get it working
cykelmyggen
07-23-2011, 08:03 AM
Just installed this mod on 4.1.4, but I'm getting this error when trying to create new link in ACP:
Fatal error: Call to undefined function can_administer() in /var/www/sites/boggnasker.dk/vbforum/qas.php on line 22
Kirauni
08-25-2011, 12:56 PM
I have been looking for a modification that allows users to change accounts quickly. That's perfect for a roleplaying board where one user has many account. So despite of what has been written here, I installed it. And until now it seems to work. I'm running vB 4.1.5 PL1 and I don't have any issues with the profile pictures or avatars. Howevery, there was something odd: When a user chanes the account while being in ones profile, the old profile is still displayed. I've not yet told my users about this modification because I'm still testing, but so far it looks good.
@FReeSter: I'm sorry, but I don't understand what your problem is.. it sounded quite confusing to me. Can you explain what exactly you did and where the problem is? Maybe I haven't stumbled across this yet.
And @Cykelmyggen: Now that's strange... It seems like the script is checking if you have the neccesary rights to administer users. Do you have any addons installed?
hoadiem
08-29-2011, 09:34 PM
will install when i get home
Conehead555
08-29-2011, 10:49 PM
I love you. :) 4.1.4.
hoadiem
08-30-2011, 12:23 AM
install, nominate , no need to log in and out a lot for me, thanks a lot
smirkley
10-09-2011, 03:30 AM
I use thisand like it.
Question,.. anybody know how to move the link from the navbar and into the header??
I just want it in the header, but I cant seem to attach it to a hook in the header.
Help !!
smirkley
10-11-2011, 05:17 AM
Sorry for the bump, but I am really hoping to figure out how to move the link into the header.
It seems I have to make a hook, and register? it and then reference the install xml to this new hook?
Really hoping for a bit of help here from the members, I know the author doesnt support others modifications, so i ask of the members.
Thanks
FReeSTER
11-16-2011, 06:23 PM
excellent!!!!!!!!!!
thanks
LLent
01-02-2012, 10:10 PM
looking to put this in navbar for new posts how would i do that thanks
Alan_SP
01-03-2012, 01:31 PM
It's already in navbar, so you don't need to put it again.
LLent
01-03-2012, 08:10 PM
It's already in navbar, so you don't need to put it again.
not in new posts on on forum it is ....when i go to new posts i want it there also
Alan_SP
01-04-2012, 07:27 PM
I uploaded modified xml file that enables that (also includes my previous modifications, read what I changed with older version), or you could manually edit your file, or your plugin.
You need to edit plugin: QAS: Handle Switch
At the end of plugin add this line:
$template_hook['navbar_getnew_menu'] .= $add_string;
You should have this:
$template_hook['navbar_end'] .= $add_string;
$template_hook['navbar_getnew_menu'] .= $add_string;
}
Now you should have QAS at What's new.
sweetpotato
01-06-2012, 10:42 AM
I uploaded modified xml file that enables that (also includes my previous modifications, read what I changed with older version), or you could manually edit your file, or your plugin.
You need to edit plugin: QAS: Handle Switch
At the end of plugin add this line:
$template_hook['navbar_getnew_menu'] .= $add_string;
You should have this:
$template_hook['navbar_end'] .= $add_string;
$template_hook['navbar_getnew_menu'] .= $add_string;
}
Now you should have QAS at What's new.
Thank you for your work. It's really useful
Kat-2
01-24-2012, 07:52 PM
Works great on 4.1.2 ♥
LLent
04-05-2012, 06:06 PM
I uploaded modified xml file that enables that (also includes my previous modifications, read what I changed with older version), or you could manually edit your file, or your plugin.
You need to edit plugin: QAS: Handle Switch
At the end of plugin add this line:
$template_hook['navbar_getnew_menu'] .= $add_string;You should have this:
$template_hook['navbar_end'] .= $add_string;
$template_hook['navbar_getnew_menu'] .= $add_string;
}Now you should have QAS at What's new.
when i upgraded to 4.1.11 i lost it in the whats new how do i fix this ???thanks in advance
Alan_SP
04-05-2012, 06:26 PM
I still don't have 4.1.11, so I couldn't tell. But, you need to find the right hook. You could take a look in template and find out name of the hook now.
DAMINK
04-05-2012, 10:24 PM
It does not show up in my navbar but does on other themes.
Anyone know of a way to add this manually to the navbar?
Thanks.
Valter
05-21-2012, 04:41 PM
Quick fix for 4.2.0:
Replace in product XML, this: $template_hook['navbar_end'] .= $add_string;
with this: $template_hook['navbar_after_links'] .= $add_string;
Rckcrwlr
05-25-2012, 10:14 AM
Quick fix for 4.2.0:
Replace in product XML, this: $template_hook['navbar_end'] .= $add_string;
with this: $template_hook['navbar_after_links'] .= $add_string;
Just coming to ask...thanks
Rckcrwlr
05-25-2012, 04:07 PM
Quick fix for 4.2.0:
Replace in product XML, this: $template_hook['navbar_end'] .= $add_string;
with this: $template_hook['navbar_after_links'] .= $add_string;
:o
How do you change it? I have never dealt with XML. I tried to do it in Excel but it didn't work.
Can someone help with it?
Thanks
Alan_SP
05-25-2012, 07:51 PM
Open it in text editor you prefer, it is plain text. Find code you want to edit and just edit it. :)
Rckcrwlr
05-25-2012, 08:00 PM
Open it in text editor you prefer, it is plain text. Find code you want to edit and just edit it. :)
Thanks, I'll try that.
Wow....that was easy...
xpwmaster
05-26-2012, 03:42 PM
did try the script on my Version 4.1.12 forum . the acount switch option never shown on my nav bar
Rckcrwlr
05-26-2012, 04:32 PM
did try the script on my Version 4.1.12 forum . the acount switch option never shown on my nav bar
I downloaded the files from here and then modified it in the new download. Make sure when you import it that you say to overwrite it.
It worked perfect for me...
xpwmaster
05-26-2012, 04:37 PM
Rckcrwlr can u upload or give link to the new files . thanks
Rckcrwlr
05-26-2012, 04:50 PM
Rckcrwlr can u upload or give link to the new files . thanks
Not sure how to upload a file..
I am in no way program literate and I was able to do it.
Just make sure that search for the line that was identified. I then highlighted it and pasted the new line over it. Make sure to include the ending semi colon.
Good luck
xpwmaster
05-26-2012, 05:03 PM
i uploaded the qas.php to my admincp folder . and import the product-psi_qas in Plugins & Products
i am able to see the Quick Account Switch Options in the admin pannel . but there isnt other option i can edit .
in my forum it self in navbar i have
New Posts
Private Messages
FAQ
Calendar
Arcade
Community
Forum Actions
Quick Links
there isnt Quick Account Switch tab
my vb is Version 4.1.12 not 4.2.0
Rckcrwlr
05-26-2012, 05:43 PM
i uploaded the qas.php to my admincp folder . and import the product-psi_qas in Plugins & Products
i am able to see the Quick Account Switch Options in the admin pannel . but there isnt other option i can edit .
in my forum it self in navbar i have
New Posts
Private Messages
FAQ
Calendar
Arcade
Community
Forum Actions
Quick Links
there isnt Quick Account Switch tab
my vb is Version 4.1.12 not 4.2.0
You need to edit the xml file before uploading it. Go to the file, right click on it, select Open
With and choose NotePad.
That's how I did it
Alan_SP
05-26-2012, 05:46 PM
Ok, you need to understand one thing.
You don't see this menu till you link at least one account to account you're using the forum. When you link at least one account, only after that you could see QAS switch.
You link accounts in UserCP. And it depends if you use my modified version, or original authors version if you're in allowed usergroup, or if the mod is just enabled.
xpwmaster
05-26-2012, 07:54 PM
Alan_SP in my user cp i dont see any option to link another acount as well
and i did
$template_hook['navbar_end'] .= $add_string;
with this:
Code:
$template_hook['navbar_after_links'] .= $add_string;
xpwmaster
05-26-2012, 09:04 PM
i got it to work thanks
Matt Slick
06-06-2012, 02:26 PM
I asked for a mod and then found the answer in the thread.
..... thanks
princesspepper
06-19-2012, 10:38 AM
Alan_SP in my user cp i dont see any option to link another acount as well
and i did
$template_hook['navbar_end'] .= $add_string;
with this:
Code:
$template_hook['navbar_after_links'] .= $add_string;
I edited the XML. Overwrote the product. I have several accounts already set up and the plugin enabled. The link is not showing in my navbar. I am using 4.2PL1 and in about 10 mins will be on 4.2PL2.
Thanks in advance for any help :)
EDIT > Scratch that! The silly sausage that I am hadn't enabled the plugin again in admin CP. Doh! Works fine. Thanks :D
cool7575
07-01-2012, 03:09 PM
Hi
First of all this module simple rocks. Thank you so much. One question I have...is it possible to automatically link a big number of users from backend may be by SQL query or something? 100% linking 10 users to each other takes some time for 50 users even more..
thanks in advance for the help
Raj
Alan_SP
07-01-2012, 11:44 PM
Real question is, why would you like to do that?
If you're having many clones, add them one by one.
If you want to use other user's accounts, this mod is actually security risk, as not only you gain access to other's account, but they also gain access to yours (this mod literally links two accounts), so other users could access your account (without need to know your password) and through yours account link to all other accounts you're linked to.
grey_goose
07-27-2012, 05:44 PM
What needs to be done if I want to put the link in a header? Does the header need to cache templates?
Deimos
09-15-2012, 08:14 PM
Hmm, installed the modified xml, with the corrected code posted above, but, I don't get any options to link accounts in the edit profile page?
It is set to allow my group to use it, but I get nothing
I do get the option in the user settings page in the admin panel, but not when viewing usercp/edit profile
Deimos
09-15-2012, 10:04 PM
Ahh ok! My bad, I was looking for it under Edit Profile
Whereas it's in the UserCp.php area.
interfx
09-25-2012, 10:14 PM
Figured it out! Make sure when re-upload the *.xml file you have to re-link your accounts.
Dirks
10-18-2012, 12:38 AM
Hey everyone,
I'm trying to move the location of the QAS link from the navbar to the header. From reading this thread, I assume to do so I have to change the following code in the XML: $template_hook['navbar_after_links'] .= $add_string;The hook I want it to appear under is 'header_userinfo' so I replaced 'navbar_after_links' with 'header_userinfo' so that everything looks like this: $template_hook['header_userinfo'] .= $add_string;However, nothing is working.
I've checked the settings to ensure QAS is enabled, I've checked the plugins to ensure QAS is enabled and I've made sure my account is linked with another, but I still get nothing. Anyone have any suggestions as to what I might be doing wrong?
Alan_SP
03-17-2013, 04:33 PM
In case that you want something like this:
http://img442.imageshack.us/img442/7090/image000wp.png
Advantage is, you can change between users with only one click, just go to user you want to log in and click on it, just like changing navbar tabs (I use its class in this modification).
It works with all vB4 versions (even vB4.2), but you need to make one manual template edit:
Edit navbar template and find there:
<div class="body_wrapper">
Add below:
{vb:raw template_hook.navbar_after_links2}
It adds new hook, that's why it works with all vB4 versions. After that import attached version. You could place it on other places too, but I like it above breadcrumb, as shown on picture above.
Expat
04-20-2013, 04:58 AM
I had this installed and working in 4.2. After upgrading to 4.2.1, the link disappeared from the Navbar. Tried reinstalling, but no luck. I can set up the links in admin with no issues.
If anyone has this running in 4.2.1, please export the xml and post here.
Valter
04-22-2013, 02:13 PM
This is to fix navbar link in vB 4.2.1.
I've changed version info to 2.0.11.
smile2me
04-22-2013, 06:03 PM
really big thanks valter i installed it in vb 4.2.1 and it's just working perfectly thanks again
Expat
04-23-2013, 05:03 AM
Same here. It's working in 4.2.1 just as it did. Much appreciated.
Mysterious Ride
05-05-2013, 02:45 AM
Is it possible to change who has permission to link accounts down to the UserID? Because I allow a select few SuperMods to access the ACP and they can Administer Users, but I don't want them to be able to link accounts.
This Mod is great already, but I think it would be better if you can set who can link accounts, either by specific Usergroups or UserID.
tankkiller
05-12-2013, 03:03 AM
Latest version with the fix posted above, I have what looks like an error with the layout in the code. Can someone help fix this minor appearance issue?
I'm either looking for it on one line or maybe just an abbreviation "QAS" as I only use it for admin and personal account linking.
Thanks.
svyrydov
05-25-2013, 08:59 AM
sine I updated to 4.2.1 menu is disappeared! any suggestions?
I did reinstall xml, still the same.
tankkiller
05-27-2013, 02:26 AM
sine I updated to 4.2.1 menu is disappeared! any suggestions?
I did reinstall xml, still the same.
Did you install this xml?
https://vborg.vbsupport.ru/showpost.php?p=2417868&postcount=102
Alan_SP
05-27-2013, 04:01 PM
You also could use my version, which asks for manual template edits (I use TMS, so this sorts problem for possible later upgrades): https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100
Advantage is, you can place it wherever you like to have users between you can change and they have they own bar.
interfx
05-31-2013, 12:07 AM
You also could use my version, which asks for manual template edits (I use TMS, so this sorts problem for possible later upgrades): https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100
Advantage is, you can place it wherever you like to have users between you can change and they have they own bar.
Does this work for VB5 series?
LLent
05-31-2013, 12:33 PM
my menu in acp has vanished any fix for that everything else is fine just acp is issue
Alan_SP
06-02-2013, 03:59 PM
Try to reinstall it? And what menu in ACP? There are menu in user's option, or this mod's options menu?
otix_
06-06-2013, 04:25 AM
Hello, nice Mod.
I have one problem. Let's say I have three moderators who are able to login as a supermoderator. After installing "Quick Account Switch" and linking the three moderators, they can switch to supermoderator easily, but switching back to their own accounts, in the Quick Account Switch-menue, they can select all other accounts to. Is there a way to just link to the own Account?
Thank you!
Alan_SP
06-06-2013, 08:14 PM
No.
Accounts are linked.
Create three supermoderators accounts, for each moderator one. Or, why don't you give them supermoderators rights in the first place?
COBRAws
06-20-2013, 11:30 PM
I had to disable this mod because it caused conflict with vbadvanced links.
MoveOver.cc
06-27-2013, 07:18 AM
Hi,
As above, Im runing 4.2.1 and vbadvanced and it causes errors.
I can see the "Quick Account Switch" in the sub navbar alongside "Quick Links" but when enabled, it causes most of my links in the main navbar to dissapear and appear under "home" in smaller, blue writing.
Please advise.
interfx
06-27-2013, 10:44 AM
Have same issue also. Any fix would be appreciated
TravisWPaquin
08-09-2013, 10:40 AM
Why is it not showing the Navbar link? I have my accounts linked.
Max Taxable
08-09-2013, 10:52 AM
Why is it not showing the Navbar link? I have my accounts linked.With this Mod no longer being supported by the developer, there have been several changes made by readers here who also share their updates in their posts in this thread. Examples:
https://vborg.vbsupport.ru/showpost.php?p=2331308&postcount=77
https://vborg.vbsupport.ru/showpost.php?p=2417868&postcount=102
One or both of those might be versions and/or modifications that will work with your version of vB.
Also - did you upload the file to the proper place in your server? This is in addition to importing the XML.
TravisWPaquin
08-09-2013, 07:39 PM
With this Mod no longer being supported by the developer, there have been several changes made by readers here who also share their updates in their posts in this thread. Examples:
https://vborg.vbsupport.ru/showpost.php?p=2331308&postcount=77
https://vborg.vbsupport.ru/showpost.php?p=2417868&postcount=102
One or both of those might be versions and/or modifications that will work with your version of vB.
Also - did you upload the file to the proper place in your server? This is in addition to importing the XML.
I'll be sure to check these out. Yes, I uploaded the "upload" folder into the root of my board and the installed the XML. The only thing that was not working was the navbar link as it never showed after the install.
Edit: It worked. Thank you for providing me with the links.
I have updated to 4.2.2 but this script gives me the following error:
Warning: Assigning the return value of new by reference is deprecated in ..../global.php(29) : eval()'d code on line 43
Apparently it has something to do with the new PHP version i already use on my new server (PHP 5.3.27). But i have found the problem and found a solution for it.
- 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:
$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);
and replace it with
$vbulletin->session =new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);
Enable the product again and it's gone.
Rebecca217
10-22-2013, 09:30 PM
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. :)
Kirauni
10-28-2013, 10:14 AM
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 :)
Rckcrwlr
11-19-2013, 02:44 PM
I have uploaded the new version...but still no link on the NavBar...
Am I missing something?
Max Taxable
11-19-2013, 03:28 PM
I have uploaded the new version...but still no link on the NavBar...
Am I missing something?The file upload is key. The ticker clicky should be just to the right of your username in the "Welcome..." bit. This is ONLY IF you have linked any other accounts, to your own.
Rckcrwlr
11-19-2013, 04:55 PM
This is ONLY IF you have linked any other accounts, to your own.
Oops....Got it now. Thanks
interfx
07-18-2014, 11:57 AM
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?
iNate19
11-19-2014, 12:02 AM
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.
Raw Sugar
01-21-2015, 03:08 AM
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! :)
Alan_SP
01-21-2015, 09:38 PM
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 (https://vborg.vbsupport.ru/showpost.php?p=2283871&postcount=71) and here (https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100).
Missing image in second post is because imageshack deleted it. :( I still use this system for quick change of accounts.
Raw Sugar
01-23-2015, 02:09 AM
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 (https://vborg.vbsupport.ru/showpost.php?p=2283871&postcount=71) and here (https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100).
Missing image in second post is because imageshack deleted it. :( I still use this system for quick change of accounts.
Thank you so much for your reply! Quick question - doing these would require that I completely uninstall the product, right? Which would then unlink all of the linked accounts and once re-installed and all that, I would have to go through and re-link them? Or am I making it more complicated than it should be?
Thank you again for your help! :)
concepts
01-23-2015, 01:15 PM
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.
Alan_SP
01-23-2015, 10:32 PM
Quick question - doing these would require that I completely uninstall the product, right? Which would then unlink all of the linked accounts and once re-installed and all that, I would have to go through and re-link them?
Well, you're making it too complicated. :D
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.
Is there is a way to show notifications for those linked accounts in the dropdown?
Not that easily and it would require more work on mod, if it is even possible.
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.
Raw Sugar
01-24-2015, 08:31 PM
Well, you're making it too complicated. :D
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.
I finally got the default navbar template edited to work how I want it to, so now I can keep the QAS in there and not have to worry about editing the plugin. :D
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.
Alan_SP
01-24-2015, 10:22 PM
That's strange. I just checked, I don't have empty href tag. I use version given here (https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100). Interesting is, picture is back again, so you can see how it looks like.
Anyway, maybe you did something wrong?
Raw Sugar
01-24-2015, 10:47 PM
That's strange. I just checked, I don't have empty href tag. I use version given here (https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100). Interesting is, picture is back again, so you can see how it looks like.
Anyway, maybe you did something wrong?
I'm not the one who actually installed the plugin, so I've no idea if the person who did it did anything funky. Since it's technically not my board that I'm helping out with, I'm worried about uninstalling the old one to install a newer version of the plugin. I'm also new to vb4 (the board that I own is still running vb3), and when I click on 'edit' next to the Product, it brings up a page I've never seen before that has uninstall and install codes.
If I wanted to do this one (https://vborg.vbsupport.ru/showpost.php?p=2283871&postcount=71) 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:
$show['qas_switch'] = false;
if ($vbulletin->userinfo['psi_qas'])
{
// process switch
if ($_REQUEST['do'] == 'qas_switch')
{
require_once(DIR . '/includes/functions_login.php');
$switchto = $vbulletin->input->clean_gpc('r', 'userid', TYPE_UINT);
$switchable = explode(' ', $vbulletin->userinfo['psi_qas']);
if (in_array($switchto, $switchable))
{
$getuserdata = $db->query_first("
SELECT userid, username, password, salt, styleid
FROM " . TABLE_PREFIX . "user
WHERE userid = $switchto
LIMIT 1
");
if ($getuserdata)
{
// clean out the session crap...
$db->query_write("
DELETE FROM " . TABLE_PREFIX . "cpsession
WHERE userid IN ({$vbulletin->userinfo['userid']}, {$getuserdata['userid']})
");
$db->query_write("
DELETE FROM " . TABLE_PREFIX . "session
WHERE userid IN ({$vbulletin->userinfo['userid']}, {$getuserdata['userid']})
");
// set cookie...
vbsetcookie('userid', $switchto);
vbsetcookie('password', md5($getuserdata['password'] . COOKIE_SALT));
// unstrike the user...
exec_unstrike_user($getuserdata['username']);
// create new session...
$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);
$vbulletin->session->set('userid', $getuserdata['userid']);
$vbulletin->session->set('loggedin', 1);
$vbulletin->session->set('bypass', 0);
$vbulletin->session->set_session_visibility(($vbulletin->superglobal_size['_COOKIE'] > 0));
if ($_SERVER['HTTP_REFERER'])
{
exec_header_redirect($_SERVER['HTTP_REFERER']);
}
}
}
// if we got up to here, something went wrong... redirect to home
exec_header_redirect($vbulletin->options['bburl']);
}
// fetch data
$getusers = $db->query_read("
SELECT userid, username
FROM " . TABLE_PREFIX . "user
WHERE userid IN (" . $db->escape_string(str_replace(' ', ',', $vbulletin->userinfo['psi_qas'])) . ")
");
// construct switchbit
if ($db->num_rows($getusers))
{
$switchbit = '';
while ($getuserdata = $db->fetch_array($getusers))
{
$templater = vB_Template::create('qas_switchbit');
$templater->register('getuserdata', $getuserdata);
$switchbit .= $templater->render();
$show['qas_switch'] = true;
}
}
// inject into the navbar template
require_once(DIR . '/includes/adminfunctions_template.php');
$add_string = vB_Template::create('qas_navbar_link');
$add_string->register('switchbit', $switchbit);
$add_string = $add_string->render();
//$template_hook['navbar_end'] .= $add_string; Line below is fix for 4.2.0
//$template_hook['navbar_after_links'] .= $add_string; Line below is fix for 4.2.1
$vbphrase['vb_navigation_link_qas_switch_text'] = $add_string;
}
Or should I just replace this with the plugin chunk in your .xml file?
Thank you, Alan for your patience! :)
Alan_SP
01-25-2015, 02:06 AM
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.
Raw Sugar
02-03-2015, 01:25 AM
I had to take a break looking at this... but finally at it again!
Okay, after some testing... this is what I've found...
$show['qas_switch'] = false;
if ($vbulletin->userinfo['psi_qas'])
{
// process switch
if ($_REQUEST['do'] == 'qas_switch')
{
require_once(DIR . '/includes/functions_login.php');
$switchto = $vbulletin->input->clean_gpc('r', 'userid', TYPE_UINT);
$switchable = explode(' ', $vbulletin->userinfo['psi_qas']);
if (in_array($switchto, $switchable))
{
$getuserdata = $db->query_first("
SELECT userid, username, password, salt, styleid
FROM " . TABLE_PREFIX . "user
WHERE userid = $switchto
LIMIT 1
");
if ($getuserdata)
{
// clean out the session crap...
$db->query_write("
DELETE FROM " . TABLE_PREFIX . "cpsession
WHERE userid IN ({$vbulletin->userinfo['userid']}, {$getuserdata['userid']})
");
$db->query_write("
DELETE FROM " . TABLE_PREFIX . "session
WHERE userid IN ({$vbulletin->userinfo['userid']}, {$getuserdata['userid']})
");
// set cookie...
vbsetcookie('userid', $switchto);
vbsetcookie('password', md5($getuserdata['password'] . COOKIE_SALT));
// unstrike the user...
exec_unstrike_user($getuserdata['username']);
// create new session...
$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);
$vbulletin->session->set('userid', $getuserdata['userid']);
$vbulletin->session->set('loggedin', 1);
$vbulletin->session->set('bypass', 0);
$vbulletin->session->set_session_visibility(($vbulletin->superglobal_size['_COOKIE'] > 0));
if ($_SERVER['HTTP_REFERER'])
{
exec_header_redirect($_SERVER['HTTP_REFERER']);
}
}
}
// if we got up to here, something went wrong... redirect to home
exec_header_redirect($vbulletin->options['bburl']);
}
// fetch data
$getusers = $db->query_read("
SELECT userid, username
FROM " . TABLE_PREFIX . "user
WHERE userid IN (" . $db->escape_string(str_replace(' ', ',', $vbulletin->userinfo['psi_qas'])) . ")
");
// construct switchbit
if ($db->num_rows($getusers))
{
$switchbit = '';
while ($getuserdata = $db->fetch_array($getusers))
{
$templater = vB_Template::create('qas_switchbit');
$templater->register('getuserdata', $getuserdata);
$switchbit .= $templater->render();
$show['qas_switch'] = true;
}
}
// inject into the navbar template
require_once(DIR . '/includes/adminfunctions_template.php');
$add_string = vB_Template::create('qas_navbar_link');
$add_string->register('switchbit', $switchbit);
$add_string = $add_string->render();
//$template_hook['navbar_end'] .= $add_string; Line below is fix for 4.2.0
//$template_hook['navbar_after_links'] .= $add_string; Line below is fix for 4.2.1
$vbphrase['vb_navigation_link_qas_switch_text'] = $add_string;
}
I've uncommented the two bottom lines that are commented out, and then commented out the very last line. Went into the Navigation Manager and turned off the #qas_switch# link.
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!
Alan_SP
02-03-2015, 07:04 AM
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.
Raw Sugar
02-03-2015, 02:28 PM
I've just commented out two of the hook locations, and now am using this one, which seems to work and not break anything:
$template_hook['navbar_after_links'] .= $add_string; //Line below is fix for 4.2.1
My biggest question I think is how do I add a hook into the MIDDLE of the navbar? Because in the code it's got:
{vb:raw template_hook.navtab_start}
{vb:raw navigation}
{vb:raw template_hook.navtab_end}
So it's like I can't put anything into the middle of the navbar... I can only add things to the beginning and the end. This is more like a general question, I think.
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.
ozzy47
02-03-2015, 03:25 PM
Add the link manually in the nav manager, no need for a plugin.
Alan_SP
02-04-2015, 10:32 AM
So it's like I can't put anything into the middle of the navbar... I can only add things to the beginning and the end. This is more like a general question, I think.
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.
I'm not sure you can do that. I didn't worked with vB4.2.x, but I think it doesn't work that way.
Add the link manually in the nav manager, no need for a plugin.
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.
ozzy47
02-04-2015, 10:38 AM
Ahhh, yeah so the link is dynamic, well then yeah, the plugin idea is the only way. :(
Rebecca217
04-08-2015, 06:39 PM
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?
Raw Sugar
04-28-2015, 07:23 PM
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?
Site may be going a different route (i.e. starting over on 3.8), so I'm good for now. Thank you! :)
Dirks
08-27-2015, 11:40 AM
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/attachment.php?attachmentid=3205&d=1387559194
Here's the code:
Edit ---> QAS_navbar_link template<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>You can change secondary condition to always show the QAS popup if you want by changing {1} to {vb:rawphrase qas_qas}, though the link will do nothing.
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.
xyzmaria2001
04-29-2017, 11:52 AM
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
Manipulation
02-05-2018, 02:48 AM
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"
Stratis
02-05-2018, 04:14 AM
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"
I do not use this, but
Open xml file product-psi_qas with editor and in about line 161,
find
$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);and change with
$vbulletin->session =new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);save and than install.
Actually this is the change we make, as my specialist friend @MarkFL said to other deprecated codes "change "=&" to this "="
Manipulation
02-05-2018, 06:13 PM
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?
Manipulation
02-08-2018, 05:43 AM
Hate to double post, but does anyone have a solution for this? Thanks!
Manipulation
02-23-2018, 06:25 PM
Once again I apologize for posting in this. Can anyone help me get this modification functioning? Thanks! Could really use this plug-in.
Max Taxable
02-23-2018, 06:37 PM
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?You link accounts from the profile pages, in ACP. New fields for this added there, by this Mod I believe. The button only shows when you are logged into a account that is linked to other accounts.
Manipulation
02-23-2018, 09:53 PM
You link accounts from the profile pages, in ACP. New fields for this added there, by this Mod I believe. The button only shows when you are logged into a account that is linked to other accounts.
That's what I mean though. I have an account linked with my admin account and there is no quick account switch option at all. It just tells me that my account is linked with another in the settings. That's it.
View this to see what I mean. (https://i.imgur.com/0FtV5rQ.png)
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"
Max Taxable
02-24-2018, 01:15 AM
No idear. It's always worked fine on every vB I've ever adminned that had this installed.
Manipulation
02-24-2018, 04:20 AM
is it compatible with the newest version of VB 4?
Max Taxable
02-24-2018, 03:01 PM
is it compatible with the newest version of VB 4?No idear.
Manipulation
02-24-2018, 11:15 PM
Anyone else?
Could someone bring this to vB5?
Alan_SP
06-26-2020, 09:48 PM
You mean, something like this (https://vborg.vbsupport.ru/showpost.php?p=2410588&postcount=100)?
concepts
12-12-2020, 06:41 PM
This is to fix navbar link in vB 4.2.1.
I've changed version info to 2.0.11.
Just installed your version, but I get the following error, which stops me from accessing my site and admincp
It adds the link to the navbar, and allows me to create links, however once I go to click on an account to switch, I get the below error.
[] operator not supported for strings on line 53 in /home/fin5nlwhlxs5/public_html/includes/class_bootstrap.php(433) : eval()'d code
#0 /home/fin5nlwhlxs5/public_html/includes/class_bootstrap.php(433): eval()
#1 /home/fin5nlwhlxs5/public_html/includes/class_core.php(4391): vB_Bootstrap->process_templates()
#2 /home/fin5nlwhlxs5/public_html/includes/class_core.php(4349): vB_Template->__construct('qas_switchbit')
#3 /home/fin5nlwhlxs5/public_html/global.php(29) : eval()'d code(73): vB_Template::create('qas_switchbit')
#4 /home/fin5nlwhlxs5/public_html/global.php(29): eval()
#5 /home/fin5nlwhlxs5/public_html/forum.php(67): require_once('/home/fin5nlwhl...')
#6 {main}
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.