PDA

View Full Version : Profile Enhancements - Quick Account Switch


akanevsky
07-02-2009, 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 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 (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=217771)

saadessa
07-03-2009, 04:55 PM
thank yo for this nice hack

i will try it

COBRAws
07-03-2009, 11:20 PM
I've been using this for a while. Thanks for the upgrade Anton.

sensimilla
07-04-2009, 08:24 AM
I loved his modification, thanks for the update.

Hornstar
07-04-2009, 11:05 PM
I suppose if you were to start a new site and want to post as different people to pretend there was some activity going on this might be good lol (split personality ^^ )

akanevsky
07-05-2009, 12:39 AM
I suppose if you were to start a new site and want to post as different people to pretend there was some activity going on this might be good lol (split personality ^^ )

Or if you were to start a board for schizophrenics and people with other personality disorders. :D

Kayvin
07-09-2009, 11:22 PM
This was one of the two mods you made Psionic Vision that were why I am still using 3.6.x.

I'll be upgrading this weekend, you're awesome.

Big-Pete
07-11-2009, 07:33 PM
I've just installed this, i've set up an additional Admin-Team account in the user profile section and linked it to my account but its not showing up anywhere, if i goto Usercp and edit details there is nothing showing there, or in the navbar, Ive got it set so that only admins can see and use this, does tha mean that it wont show on the navbar?? if so how do i switch accounts?

Also is it possible for my mods to use this aswell as there is a general Mods account that all the mods have access to so they can remain anonymous :D

akanevsky
07-11-2009, 09:17 PM
I've just installed this, i've set up an additional Admin-Team account in the user profile section and linked it to my account but its not showing up anywhere, if i goto Usercp and edit details there is nothing showing there, or in the navbar, Ive got it set so that only admins can see and use this, does tha mean that it wont show on the navbar?? if so how do i switch accounts?

Also is it possible for my mods to use this aswell as there is a general Mods account that all the mods have access to so they can remain anonymous :D

The option is for linking and unlinking accounts. The links that are set up (no matter if through admincp or front-end) are usable by the linked users regardless of permissions.

Big-Pete
07-12-2009, 10:06 AM
The option is for linking and unlinking accounts. The links that are set up (no matter if through admincp or front-end) are usable by the linked users regardless of permissions.

Thanks for replying so quickly Psion, what i need to know is where are you supposed to be able to switch the accounts over? i've installed as instructed but i've still nothing showing in the navbar or in usercp>edit details as you have in the attached pics, i've no way of changing from username1 to username2 even though i've linked the accounts?


Pete

Kayvin
07-12-2009, 12:19 PM
Up where it displays your username on the navbar, generally, it adds a drop down menu directly following your username.

Big-Pete
07-12-2009, 12:35 PM
Cheers kayvin, thats the same area as it shows in the pics, which is where i was expecting to find the dropdown menu, but for some reason its not happening on my site, I will have to look into it a bit more, its not showing in the usercp either :confused:

Would it be possible to add the dropdown link manually to my navbar?

Kayvin
07-13-2009, 06:21 AM
Is this a custom template, and if so, have you checked to see if it displays properly using the default vBulletin template, and see if it appears, because QAS shouldn't have had any trouble plugging into that one at the very least.

Oh, and Psionic, not sure if this is fixable or not, but if I'm logged in as an admin when the site's disabled (cuz I was doing upgrades), and I wanted to test the QAS after I added it. I tried switching to a non-admin account, and that worked fine. But when I was on my non-admin account, seeing the board is closed notice, it would still let me open the Account Switch dropdown, but my linked account wasn't displayed, so to get back in, I had to log out and log back into my admin account.

Not sure if that's because of what vB disables when the site's locked down, but I'm wondering if that can be adjusted at all.

Ollie8557
07-25-2009, 01:16 PM
I have been unable to unarchive the files. I am on a mac, and have had no problems with unarchiving files of this format before.

Ive done a bit of digging, and it appears that the error is caused by all the dots in the file name. Could you provide a simple file name version for me please?

akanevsky
07-25-2009, 02:31 PM
Could you please just rename the file yourself?

BigDog56
07-25-2009, 08:05 PM
Where in the admin cp can you link? Nevermind, I figured it out, lol

BigDog56
07-25-2009, 08:24 PM
Works great, once I figured it out, lol. Thank you! This is handy for my wife and I.

