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 12-29-2010 10:10 PM

This is the wrong place to ask about how to get the tab to highlight when using a template for your navtab. There is another article that talks about using a template for the navtab. This article only uses a plugin and the condition for highlighting the tab is in the plugin.

Monahan 01-16-2011 10:41 PM

Absolutely brilliant Lynne, a big thanks.

I've looked all over the place for this. I don't know what other members problems are. I'm a novice but followed your instructions and it works, first time. Dead easy.

Thanks again.

Budget101 01-18-2011 12:34 PM

Ugh, I've been at this for 14 hours straight and cannot get it to do what I want.

In the Navbar- I want to created a Navtab (that doesn't link to anything/go anywhere/ stays on the same page no matter what page you're on when you click it) but that creates a Navigation submenu bar with multiple drop down boxes containing links.

https://vborg.vbsupport.ru/external/2011/07/104.jpg

I want it to do this (as pictured above)- except that link 1 is a drop down, link 2 is a drop down, etc (all of the submenus are dropdowns. When you click on "Nav Link" in the navbar tabs- it doesn't actually GO anywhere- the page stays the same with the navigation menus all showing.

I got all of submenu dropdowns to show but cant get the 'Nav Link" to remain the same on every single page.

-------------------------------------------------------------------------

I tried using:
PHP Code:

$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" >Nav Link</a>'.$tablinks.'</li>' 

is there a way to remove the actual "Linking" of the tab and still have the drop down menu appear when someone clicks on it?

I tried using 'index' in THIS_SCRIPT and removing the link in the bottom line 'link.php' but than it overwrote the links in the forum tab (so when you click on the forum tab, the links from the new tab showed).


I just want a tab that when clicked on- displays the sections that are available on my site.

smooth-c 01-18-2011 01:36 PM

Is it possible to have a background image for a tab? Would be great if anyone could help!

Thanks.

Greg

Lynne 01-18-2011 07:07 PM

Quote:

Originally Posted by smooth-c (Post 2150936)
Is it possible to have a background image for a tab? Would be great if anyone could help!

Thanks.

Greg

Just add a class to the tab (where it says class="navtab" add in a class there) and then just define it in additional.css

Edrondol 01-19-2011 07:03 PM

How would I add a conditional to the following?

Code:

<li class="popupmenu">
    <a href="javascript://" class="popupctrl navtab" style="background:transparent url({vb:stylevar imgdir_misc}/arrow.png) no-repeat {vb:stylevar right} center; padding-right: 15px">Special Access</a>
    <ul class="popupbody popuphover">
    <li><a style="text-indent: 0px; color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="http://domain.com/">TEST</a></li>
    <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink2.php">SubLink 2</a></li>
    <li><a style="color:{vb:stylevar navbar_selected_popup_body_a_Color}" href="sublink3.php">SubLink 3</a></li>
    </ul>
    </li>


Lynne 01-19-2011 09:16 PM

Since that looks like just html, I'll assume it's a template, so just add:
HTML Code:

<vb:if condition="whatever condition you want">
your code
</vb:if>

Your question is so general that I can't offer any specifics. (And, I don't know why it's here since there is no template in this article.)

LoveStream 01-23-2011 11:09 AM

Hello, Lynne.

I have a question to you.

I made a NEW custom NavTabs with my own script files. And I add a PHP above menu you state into the plugin product too.

My edited template is "FORUMHOME".
I copied this FORUMHOME to new my custom as named "FORUMHOME_PJ" and create new mypj.php correspond to templates name and its values.

To modify certain template, really I want to show just one its nested childforum from the whole forum list, I added the <vb:if condition="........."></vb:if> in the top line of the copied templates.

Then now when I load my custom NAVTAB menu it works very well with my altered FORUMHOME_PJ templates and mypj.php.

However in this case, when I back to the tied forum that have IF, CONDITIONED tag to limit show the certain forum id, after I was browsing the thread title or link of limited forum, the NAVTAB menu won't point out my CUSTOM NAVTAB and it always turned to the basic forum TAB again. My NavTab menu doesn't highlighted which should be.

My purpose is that I always should fixed in my new NavTab menu.

To operate this I look at and refer to the /include/functions_forumlist.php and made a new functions_forumlist_pj.php that contains altered $forumbits_pj.

Can I ask to you?

I'm sorry for that my inaccurate expression.
I hope you understand it.

Thanks you.

Lynne 01-23-2011 03:43 PM

I'm sorry, but I really have no idea what you are asking. If you want your navtab to show when you go to a certain page, you need to set up a unique condition. If that condition is not unique, then another navtab may show as highlighted.

LoveStream 01-24-2011 05:35 AM

Quote:

Originally Posted by Lynne (Post 2153403)
I'm sorry, but I really have no idea what you are asking. If you want your navtab to show when you go to a certain page, you need to set up a unique condition. If that condition is not unique, then another navtab may show as highlighted.

Thank you, but though I put unique name, navtab is back to old forum Tab.
I should be study more.

Thank you.


All times are GMT. The time now is 10:34 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01679 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
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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