vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v4.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 05-27-2012, 10:56 AM
soulfoot soulfoot is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Default Resolved. vBa sub page link style not matching navtab child link style

Issue: vBa navtab sub link style vs vB navtab sub link style
vBulletin 4.1.12 Patch Level 1
vBadvanced CMPS 4.2.0
site: http://dev.unrepentantgaming.org/index.php
skill level: can follow directions

Problem: I created a sub page for my vBa "Home" page called "Community Portal". However, i do not know how to make the sub page link style match the other subpage/child link styles in the rest of the navbar (select "forum" and hover over the sub links for an example). Our site also uses a rotating background so if you happen to get the one thats mostly white you wont even be able to see the sub page under "Home". I know i can just change the navbar_background (among other things) but I wouldnt be here if i didnt want to make it work.

If there are stylevars what are they, If i need to edit a template please point me in the right direction.

here is some of the code i used for the navtab children/sublinks
Code:
.navtabs li.selected li a {
	color:{vb:stylevar navbar_link_color};
	padding:{vb:math {vb:stylevar padding}/5} {vb:math {vb:stylevar padding}/2};
        background:{vb:stylevar body_background};
        -moz-border-radius:3px;
	-webkit-border-radius:3px;	
	border-radius:3px;
	border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}


.navtabs li.selected li a:hover {
	color:{vb:stylevar navbar_tab_selected_color};
	text-decoration:none;
        background: {vb:stylevar navbar_tab_selected_background};
        -moz-border-radius:3px;
	-webkit-border-radius:3px;	
	border-radius:3px;
	border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent; 
}
since i plan on creating several sub pages for quite a few different vBa pages it would be nice if they some how inherited the style in the same way that the vBa navtabs inherit it.

i dont know alot about code creation but i guess i need to somehow put that style into this code
Code:
<vb:if condition="$subpagelinks">
	<ul class="floatcontainer">
		{vb:raw subpagelinks}
	</ul>
</vb:if>

Last edited by soulfoot; 05-27-2012 at 12:40 PM. Reason: resolved
Reply With Quote
  #2  
Old 05-27-2012, 12:38 PM
soulfoot soulfoot is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Default

ok so i'm halfway there

I added the following to additional.css
Code:
.subtab li a {
	color:{vb:stylevar navbar_link_color};
	padding:{vb:math {vb:stylevar padding}/5} {vb:math {vb:stylevar padding}/2};
        background:{vb:stylevar body_background};
        -moz-border-radius:3px;
	-webkit-border-radius:3px;	
	border-radius:3px;
	border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent;
}
and then changed the bottom half of adv_portal_navtab to
Code:
<vb:if condition="$subpagelinks">
	<ul class="floatcontainer subtab">
		{vb:raw subpagelinks}
	</ul>
</vb:if>
now to figure out how to get the hover working.
Reply With Quote
  #3  
Old 05-27-2012, 12:40 PM
soulfoot soulfoot is offline
Junior Member
 
Join Date: May 2012
Posts: 3
Default

and done

added the following to additional.css
Code:
.subtab li a:hover {
	color:{vb:stylevar navbar_tab_selected_color};
	text-decoration:none;
        background: {vb:stylevar navbar_tab_selected_background};
        -moz-border-radius:3px;
	-webkit-border-radius:3px;	
	border-radius:3px;
	border:solid {vb:stylevar navbar_tab_border.borderWidth}{vb:stylevar navbar_tab_border.units} transparent; 
}
thanks for all your help
Reply With Quote
  #4  
Old 05-27-2012, 08:47 PM
Dragonsys Dragonsys is offline
Senior Member
 
Join Date: Jan 2008
Location: Atlanta, GA
Posts: 444
Default

Quote:
Originally Posted by soulfoot View Post
thanks for all your help
LOL
glad you got it all figured out!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I make a nav page link open an external link? adbox "How Do I..." Questions 0 09-14-2011 02:22 PM
Logon Problems, gets logged out when using the link to my Link-page siggen Troubleshooting & Problems 5 02-22-2008 05:10 AM
how to add a Forums link on the vba page and how to add a Home link on forumhome.php? Telegon80 "How Do I..." Questions 2 12-27-2005 02:34 PM
No 'Admin CP' link in CMPS page footer in v.2.0.0; no navbar linking; & no forum link forumpup Troubleshooting & Problems 1 09-23-2005 10:41 PM
The problem with the link to portal and the link to the forum main page.. Giowolf Troubleshooting / "How do I..." Questions 2 05-20-2005 02:29 AM


All times are GMT -4. The time now is 03:35 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.