Julie
07-26-2009, 05:41 PM
Works like a charm right out of the box! :D Awesome mod, thanks!

Serenity278
08-02-2009, 08:27 AM
I installed a new style and the dropdown next to the name isnt showing. It shows up fine in the other styles I use but just not this one. Is there a way I can get it to show in this new style? http://www.christianfellowship-net.com/index.php?styleid=22

Thanks!

SorentoUltimate
08-03-2009, 12:10 AM
Perfect !!!!!!!!!!!!
Thanks !!!!!!!!!

Joseph Witchard
08-12-2009, 02:25 PM
Is it safe on this mod to upgrade to vBulletin 3.8.4?

akanevsky
08-15-2009, 01:06 PM
Yes, this mod should be safe for use on 3.8.4.

Alisa Lindsay
08-15-2009, 04:29 PM
I have the old version on 3.8.3 and we love it. I have not been able to upgrade as I can't seem to unzip the file. I keep getting a header error.

Updated: My bad! I took a chance and downloaded the file again and voila! The newest version of Stuffit Expander opened it. I am trying to decide now if I am brave enough to try upgrading to this version.

Thanks for the great code!

akanevsky
08-15-2009, 06:14 PM
I have the old version on 3.8.3 and we love it. I have not been able to upgrade as I can't seem to unzip the file. I keep getting a header error.

Updated: My bad! I took a chance and downloaded the file again and voila! The newest version of Stuffit Expander opened it. I am trying to decide now if I am brave enough to try upgrading to this version.

Thanks for the great code!

You are brave enough because this version is easier to install that the old one, and it has less bugs. :)

Alisa Lindsay
08-15-2009, 10:26 PM
Psionic Vision,

You have great faith in me! However, I am the vBulletin Village Idiot. LOL.

I guess I'm mainly afraid I'll break something else by installing the new code and every single time I have to upload something to Host Monster...it's a trauma. For me AND Host Monster.

But it is a great code and saved us as we do a Stargate RPG and each play several characters so I and my Writers/Players thank you very much. Installation and Donation forthcoming as soon as I get the nerve to try installing it.

Regards,

Alisa

Wonksta
08-16-2009, 02:15 AM
Possible to mask IP so it doesn't show the same IP?

Merjawy
08-16-2009, 03:09 AM
installed and linked but the drop down won't show on my style.. does show on default style though.. I looked into navbar template and saw nothing different

akanevsky
08-18-2009, 12:25 PM
Possible to mask IP so it doesn't show the same IP?

Show the same IP where?

installed and linked but the drop down won't show on my style.. does show on default style though.. I looked into navbar template and saw nothing different

That means your navbar template is severely different from the original. You might have to do the navbar modification by hand. If you want, post your template here as a text file.

Merjawy
08-20-2009, 10:28 AM
Thanks Psionic, I will do that soon if I can't figure it out :)

Merjawy
08-21-2009, 06:36 AM
I did figure it out.. I used [musername] instead of [username] to show the color.. I took the "m" out and all works now.

can it be allowed to mods/smods without the rest? I mean give them the option rather than doing it via admincp


Thanks

EDIT:Wow ... I added a link to another admin and I was able to switch to his account without asking me for his password.. I don't even know his password !!!

Thats rather not good :)


EDIT: I noticed theres no drop down in vBPortal .. also, there is a drop down in vBAdvanced but it lists no linked users

numsi
08-21-2009, 01:12 PM
I did figure it out.. I used [musername] instead of [username] to show the color.. I took the "m" out and all works now.

Hello Merjawy

I think we have the same mod installed: Username HTML Markup in Navbar (https://vborg.vbsupport.ru/showthread.php?t=202552).

I have made the changes in the QAS: Handle Switch global_start and everything works fine...all so with the colored Usernames in the Navbar.

Go to -> Admin CP -> Plugins & Product -> Plugin Manager and find the: QAS: Handle Switch global_start

Open it for edit.

Find:

$find_string_v1 = compile_template('<strong><phrase 1="$bbuserinfo[username]">$vbphrase[welcome_x]</phrase></strong>');
$find_string_v2 = compile_template('<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>');


and change it to:

$find_string_v1 = compile_template('<strong><phrase 1="$bbuserinfo[musername]">$vbphrase[welcome_x]</phrase></strong>');
$find_string_v2 = compile_template('<strong><phrase 1="$bbuserinfo[musername]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong>');


Add only the m in red and everything work.

Hope that help
Cheers numsi

Merjawy
08-22-2009, 12:44 AM
Thanks numsi,....

no I am not really using a mod for that.. I just went in and edited navra myself :) I didn't know there was a mod already...

