vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=253)
-   -   NavBAr Tab Colour Change One Only Like on Vbulletin PURCHASE tab (https://vborg.vbsupport.ru/showthread.php?t=257166)

ijob 01-15-2011 10:15 AM

NavBAr Tab Colour Change One Only Like on Vbulletin PURCHASE tab
 
Hi there,

I need some help. I want to change one of my navbar tab text colours to that of Vbulletin.com's 'Purchase' Tab.

Thanks

Lynne 01-15-2011 04:16 PM

then edit the code where you added the navtab and add in some color? What is your code?

smooth-c 01-18-2011 02:10 PM

I'd also like to know how to do this. Maybe a little more elaborate though.. I'd like to change the background colour/image of just one specific tab. I'll be using your own code for the tabs, Lynne.

Lynne 01-18-2011 07:05 PM

You want to change this part:
PHP Code:

<class="navtab" 

to something like this:
PHP Code:

<class="navtab newclass" 

And then just define newclass in additional.css:
HTML Code:

.navtabs li a.newclass {    color: #FBCB3D;}

smooth-c 01-18-2011 09:39 PM

Thank you Lynne. All works great - there's one thing that doesn't work though. The hover. Is there a way to make it still hover?

Thanks :)

Lynne 01-18-2011 10:28 PM

Set a class for hover - something probably like:

HTML Code:

.navtabs li a.newclass:hover {color: purple;}

smooth-c 01-19-2011 12:14 AM

Thank you so, so much Lynne. You're a great asset to this community, as always. (:

merk_aus 01-21-2011 11:06 AM

thanks for this lynne did ask the same question and was directed here your help is TRULY appreciated.

goxy63 02-14-2013 09:39 PM

Sorry to bring this up again

I also need to change just one tab, but not sure where to look for this?
navigation.php ? I dont think so

I've searched templates for <a class="navtab" and it exists only in "navbar_tabs"

Code:

<vb:each from="tabs" value="tab" key="tabid">
        <li<vb:if condition="$selected == $tabid"> class="selected"</vb:if> id="{vb:raw tab.name}">
                <a class="navtab" href="{vb:raw tab.url}">{vb:raw tab.title}</a>
                <vb:if condition="$tab['children'] AND $selected == $tabid">
                        <ul class="floatcontainer">
                                <vb:each from="tab.children" value="link">
                                        <vb:if condition="$link['children']">
                                                <li class="popupmenu" id="{vb:raw link.name}">
                                                        <a href="javascript://" class="popupctrl">{vb:raw link.title}</a>
                                                        <ul class="popupbody popuphover">
                                                                <vb:each from="link.children" value="sublink">
                                                                        <li id="{vb:raw sublink.name}"><a href="{vb:raw sublink.url}">{vb:raw sublink.title}</a></li>
                                                                </vb:each>
                                                                {vb:raw template_hook.navbar_after_sublinks}
                                                        </ul>
                                                </li>
                                        <vb:else />
                                                <vb:if condition="$link['type'] == 'link'">
                                                        <li id="{vb:raw link.name}"><a href="{vb:raw link.url}">{vb:raw link.title}</a></li>
                                                </vb:if>
                                        </vb:if>
                                </vb:each>
                                {vb:raw template_hook.navbar_after_links}
                        </ul>
                </vb:if>
        </li>
</vb:each>

But not sure how to edit this part for one of my tabs, my tabs are created in default VB4.2.0 "navigation menager"

Thank you

WorldCraft 02-15-2013 02:16 AM

Are you trying to make a CSS edit for one of your tabs?


All times are GMT. The time now is 06:49 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.01102 seconds
  • Memory Usage 1,744KB
  • 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
  • (2)bbcode_html_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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