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)

cjwinternet 07-06-2012 08:37 PM

Look at this mess, just to add a bit of navigation.

Lynne 07-06-2012 08:54 PM

Quote:

Originally Posted by cjwinternet (Post 2345616)
Look at this mess, just to add a bit of navigation.

Actually, all of this is unnecessary in vB4.2 (as I state in the first post) because there is now the Navigation Manager.

firebrand media 01-18-2013 08:14 PM

I'm using the plugin method to add tabs to specific forums. I would like to apply the SELECTED class when displaying that class, but I'm not sure what criteria to use. Isn't THIS_SCRIPT always going to forum for those pages?
We're sticking with 4.1 since we've got a lot of modifications to the navigation and we will have to rebuild for 4.2.
With any luck, we can skip 4.2 and go straight to 5 when it's stable. :)

Lynne 01-18-2013 10:12 PM

Quote:

Originally Posted by firebrand media (Post 2397772)
I'm using the plugin method to add tabs to specific forums. I would like to apply the SELECTED class when displaying that class, but I'm not sure what criteria to use. Isn't THIS_SCRIPT always going to forum for those pages?
)

For forums, you can probably use $GLOBALS['forumid'] in the condition.

layyous 02-02-2013 01:59 PM

is there a way to create a tab (that stays in the same forum) just so that it can be used for navigation purposes to links, the reason for this is because i have static pages on the same domain and i don't want to add all the links to them under the forum tab,( by creating a sub menu) instead i want the tabs to act like sub menu's

to elaborate more, i tried creating a tab, (lets call it my links). and in this tab i want a sub menu with links to pointed pages lets say a link is pointing to mydomain.com/mypage.htm

the problem i have here is when i create a tab and have it pointing to (nothing) and click on it the page gets redirected to forum tab again... i dont want this to happen i want the tab to act like a navagation menu while at the same time staying in the forum... and all the sub menus and links show up under this tab

cellarius 02-02-2013 02:37 PM

This article is about PROFILE tabs, not navigation tabs.

Lynne 02-02-2013 03:57 PM

Quote:

Originally Posted by layyous (Post 2401311)
is there a way to create a tab (that stays in the same forum) just so that it can be used for navigation purposes to links, the reason for this is because i have static pages on the same domain and i don't want to add all the links to them under the forum tab,( by creating a sub menu) instead i want the tabs to act like sub menu's

to elaborate more, i tried creating a tab, (lets call it my links). and in this tab i want a sub menu with links to pointed pages lets say a link is pointing to mydomain.com/mypage.htm

the problem i have here is when i create a tab and have it pointing to (nothing) and click on it the page gets redirected to forum tab again... i dont want this to happen i want the tab to act like a navagation menu while at the same time staying in the forum... and all the sub menus and links show up under this tab

I'm sure there is a way to do what you want, but this is not an article about doing it that way. You would need to play with the plugin code and modify it to get what you want.

cellarius 02-03-2013 08:03 AM

Quote:

Originally Posted by cellarius (Post 2401320)
This article is about PROFILE tabs, not navigation tabs.

OK, now I'm the idiot :) Why exactly was I absolutely sure I was in my profile tab article? :D

Sorry ;)

layyous 02-03-2013 10:35 AM

Quote:

Originally Posted by Lynne (Post 2401349)
I'm sure there is a way to do what you want, but this is not an article about doing it that way. You would need to play with the plugin code and modify it to get what you want.

Thank you

Omegatron 03-13-2013 01:09 AM

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.

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

friendlymela 07-21-2015 03:49 PM

how do i add fb group in navbar

Lynne 07-21-2015 04:41 PM

Quote:

Originally Posted by friendlymela (Post 2550972)
how do i add fb group in navbar

If you are running 4.2.2, the you would use Settings > Navigation Manager to add any tabs. You would not use the plugin method in this article.

pjkcards 11-18-2015 01:17 AM

navtab_middle isn't working for me. Nothing shows up when I change from navtab_end to navtab_middle. navtab_end works though. I want to add this link in the middle of the nav menu next to the Forum link.

What do I need to do to troubleshoot this?

Thanks.

Budget101 11-18-2015 08:35 AM

Quote:

Originally Posted by pjkcards (Post 2558911)
navtab_middle isn't working for me. Nothing shows up when I change from navtab_end to navtab_middle. navtab_end works though. I want to add this link in the middle of the nav menu next to the Forum link.

What do I need to do to troubleshoot this?

Thanks.

Did you disable all mods, then test it? I have a mod that disables mine from working properly.

Do you have the same issue in the vb default style?


All times are GMT. The time now is 04:00 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.01917 seconds
  • Memory Usage 1,775KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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