I did look into one of qas templates but got kinda late and went to sleep..

thanks for the help I will do that so I can get name colors back in navbar..


cheers


EDIT: works great.. thanks

Joseph Witchard
09-01-2009, 07:17 PM
Can you interlink accounts? Like, if I have Account A linked to Account B and Account C, when I switch to either one of them, they only link back to Account A. Could I go into Account B and Account C, link them together, and be able to switch to any account from any account I'm currently logged in as?

aymelek
09-01-2009, 09:05 PM
How can I prevent users from linking their own accounts? I just want this ability in the Admin CP.

Wheezy
09-02-2009, 08:24 PM
Very convenient; thanks!

/me clicks install.

akanevsky
09-05-2009, 12:06 AM
How can I prevent users from linking their own accounts? I just want this ability in the Admin CP.

Use vBulletin Options -> Quick Account Switch Options

Cause4Chaos
09-05-2009, 11:07 AM
is there a way for moderators to use this as well as the admins and no body else

mattwmc2001
09-05-2009, 05:32 PM
Time required to install: ~30 seconds

product-psi_qas

Where does this go?

*Nevermind, found where, lol: Manage Products-Import Product

Now where do I link the accounts, lol?

Log on
09-06-2009, 09:27 AM
Very nice

but when I disabled the users to link the accounts... how I can link the accounts from the cPanel as administrator ?

thank u

kourou
09-08-2009, 04:11 PM
Hello,

I installed the plugin in my forum and I have the following question:
I have a common Moderator account and linked all users that are moderators to that account. The problem is that when switched to that Moderator account, the can switch back to any other account linked to Moderator account. So what I would like to know is if there is any way to do "one-way" linking or something like that.

For example:
A is linked to C
B is linked to C
When A switches to C, it can switch back to B, which is not exactly what I'm looking for.

Thanks in advance for any answer,
Ilias

Kayvin
09-13-2009, 10:25 PM
Based on how this mod is designed, that wouldn't be a quick change. It'd have to be fundamentally different.

KURTZ
09-17-2009, 09:53 AM
hi Anton, i've a trouble with PM's hack: https://vborg.vbsupport.ru/showthread.php?p=1885647#post1885647


check the pick:

https://vborg.vbsupport.ru/ (http://img10.imageshack.us/img10/860/pick01sep161222.gif)

can you fix this trouble?

wolfyman
10-10-2009, 01:01 PM
This doesn't seem to work with this style: https://vborg.vbsupport.ru/showthread.php?t=215519

I see the edits in the templates, but there is no dropdown to switch accounts when viewing the forum.

Joseph Witchard
10-17-2009, 04:44 AM
Will this Mod be updated for vBulletin 4?

lostgirl815
10-17-2009, 09:08 AM
This doesn't seem to work with this style: https://vborg.vbsupport.ru/showthread.php?t=215519

I see the edits in the templates, but there is no dropdown to switch accounts when viewing the forum.

Because I made this mistake once, I'll go ahead and mention ... make sure you've linked your ID to another one, because it's not going to show the dropdown list if you only have the one ID.

wolfyman
10-19-2009, 05:14 PM
Because I made this mistake once, I'll go ahead and mention ... make sure you've linked your ID to another one, because it's not going to show the dropdown list if you only have the one ID.

Nah, that's not it. It's the style I'm using.

Here is the navbar:

<br />

<!-- breadcrumb, login, pm info -->
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%">
<if condition="is_array($navbits)">
<table cellpadding="0" cellspacing="0" border="0">
<tr valign="bottom">
<td><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
<td>&nbsp;</td>
<td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb]</td>
</tr>
<tr>
<td class="navbar" style="font-size:10pt; padding-top:1px" colspan="3"><if condition="$_SERVER['REQUEST_METHOD'] == 'POST'"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="" border="0" /><else /><a href="$navbar_reloadurl"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_finallink_$stylevar[textdirection].gif" alt="$vbphrase[reload_this_page]" border="0" /></a></if> <strong>$navbits[lastelement]</strong></td>
</tr>
</table>
<else />
<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
</if>
</td>

</tr>
</table><div class="dcc"><div class="dcg"></div><div class="dcd"></div></div>

<!-- / breadcrumb, login, pm info -->


<br />

<if condition="$show['notices']">
<form action="profile.php?do=dismissnotice" method="post" id="notices">
<input type="hidden" name="do" value="dismissnotice" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" id="dismiss_notice_hidden" name="dismiss_noticeid" value="" />
<input type="hidden" name="url" value="$return_link" />
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="thead">$vbphrase[notices]</td>
</tr>
<tr>
<td class="alt1">
$notices
</td>
</tr>
</table>
<br />
</form>
</if>

<if condition="$show['forumdesc']">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="alt1" width="100%"><strong>$foruminfo[title]</strong> <span class="smallfont">$foruminfo[description]</span></td>
</tr>
</table>
<br />
</if>

<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<if condition="$show['communitylink']">
<!-- community link menu -->
<div class="vbmenu_popup" id="community_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[community_links]</td></tr>
$template_hook[navbar_community_menu_start]
<if condition="$show['quick_links_groups']">
<tr><td class="vbmenu_option"><a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
</if>
<if condition="$show['quick_links_albums']">
<tr><td class="vbmenu_option"><a href="album.php$session[sessionurl_q]">$vbphrase[pictures_and_albums]</a></td></tr>
</if>
<if condition="$bbuserinfo['userid']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>
</if>
<if condition="$show['memberslist']">
<tr><td class="vbmenu_option"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td></tr>
</if>
$template_hook[navbar_community_menu_end]
</table>
</div>
<!-- / community link menu -->
</if>

<if condition="$show['searchbuttons']">
<!-- header quick search form -->
<div class="vbmenu_popup" id="navbar_search_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_forums]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="search.php?do=process" method="post">

<input type="hidden" name="do" value="process" />
<input type="hidden" name="quicksearch" value="1" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="exactname" value="1" />
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
<div style="margin-top:$stylevar[cellpadding]px">
<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
&nbsp;
<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
</div>
</form>
</td>
</tr>
<if condition="$vboptions[threadtagging]">
<tr>
<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>
$template_hook[navbar_search_menu]
</table>
</div>
<!-- / header quick search form -->
</if>

<if condition="$show['member']">
<!-- user cp tools menu -->
<div class="vbmenu_popup" id="usercptools_menu" style="display:none;margin-top:3px" align="$stylevar[left]">
<table cellpadding="4" cellspacing="1" border="0">

<tr><td class="thead">$vbphrase[quick_links]</td></tr>
<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos1]
$template_hook[navbar_quick_links_menu_pos2]

<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_control_panel]</a></td></tr>
<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
<!--<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>-->
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_your_details]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
$template_hook[navbar_quick_links_menu_pos3]

<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
$template_hook[navbar_quick_links_menu_pos4]

</table>
</div>
<!-- / user cp tools menu -->

</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->
<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
</form>
</td>
</tr>
</table>
</div>
<!-- / PAGENAV POPUP -->
</if>

<if condition="$show['member'] AND $notifications_total">
<!-- notifications menu -->
<div class="vbmenu_popup" id="notifications_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
$notifications_menubits
</table>
</div>
<!-- / notifications menu -->
</if>

$ad_location[ad_navbar_below]


And here is the header



<!-- logo -->
<a name="top"></a>
<table border="0" height="123px" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td><img src="images/impact/gradients/left_head.png" border="0" alt="$vboptions[bbtitle]" /></td><td class="head_top" width="100%" align="$stylevar[left]"><a href="$vboptions[bburl]/$vboptions[forumhome].php$session[sessionurl_q]"><img src="$stylevar[titleimage]" border="0" alt="$vboptions[bbtitle]" /></a></td>







<if condition="$show['member']">
<td class="head_top" nowrap="nowrap">
<div class="smallfont" style="background-image: url(images/impact/gradients/pm_back.gif); border: 1px solid #FFFFFF; padding: 15px 15px 15px 15px;">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>

<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>

<if condition="$show['pmwarning']"><div><strong><phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></strong></div></if>
</div>
</td>
<else />
<td class="head_top" nowrap="nowrap" style="padding:0px">
<div class="smallfont" style="background-image: url(images/impact/gradients/pm_back.gif); border: 1px solid #FFFFFF; padding: 15px 15px 15px 15px;">
<!-- login form -->
<form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td class="smallfont" style="white-space: nowrap;"><label for="navbar_username">$vbphrase[username]</label></td>
<td><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
<td class="smallfont" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
</tr>
<tr>
<td class="smallfont"><label for="navbar_password">$vbphrase[password]</label></td>
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
<td><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
</tr>
</table>
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="login" />
<input type="hidden" name="vb_login_md5password" />
<input type="hidden" name="vb_login_md5password_utf" />
</form>
<!-- / login form -->
</div>
</td>
</if>



<td class="head_top" align="$stylevar[right]" id="header_right_cell">
<if condition="$ad_location['ad_header_logo']">$ad_location[ad_header_logo]<else />&nbsp;</if>
</td><td><img src="images/impact/gradients/right_head.png" border="0" alt="$vboptions[bbtitle]" /></td>


</tr>
</table>
<!-- /logo -->

<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center">
<tr>
<td>

<!-- nav buttons bar -->
<div style="padding:$stylevar[cellspacing]px; border-left: 3px solid #FFFFFF; border-right: 3px solid #FFFFFF;">
<table cellpadding="0" height="30px" cellspacing="0" border="0" width="100%" align="center">
<tr align="center">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
</if>

<if condition="$show['registerbutton']">
<td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
</if>
$template_hook[navbar_buttons_left]
<td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<if condition="$show['communitylink'] AND $show['popups']">
<td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
<else />
<if condition="$show['memberslist']">
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
</if>
<if condition="$show['quick_links_groups']">
<td class="vbmenu_control"><a href="group.php?$session[sessionurl]">$vbphrase[social_groups]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
<if condition="$show['popups']">
<if condition="$show['searchbuttons']">
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
<td class="vbmenu_control"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search, true"); </script></if></td>
</if>
<if condition="$show['member']">
<td class="vbmenu_control"><a id="usercptools" href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>
</if>
<else />
<if condition="$show['searchbuttons']">
<td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
<else />
<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
</if>
</if>
<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
<if condition="$show['member']">
<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w idth=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>
</if>
</if>
$template_hook[navbar_buttons_right]
<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
</if>
</tr>
</table>
</div><div class="dcc"><div class="dcg"></div><div class="dcd"></div></div>

<!-- / nav buttons bar --></td>
</tr></table>



<!-- content table -->
$spacer_open

$_phpinclude_output

$ad_location[ad_header_end]

wolfyman
10-19-2009, 05:16 PM
That means your navbar template is severely different from the original. You might have to do the navbar modification by hand. If you want, post your template here as a text file.

Please see previous post. Thanks, love this hack!

ahmedipa
11-08-2009, 07:54 AM
very very goood thank you so much

wolfyman
11-08-2009, 11:55 AM
I don't understand how the header and navbar information is supposed to work, can someone please help me fix this?

There is no dropdown arrow in my header with the style I am using. See this post please:

https://vborg.vbsupport.ru/showpost.php?p=1902210&postcount=47

Heck with it - $10 paypal to anyone willing to take a minute to help me here.

wolfyman
11-21-2009, 08:03 PM
Nobody will look at my problem for $10? I can't believe there are so many rich people on here!

lostgirl815
11-23-2009, 06:32 AM
Nobody will look at my problem for $10? I can't believe there are so many rich people on here!

If you want to let me into your admin panel I'll try to fix it. No charge.

wolfyman
11-23-2009, 10:16 AM
If you want to let me into your admin panel I'll try to fix it. No charge.

I appreciate your offer... let me set up a test board and I'll send you admin access.

Thanks!

lostgirl815
11-23-2009, 10:22 AM
Sure thing! I only really need access to the styles, if that helps. (So that I can create a child style of the one you're having trouble with and see what I can do.) And for your part, create two usernames for me and link them.

I should add, I'm not a coding person - but I managed to install that one on my own board so I'll do my best to get it working on yours.

(Feel free to PM me.)

Ruedy2009
12-08-2009, 12:27 AM
Will this Mod be updated for vBulletin 4?

I would also be interested in.

WebGuy75903
12-10-2009, 06:30 PM
I'm relatively new to VBulletin, so I apologize if my question seems rather amateurish.

I installed this code (thanks, by the way), and everything works great. However, after I installed this, I upgraded my forum software to use vBAdvanced, and from the cmps_index page, I see the drop-down arrow, but when I click it, there are no accounts showing up. This only happens on the cmps_index page, and no other pages.

It might also be worth mentioning that my directory structure is such that the cmps_index page resides in the root directory, while the rest of the forum resides in a sub-directory. My other add-ons seem to have made the transition just fine, except for this one.

It's not a huge deal, but it would be nice if there were a simple fix to this. Any thoughts or ideas? Thanks in advance...

Web

YvaN
01-11-2010, 07:24 PM
Is it compatible with vB 4.0?

Thx... :)

