vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Top NavBar With Drop Down Menus (https://vborg.vbsupport.ru/showthread.php?t=129074)

MadKad 07-26-2007 06:31 PM

This will work on the newist version (should do as its only template change)

As for vbadvanced I cant help as I dont use vbadvanced sorry

DieselMinded 07-26-2007 09:18 PM

does this upgrade have to be done before the 3.6.8 upgrade?

MadKad 07-26-2007 09:40 PM

Quote:

Originally Posted by DiesellMinded (Post 1302565)
does this upgrade have to be done before the 3.6.8 upgrade?

nope its a template edit so it can be done on all 3.6.x

DieselMinded 07-26-2007 11:48 PM

What Is this Template Edit for Anyway?

MadKad 07-26-2007 11:51 PM

To add the template name in where needed so that the nav shows up.

DieselMinded 07-27-2007 12:19 AM

Mine works Fine Now But it wont when i Upgrade to 3.6.8 unless i Upgrade this Mod First Correct

DM

MadKad 07-27-2007 09:39 AM

sorry no there has been to change to this mod, we no it will work with the new version this is why we have said it will work with the new version, I didnt explain my self correctly sorry.

DieselMinded 07-27-2007 08:53 PM

Me No Understand your speakings

Chadi 07-31-2007 08:27 PM

I'm getting w3 validation errors on this menu.

Quote:

Line 742, Column 10: value of attribute "id" invalid: "2" cannot start a name. <td id="2" class="nav_menu_control" style="width: 81px"><a href="#1">Info</a>
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.

In regards to unique ID names, I am having a strange problem.

I have custom drop down menus in navbar and they look like this:

<td id="1" class="nav_menu_control" style="width: 81px">
(in header template)

<div class="vbmenu_popup" id="1_menu" style="display:none">
(in navbar template)

The above is default (showing errors in w3 validation) yet they work fine.

IF I change the ID each to something like below, it shows the menu title but no longer drops down the sub menu, nor shows the down arrow icon (indicating drop down menu)

<td id="menu1" class="nav_menu_control" style="width: 81px">
<div class="vbmenu_popup" id="menu1_menu" style="display:none">

Hornstar 08-01-2007 06:57 AM

I am having problems since upgrading to 3.6.8 could you please take a quick look at the code below and see if you can find anything wrong:

Code:

<!--######## start of navbar2 ########-->

<!-- nav2 buttons bar -->
<div align="center">
  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
    <tr align="center">

<!-- Fun Stuff -->
  <td id="FunStuff" class="vbmenu_control"><a href="$show[nojs_link]#FunStuff">Fun Stuff</a> <script type="text/javascript"> vbmenu_register("FunStuff"); </script></td>
<!-- /Fun Stuff -->
     
<!-- Donations -->
<td class="vbmenu_control"><a href="http://www.gamerzneeds.net/forums/donate.php$session[sessionurl_q]">Donate</a></td>
<!-- /Donations -->

<!-- Downloads menu -->
<td class="vbmenu_control"><a href="http://www.gamerzneeds.net/forums/downloads.php">Downloads</a></td>
<!-- /Downloads menu -->

<!-- Newsletter -->
<td class="vbmenu_control"><a href="http://www.gamerzneeds.net/forums/newsletter.php">Newsletter</a></td>
<!-- /Newsletter -->

<!-- Invites -->
<td class="vbmenu_control"><a href="http://www.gamerzneeds.net/forums/invites.php">Invite</a></td>
<!-- /Invites -->


 
      <td class="vbmenu_control"><a href="http://www.gamerzneeds.net/forums/job-opportunities-site-sponsors-earn-money/13134-becoming-site-sponsor.html">Advertise</a></td>

 <td class="vbmenu_control"><a href="http://www.buy-host.com" target="_blank">Buy-Host Webhosting</a></td>

    </tr>
  </table>
</div>
<!-- / nav2 buttons bar -->
<if condition="$show['popups']">

<!-- NAVBAR POPUP MENUS -->

<!-- extras pop start -->
<div class="vbmenu_popup" id="1_menu" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
    <tr>
      <td class="thead">Drop Down</td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="link">link</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="link">link</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="link">link</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="link">link</a></td>
    </tr>
      </table>
  </if>
</div>
<!-- extras pop end -->

<!-- / NAVBAR POPUP MENUS -->

<!-- Create Fun Stuff -->
      <if condition="$show['member']">
    <!-- your tools menu -->
    <div class="vbmenu_popup" id="FunStuff_menu" style="display:none">
        <table cellpadding="4" cellspacing="1" border="0">
        <tr><td class="thead">Fun Stuff</td></tr>
        <tr><td class="vbmenu_option"><a href="http://www.gamerzneeds.net/forums/gznevent.php">GzN Event - Coming Soon!</a></td></tr>
        <tr><td class="vbmenu_option"><a href="http://www.gamerzneeds.net/forums/gallery/index.php">Gallery / Image Hosting</a></td></tr>
        <tr><td class="vbmenu_option"><a href="http://www.gamerzneeds.net/shop/">Buy/Sell - GZN Shop</a></td></tr>
        <tr><td class="vbmenu_option"><a href="http://www.gamerzneeds.net/forums/arcade.php">Arcade</a></td></tr>
        </if>

        </table>
    </div>
    <!-- / your tools menu -->         
    </if>
<!-- End Fun Stuff Edit -->
<!--####### end of navbar2 #######-->

Basically it only occurred when viewing the site as a guest, as a member it looked fine. and the problem was, teh navbar wouldnt stretch to the ends of the navbar, and then it would also throw off the side column hack that im using.

Hopefully something easily fixed, as I love this.


All times are GMT. The time now is 08:08 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.01184 seconds
  • Memory Usage 1,759KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)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