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)
-   -   2 Navtab Error [Pictures] (https://vborg.vbsupport.ru/showthread.php?t=276456)

taylor_smith 01-04-2012 06:12 PM

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:

https://vborg.vbsupport.ru/external/2012/01/57.jpg

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:

https://vborg.vbsupport.ru/external/2012/01/58.jpg

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!

Lynne 01-04-2012 06:17 PM

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.

taylor_smith 01-04-2012 06:23 PM

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.

Lynne 01-04-2012 08:41 PM

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.

taylor_smith 01-05-2012 11:54 AM

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?

Lynne 01-05-2012 04:42 PM

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

taylor_smith 01-05-2012 04:56 PM

Can I do something like this in additional.css?

$categorybits > a {css
}

?

Lynne 01-05-2012 05:17 PM

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}


All times are GMT. The time now is 10:27 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.01006 seconds
  • Memory Usage 1,731KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete