vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create a New Tab in the navbar (https://vborg.vbsupport.ru/showthread.php?t=226914)

Lynne 03-13-2013 02:13 AM

Quote:

Originally Posted by Omegatron (Post 2409623)
Quick question. I know the userinfo and options variables are present and usuable in the link portion of the navigation manager and can define other variables there.

Is there a way define a dynamic variable that can be used in the title portion of the vb navigation manager.

I am assuming I will have to ditch the straight xml navigation links I do now and use this method of it being in a plugin.

I would guess you could? It's hard to get more specific when I don't have a more concrete example of what you want to do.

Omegatron 03-13-2013 01:16 PM

what I meant by design was say I want to have a dynamic link title. Right now I use straight navigation links in an xml file. I can define options through plugins to plug into urls for the navigation.

What I am needing is a dynamic title.

Say for instance take the PM indicator no messages 1 message 2 messages. I am looking to do a title like that on a submenu item.

It is no big deal.

Based on what I know I am going to have to ditch the straight way of doing links and do more like this thread plugin way that way I have total control over the variables and can define a variable title on a sublink title. ;)

I do have one question though on your way of doing things. How to you set show permissions doing a navbar your way.

Lynne 03-13-2013 06:14 PM

Quote:

Originally Posted by Omegatron (Post 2409722)
Based on what I know I am going to have to ditch the straight way of doing links and do more like this thread plugin way that way I have total control over the variables and can define a variable title on a sublink title. ;)

I do have one question though on your way of doing things. How to you set show permissions doing a navbar your way.

If you want a dynamic title, then yes, you will need to use a plugin.

As for $show permissions, just do a search on this thread because that has been covered a few times.

sbfi 06-25-2013 11:59 AM

Can I create a Quick Link to go to a specified custom usergroup? v 4.1.3

Lynne 06-25-2013 03:31 PM

How do you create a link to a usergroup? I don't understand exactly what you want at all. If you are talking about a link showing for only a certain usergroup, then that has been covered many times in this thread.

seventhaxis 01-24-2014 12:25 AM

See posts below.

ozzy47 01-24-2014 12:27 AM

What version of vB are you running?

seventhaxis 01-24-2014 01:52 AM

Ah sorry, 4.1.10

seventhaxis 01-25-2014 01:14 PM

In order to make more than one tab, I'm assuming I have to make separate plugins. If so, how do I go about ordering them if they're all placed at the end? Is it just automatically ordered alphabetically according to the slot they're placed in (i.e. _start, _middle, _end)?

Also, how do I define the subnav I want showing when I navigate to a separate page? For example, I have created the 'Members' tab and one of the subnav items is 'Competitive Rosters - Dota 2' -- if I click that page, the subnav links change to show the Forum subnav (e.g. New Posts, Calendar, Community, Private Messages). See www.parallaxgaming.com.

Running 4.1.10 -- not looking to update to newer version.

Lynne 01-25-2014 07:02 PM

You can add all the tabs to the same plugin and put them in the order you want.

As for making them highlight when you click on them, that is done in the plugin (the $tabselected part - unless you have modified the CSS on your site, then it may not work).


All times are GMT. The time now is 10:31 PM.

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.04527 seconds
  • Memory Usage 1,734KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (2)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