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)

o0Hubba0o 11-29-2007 01:48 AM

Quote:

Originally Posted by malluroses (Post 1391136)
is there anyhow only members can see the nav links rather than the guest seeing it

i only want registerd members to see the links on the topnavbar

i dont want any guest to see it plz help

I know you could add an if statement to each link, the bars background would show but not the links. Not really an ideal solution, but it's off the top of my head, I'm sure there's a way you could get the whole bar gone too, maybe even the same if statement.

Something like this I think:

<if condition="$show['member']">LINK</if>

o0Hubba0o 12-02-2007 04:47 AM

Quote:

Originally Posted by Cocko (Post 1120673)
same issue /w ibproarcade :(

top_nav is shown in all other pages
(e.g. pp pro, chat, forums, cmps)

what to do (template edits?) for
system-message and ibproarcade ?

edit: fixed issue by adding $nav2
in ./arcade/functions/funktions.php (ibproarcade)
in ./includes/funktions.php (vbulletin_message)

I was just going through my site trying to get this on pages it was missing and seen this. I wanted to add for those that might still need help with this, if you have access to files to edit them, look for both those files he mentioned and do this edit:

Find:
Code:

        global $header,

And change to:
Code:

        global $header, $nav2,
It will then show up in arcade (I'm using ibproarcade) and in message pages, like when a score doesn't get submited in the arcade the page with that message didn't have the top nav.

Hope that helps some of you, I haven't tried it for anything else, but my guess would be look for the same situation with the includes files.

SBlueman 12-02-2007 06:02 AM

This is my new navbar. The dropdown menus are not appearing. Can somone look at my code and let me know what could be wrong?

Code:

<!--######## start of navbar2 ########-->
<!-- nav2 buttons bar -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="880" align="center" style="border-top-width:1px">
    <tr align="center">
     
      <td class="vbmenu_control"><a href="http://gridironfans.com/" target="_self">Home</a></td>

      <td id="1" class="vbmenu_control"><a href="#1">Forums</a>
        <script type="text/javascript"> vbmenu_register("1"); </script></td>

      <td class="vbmenu_control"><a href="http://gridironfans.com/forums/blogs/" target="_self">NFL Blogs</a></td>

          <td id="2" class="vbmenu_control"><a href="#2">AFC News</a>
<script type="text/javascript"> vbmenu_register("2"); </script></td>

      <td id="3" class="vbmenu_control"><a href="#3">NFC News</a>
<script type="text/javascript"> vbmenu_register("3"); </script></td>

      <td id="4" class="vbmenu_control"><a href="#4">More NFL News</a>
<script type="text/javascript"> vbmenu_register("4"); </script></td>

          <td id="5" class="vbmenu_control"><a href="#5">Site Extras</a>
<script type="text/javascript"> vbmenu_register("5"); </script></td>

    </tr>
  </table>
</div>
<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"><a href="http://gridironfans.com/forums/index.php" target="_self">Forum Index</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/forumdisplay.php?f=91" target="_self">Football Forums</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/forumdisplay.php?f=93" target="_self">GridironFans Central</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/forumdisplay.php?f=158" target="_self">The Lounge</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/forumdisplay.php?f=90" target="_self">VIP Section</a></td>
    </tr>
  </table></if></div><!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->
 <if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<!-- extras pop start -->
<div class="vbmenu_popup" id="2" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
    <tr>
      <td class="thead">AFC News By Team</td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Bengals/">Bengals</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Bills/">Bills</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Broncos/">Broncos</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Browns/">Browns</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Chargers/">Chargers</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Chiefs/">Chiefs</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Colts/">Colts</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Dolphins/">Dolphins</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Jaguars/">Jaguars</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Jets/">Jets</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Patriots/">Patriots</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Raiders/">Raiders</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Ravens/">Ravens</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Steelers/">Steelers</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Texans/">Texans</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Titans/">Titans</a></td>
    </tr>
  </table></if></div><!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->
 <if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<!-- extras pop start -->
<div class="vbmenu_popup" id="3" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
    <tr>
      <td class="thead">NFC News By Team</td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/49ers/">49ers</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Bears/">Bears</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Buccaneers/">Buccaneers</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Cardinals/">Cardinals</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Cowboys/">Cowboys</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Eagles/">Eagles</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Falcons/">Falcons</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Giants/">Giants</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Lions/">Lions</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Packers/">Packers</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Panthers/">Panthers</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Rams/">Rams</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Redskins/">Redskins</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Saints/">Saints</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Seahawks/">Seahawks</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/Vikings/">Vikings</a></td>
    </tr>
  </table></if></div><!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->
 <if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<!-- extras pop start -->
<div class="vbmenu_popup" id="4" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0">
    <tr>
      <td class="thead">More NFL News</td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/topstory/" target="_self">Top Stories</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/injury/" target="_self">Injury Report</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/rumor/" target="_self">NFL Rumors</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/transaction/" target="_self">Transactions</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/draft/" target="_self">NFL Draft</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/nfl/" target="_self">League News</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/legal/" target="_self">Legal News</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/tags/index.php/score/" target="_self">Scores</a></td>
    </tr>
  </table></if></div><!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->
<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->

<!-- extras pop start --> 
<div class="vbmenu_popup" id="5" style="display:none">
  <table cellpadding="4" cellspacing="1" border="0"> 
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/view.php?pg=rules" target="_self">Site Rules</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/faq.php" target="_self">F.A.Q.</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/statistics.php" target="_self">Site Stats</a></td>
    </tr>
    <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/referrers.php?" target="_self">Referral Stats</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/awards.php" target="_self">Member Awards</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://my.funtrivia.com/private/main.cfm?tid=72521" target="_blank">Daily NFL Trivia</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfanscom.ourtoolbar.com/" target="_blank">Site Toolbar</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/view.php?pg=teamstore" target="_self">Team Shop</a></td>
    </tr>
        <tr>
      <td class="vbmenu_option"><a href="http://gridironfans.com/forums/view.php?pg=gridirongear" target="_self">Gridiron Gear</a></td>
    </tr>
  </table></if></div>
<!-- extras pop end -->
<!-- / NAVBAR POPUP MENUS -->


o0Hubba0o 12-02-2007 07:15 AM

I noticed in all of these:

Code:

<!-- extras pop start -->
<div class="vbmenu_popup" id="4" style="display:none">

The id just has the number and not 4_menu, all of them except #1, try checking on that maybe.

SBlueman 12-02-2007 07:35 AM

That did the trick, thanks!

yeku 12-16-2007 04:41 PM

Reserved, thank

Saint_ago 01-07-2008 08:20 AM

Quote:

Originally Posted by voter (Post 1302037)
Anybody know, how to explain vbadvanced to put prefixes with Forum's URL in links of top nav bar?

After putting the nav2 variable in vBa CMPS-> Default Settings -> Main Options ->Portal Output Global Variables, it gets visible in CMPS page.

BUT as of my forum is in subdirectory/subforum VB "viparmenia.com/vb" and CMPS is on main directory "viparmenia.com" I need that prefix for correct URL appended to every link in topnavbar menu.

Anyone? I'm having the same problem here...

0tolerance 01-21-2008 01:14 AM

hell yes :), this is exactly what i was looking for..
And too think i was going to code my own mod.. lol

I'm guessing that this would easily adapt to having the main menu button that you click an image instead of just text?

o0Hubba0o 01-21-2008 02:34 AM

Quote:

Originally Posted by 0tolerance (Post 1425532)
hell yes :), this is exactly what i was looking for..
And too think i was going to code my own mod.. lol

I'm guessing that this would easily adapt to having the main menu button that you click an image instead of just text?

I used images on an old site I had this installed on before, so yes it should. ;)

molieman 01-21-2008 09:48 AM

I couldn't find this anywhere... I could be blocking it:)

Does this mod work with 3.7?


All times are GMT. The time now is 08:13 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.01263 seconds
  • Memory Usage 1,808KB
  • 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
  • (4)bbcode_code_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