Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2012, 06:12 PM
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 2 Navtab Error [Pictures]

Greetings! I'm having trouble with two navbar issues.

Problem 1: Navtab below content

When I click one of the navtabs on our site, the popupmenu displays as follows:



The playlist navtab works fine, but this one is messed up for some reason. The template is pasted here:

http://pastebin.com/didDguL5

Problem 2: Navtab Options Blank Unless Highlighted

In our "Bop" microblog section, the navtab popupmenu options are invisible unless hovered. See:



I can't seem to find the template for this (I'm guessing forumhome?). However, the site is located here: http://www.carpediem.im.

Any insight would be greatly appreciated!
Reply With Quote
  #2  
Old 01-04-2012, 06:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Both of those are from modified code.

None of the default navtabs have dropdown menus - so you did this yourself with a modification or you wrote the code yourself. We can't really help with that without knowing your code. (and if it's from a modification, you need to post in that modification thread for help.)

I also cannot see any dropbox when I click on the Media tab. I also see no "Bop" thing on your site.

edit: Oh, I found the "Bop" thing. You'll need to post in the modification thread for help with that. Or, just use firebug to figure out what css is used and change it yourself.
Reply With Quote
  #3  
Old 01-04-2012, 06:23 PM
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Media

Does the pastebin link help (http://pastebin.com/didDguL5)? It contains the navtab code for the Media section.

When visiting the "Media" tab, it is the "Categories" dropdown that has the problem. The "Playlist" dropdown works fine.

Bop

Ok, I will reach out to the modification creator. For what it's worth, the template is here: http://pastebin.com/JYb9eWtk.

Thanks!

--------------- Added [DATE]1325706083[/DATE] at [TIME]1325706083[/TIME] ---------------

Fixed the Bop issue by adding this to additional.css:

.blockhead .popupbody li > a { color: #000000;
}

Still dunno about the "categories" dropdown.
Reply With Quote
  #4  
Old 01-04-2012, 08:41 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah, I misunderstood what the first issue was. When I use firebug on the Categories dropdown, I do get this CSS which is going to be why it is so high up:

Your html for the added navtabs isn't anything like the default code. That may be what the problem is.
Reply With Quote
  #5  
Old 01-05-2012, 11:54 AM
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I found that if I remove the padding from the code below, the other dropdowns behave the same way as the categories dropdown. For some reason, this css is not applying to the categories dropdown.
Code:
.navtabs li.selected .popupbody li > a {
padding: 0px 10px;
text-indent: 0;
color: black;
}
When looking here (below), I tried to simply add <li style="margin-top: 10px;"> to the categorybits, but this didn't work.
Code:
<li class="popupmenu">
				<a href="javascript://" class="popupctrl">{vb:phrase media_categories}</a>
				<ul class="popupbody popuphover">
					{vb:raw categorybits}
				</ul>
			</li>
			<li class="popupmenu">
				<a href="javascript://" class="popupctrl">{vb:phrase media_playlists}</a>
				<ul class="popupbody popuphover">
					<li style="margin-top: 10px;"><a href="{vb:raw href.playlists}">{vb:phrase media_playlists_browse}</a></li>
However, if hard coded the links (e.g., below), it appeared correctly.
Code:
<li style="margin-top: 10px;"><a href="http://www.carpediem.im/media.php?do=category&cid=6">Categories</a></li>
Hence, I assume that I need to add css to vb:raw categorybits. However, I've searched in templates, styles, and phrases, but couldn't figure out where categorybits was. Any ideas?
Reply With Quote
  #6  
Old 01-05-2012, 04:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

$categorybits is defined in the php. Do a search through your vb files for it and you should find where it is defined.

I would not edit it that way. I would add something to the additional.css template to fix it.
Reply With Quote
  #7  
Old 01-05-2012, 04:56 PM
taylor_smith taylor_smith is offline
 
Join Date: Oct 2010
Posts: 40
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can I do something like this in additional.css?

$categorybits > a {css
}

?
Reply With Quote
  #8  
Old 01-05-2012, 05:17 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. $categorybits is a variable that is parsed in the template. You can't apply CSS to a variable. You'd have to do something more along the lines of:

ul.popupbody li {css}
Reply With Quote
Reply


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


All times are GMT. The time now is 12:05 AM.


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.04129 seconds
  • Memory Usage 2,228KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete