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)

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

Quote:

Originally Posted by Raw Sugar (Post 2535918)
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.

Quote:

Originally Posted by ozzy47 (Post 2535922)
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

Quote:

Originally Posted by Rebecca217 (Post 2542639)
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/attach...5&d=1387559194

Here's the code:

Edit ---> QAS_navbar_link template
Code:

<vb:if condition="$show['qas_switch']">
<li class="popupmenu"><a class="navtab popupctrl" href="javascript://">{vb:rawphrase qas_qas}</a>
<ul class="popupbody popuphover">{vb:raw switchbit}</ul>
</li>
<vb:else />
{1}
</vb:if>

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

Quote:

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

$vbulletin->session =& new vB_Session($vbulletin, '', $getuserdata['userid'], '', $getuserdata['styleid']);
and change with
Code:

$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?


All times are GMT. The time now is 09:26 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.01291 seconds
  • Memory Usage 1,750KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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