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)

Ryloth 02-04-2007 02:35 PM

Ok, I have it installed and the dropdown menu works but its all the way over on the left edge of the Navbar. Also, <td id="1"> makes the nav bar unevenly aligned.

I am not using $nav2, I have that code in the original Navbar template.

Here is the code of the bottom navbar:

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">
         
          <!-- dropdown start -->

      <td id="1" class="vbmenu_control"><a href="#1">Arcade</a>
        <script type="text/javascript"> vbmenu_register("1"); </script></td>
      <!-- dropdown end -->

<td class="vbmenu_control"><a href="/forums/downloads.php?$session[sessionurl_q]">Downloads</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">The Arcade</td>

    <tr>
      <td class="vbmenu_option"><a href="/forums/arcade.php?$session[sessionurl_q]">Arcade</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="/forums/forumdisplay.php?f=153">Arcade Forum</a></td>
    </tr>
  </table>
  </if>
</div>
<!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->
<!--####### end of navbar2 #######-->

Site : http://www.newtiburon.com

curriertech 02-04-2007 02:37 PM

Quote:

Originally Posted by SkippySkippy (Post 1150808)
It's a nice mod, but it only shows up on the forumhome. I would use this if it was global (working in forums, arcade, vbAdvanced, etc.)

-Skip

Add "nav2" to the global output variables box under the main cmps settings.

o0Hubba0o 02-10-2007 11:58 PM

Quote:

Originally Posted by DanCan (Post 1159160)
No that didn't work. It points to this link and the the drop down menu doesn't show.

I have used your code in the original example and it doesn't work. Also I have followed the instructions very carefully. I don't get it.

Mines doing the same thing, and reading through this thread just makes things more confusing. People talking about editing the header and/or navbar, while the instructions in the zip say to edit the top_nav but the first post says to edit the navbar.

So when I click the link that's supposed to be the drop down it just makes the page jump up so the top nav is at the top of the browser page, here's my info. (I'm still in the process of changing the other links)

Site: Graphics Anonymous

top_nav:

PHP 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"
      
            
      <
td class="vbmenu_control"><a href="http://www.graphicsanonymous.net/">Home</a></td
      
      <
td class="vbmenu_control"><a href="http://www.graphicsanonymous.net/forums/arcade.php">Arcade</a></td
      
       <!-- 
dropdown start --> 
      <
td id="1" class="vbmenu_control"><a href="#1">Tutorials</a
        <
script type="text/javascript"vbmenu_register("extra"); </script></td
      <!-- 
dropdown end --> 
       
      <
td class="vbmenu_control"><a href="link">link</a></td
     
      <
td class="vbmenu_control"><a href="link">link</a></td
      
      <
td class="vbmenu_control"><a href="link">link</a></td
       
      <
td class="vbmenu_control"><a href="link">link</a></td
     
      <
td class="vbmenu_control"><a href="link">link</a></td
     </
tr
  </
table
</
div>
<!-- / 
nav2 buttons bar --> 
<if 
condition="$show['popups']"
<!-- 
NAVBAR POPUP MENUS --> 

<!-- 
extras pop start --> 
<
div class="vbmenu_popup" id="1" style="display:none"
  <
table cellpadding="4" cellspacing="1" border="0"
    <
tr
      <
td class="thead">Tutorials</td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=34">Animations</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=36">Designs</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=38">Photo Effects</a></td>     </tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=40">Tools:  Brushes More</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=73">Signature</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=37">Effects</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=39">Text</a></td
    </
tr
    <
tr
      <
td class="vbmenu_option"><a href="http://www.graphicsanonymous.net/forums/forumdisplay.php?f=41">Web Stuff</a></td
    </
tr>
  </
table>
  </if>
</
div>
<!-- 
extras pop end --> 
<!-- / 
NAVBAR POPUP MENUS --> 
<!--
####### end of navbar2 #######--> 


Bat21 02-15-2007 08:25 AM

Just installed this hack and IE users are getting an

'this.controlobj' is null or not an object

message either in the ststus bar (bottom left) or as an annoying popup message.

FireFox users don't ave any problems.

Any ideas?

Bat21 02-15-2007 10:13 AM

Sussed it, I had to remove this from the code to get rid of the error message:-

Quote:

<!-- dropdown start -->
<td id="1" class="vbmenu_control"><a href="#1">Drop down</a>
<script type="text/javascript"> vbmenu_register("extra"); </script></td>
<!-- dropdown end -->
All seems to work fine with it removed.

molieman 03-23-2007 01:12 PM

Hi, I've upgraded to vBulletin 3.6.5 and just recently found out the TopNav is not working for FoxFire users.

Anyone else having this problem and is there a fix for this?

MadKad 03-29-2007 10:31 AM

Quote:

Originally Posted by molieman (Post 1210355)
Hi, I've upgraded to vBulletin 3.6.5 and just recently found out the TopNav is not working for FoxFire users.

Anyone else having this problem and is there a fix for this?

still looking into this, I cant really see any problems my self :(

MelH 04-21-2007 04:41 AM

I'm using vBulletin 3.6.5 and the drop down is not working properly in Firefox. See the attached image.

Is there a fix for this?

MadKad 04-21-2007 04:08 PM

lol I hate Firefox they cant display code right, I will have a look and see what I can do.

can I have your link please :)

MelH 04-23-2007 02:35 AM

Hi,

I sent you a PM with the link.

Thanks for the mod and your help with this problem.

Regards,

Mel


All times are GMT. The time now is 09:01 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.01355 seconds
  • Memory Usage 1,789KB
  • 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
  • (1)bbcode_php_printable
  • (4)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