EDIT : No... :D

I have this error on the bottom of my board (vB 4.0) :

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3895

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3895

Warning: fetch_template() calls should be replaced by the vB_Template class in [path]\includes\functions.php on line 3895

Warning: Cannot modify header information - headers already sent by (output started at [path]\includes\class_core.php:4372) in [path]\gcbos.php on line 144
I have the GCBOS shoutbox installed... :)

Someone have any idea or any solution? (or an other hack to do this on vB 4.0?)

Thx... ;)

Veer
01-23-2010, 02:49 PM
vb4 version please.

YvaN
01-30-2010, 06:26 PM
vb4 version please.
Agree, upgrade this mod please... :(

Joseph Witchard
02-27-2010, 06:42 PM
Okay, I have a problem. Last night I went into the Admin Area and tried to unlink a user's account. When I clicked the unlink button, it took me to my not found page. Why would it do that?

xoxstugotsxox
02-28-2010, 11:22 AM
Okay, I have a problem. Last night I went into the Admin Area and tried to unlink a user's account. When I clicked the unlink button, it took me to my not found page. Why would it do that?

Same here!

akanevsky
02-28-2010, 12:02 PM
Okay, I have a problem. Last night I went into the Admin Area and tried to unlink a user's account. When I clicked the unlink button, it took me to my not found page. Why would it do that?

Maybe you have not uploaded all of the files for this hack?

xoxstugotsxox
02-28-2010, 02:12 PM
Maybe you have not uploaded all of the files for this hack?

It was just the one file "QAS" to be put in our AdminCP folder...Correct?

akanevsky
02-28-2010, 03:47 PM
It was just the one file "QAS" to be put in our AdminCP folder...Correct?

Yes, just that one file.

xoxstugotsxox
02-28-2010, 05:05 PM
Yes, just that one file.

Yeah, Its in there and Im still getting the error! I sent you a PM with some pics!

xoxstugotsxox
03-02-2010, 01:37 AM
Yeah, Its in there and Im still getting the error! I sent you a PM with some pics!

Any idea?

Joseph Witchard
03-06-2010, 03:05 AM
Very odd... That was it. I don't understand how I didn't upload that file. Thanks:) Is there an admincp directory in any other part of the vBulletin directory? I could have sworn I uploaded everything needed.

Joseph Witchard
03-14-2010, 05:53 PM
Will this mod work on VB 3.8.5?

I wasn't sure if it was acceptable to double-post or not in this case, since my last reply is so old and I'm pretty sure the thread doesn't show as updated if you just edit your post. I apologize if it's not acceptable and I won't do it again if I am so told.

Iguana Goddess
04-12-2010, 05:16 PM
This works great.

Jonston
07-20-2010, 08:29 AM
is it possible to customise what account you can switch back to

heres my scenario
on our board we have 3 modbot accounts(so we can moderate and not be targeted by users)
i have linked each of my mod team to the modbot accounts and it works like a charm

my prob is that when we go to switch back from modbot to personal account we have the option of switching to anyone in the mod team

is there anyway too only make it switch back to original account?

Wonksta
07-30-2010, 12:19 AM
This is conflicting with my Unread PM's and other Notifications in the same area. Is there anyway to move the account switch drop down menu so it does not interfere anymore?

BirdOPrey5
10-23-2010, 04:29 PM
Great mod, thanks!

Max Taxable
02-11-2011, 01:59 AM
Installed it. Love it.

Thanks!

furkaned
08-30-2011, 09:27 AM
yeah! thanx Lhan :)

Kolektor
09-01-2011, 09:50 AM
thanks you so much...

Max Taxable
10-21-2011, 08:45 PM
Side Note: This Mod is a huge security risk - make ONLY super admin account able to set linked accounts or you are exposing ALL admin accounts to being linked by other admins or whoever else you permission to set links.

To secure this:

Edit the first line of the QAS: Admin Controls plugin

Change the first line to:if ($user['userid'] AND in_array($vbulletin->userinfo['userid'],explode(",",$vbulletin->config['SpecialUsers']['superadministrators'])))

Than make sure you have only ONE account identified in config.php as a super administrator.