vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Profile Enhancements - Quick Account Switch (https://vborg.vbsupport.ru/showthread.php?t=237286)

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

Quote:

Originally Posted by xpwmaster (Post 2333236)
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:
Code:

$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:
Code:

$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

1 Attachment(s)
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:

HTML Code:

<div class="body_wrapper">
Add below:

HTML Code:

{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.


All times are GMT. The time now is 07:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01494 seconds
  • Memory Usage 1,741KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete