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)
-   -   Mini Mods - Double navigation buttons bar (https://vborg.vbsupport.ru/showthread.php?t=130958)

Dream 11-06-2006 10:00 PM

Double navigation buttons bar
 
This was the best solution to have more navbar links I saw so far.

Edit "navbar" template, find

Code:

<!-- breadcrumb, login, pm info -->
add before

Code:

<!-- top nav buttons bar -->
<div align="center">
    <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-bottom-width:0px">
    <tr align="center">
        <td class="vbmenu_control"><a href="index.php?$session[sessionurl]">Home</a></td>
        <td class="vbmenu_control"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td>
        <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
        <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
        <if condition="$show['member']">
        <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=process&showposts=0&starteronly=1&exactname=1&searchuser=$bbuserinfo[username]">My Threads</a> / <a href="search.php?$session[sessionurl]do=process&showposts=0&exactname=1&searchuser=$bbuserinfo[username]">Replies</a></td>
        <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars  =yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>
        <td class="vbmenu_control"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td>
        </if>
        <if condition="$bbuserinfo[usergroupid] == 6">
        <td class="vbmenu_control"><a href="$admincpdir/index.php$session[sessionurl_q]">AdminCP</a></td>
        </if>
    </tr>
    </table>
</div>
<!-- / top nav buttons bar -->

and change the links as you like :P

Veer 11-07-2006 02:25 PM

Works Great :)

Thanks a lot.

flint842 11-08-2006 09:52 PM

fantastic been looking for this for ages many thx

flint842 11-08-2006 10:26 PM

one prob i do have and think it may be the way i set up the site

with vbad i can add a link to forums from homepage to forums...or other way round..only one will work

urls from each page are

http://www.ukmods.co.uk/forum/index.php? from home page vbad (working)
http://www.ukmods.co.uk/forum/index.php? from forums or any other link (not working)

please help if u can
thx

Tru2Chevy 11-14-2006 01:19 PM

Installed and working great.

Thanks!

- Justin

ombossman 11-18-2006 06:11 AM

Installed and working thanks

Garyk 11-18-2006 10:34 PM

thanks so much my navbar was starting to get a little crowded now i have room to breath and add more links:cool:

MediaMisfit 12-09-2006 05:45 AM

Thanks... Was looking for this one for a while.

OndaReal 01-05-2007 07:25 PM

nice one, works a treat :)

MTVSlick 02-21-2007 02:52 AM

I add he code but I can not see the additional navbar?

Mark,

valdet 02-21-2007 01:22 PM

Many thanks my navbar was getting too crowded.

lonelime 02-25-2007 06:08 AM

this one it looks nice on my forum .. easy and better than the previous released by someone else

installed

blind-eddie 02-26-2007 04:23 PM

How can I widen it to fit my page, look at my site please.

Deadly Assassin 03-14-2007 07:47 AM

what code would i need to be able to show my own images in the Navbar.

I have a modded one and want the second one to look like the first.

This is my navbar now.

http://www.game-image.com/uploads/dbb5c96ec0.jpg

Code:

<td width="37" height="25" align="left" valign="top"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img src="$stylevar[imgdir_misc]/ambience_nav_home.jpg" alt="" width="37" height="25" border="0" /></a></td>
          <td width="40" height="25" align="left" valign="top"><a href="portal.php"><img src="$stylevar[imgdir_misc]/ambience_nav_portal.jpg" alt="" width="40" height="25" border="0" /></a></td>
          <td width="42" height="25" align="left" valign="top"><a href="usercp.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/ambience_nav_cp.jpg" alt="" width="42" height="25" border="0" /></a></td>
                            <if condition="$show['registerbutton']">
                  <td width="55" height="25" align="left" valign="top"><a href="register.php$session[sessionurl_q]" rel="nofollow"><img src="$stylevar[imgdir_misc]/ambience_nav_reg2.jpg" alt="" width="55" height="25" border="0" /></a></td>
        <else />
<td width="47" height="25" align="left" valign="top"><a href="register.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/ambience_nav_reg.jpg" alt="" width="47" height="25" border="0" /></a></td>
 <td width="68" height="25" align="left" valign="top"><a href="memberlist.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/ambience_nav_members.jpg" alt="" width="68" height="25" border="0" /></a></td>
<td width="57" height="25" align="left" valign="top"><a href="z/index.php"><img src="$stylevar[imgdir_misc]/ambience_nav_z.jpg" alt="" width="57" height="25" border="0" /></a></td>
<td width="67" height="25" align="left" valign="top"><a href="photoplog/index.php"><img src="$stylevar[imgdir_misc]/ambience_nav_gallery.jpg" alt="" width="67" height="25" border="0" /></a></td>
<td width="48" height="25" align="left" valign="top"><a href="arcade.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/ambience_nav_arcade.jpg" alt="" width="48" height="25" border="0" /></a></td>
                 
        <td width="91" height="25" align="left" valign="top"  id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/ambience_nav_search.jpg" alt="" width="91" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script></td>
  <td width="30" height="25" align="left" valign="top"><a href="faq.php$session[sessionurl_q]" accesskey="5"><img src="$stylevar[imgdir_misc]/ambience_nav_faq.jpg" alt="" width="30" height="25" border="0" /></a></td>       
          <td width="54" height="25" align="left" valign="top"><a href="calendar.php$session[sessionurl_q]"><img src="$stylevar[imgdir_misc]/ambience_nav_calender.jpg" alt="" width="54" height="25" border="0" /></a></td>
<td width="70" height="25" align="left" valign="top" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/ambience_nav_qlinks.jpg" alt="" width="70" height="25" border="0" /></a><script type="text/javascript"> vbmenu_register("usercptools" ,1); </script></td>
        </if>
<td width="67" height="25" align="left" valign="top">
<a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]"  onclick="return log_out()"><phrase 1="$bbuserinfo[username]"><img src="$stylevar[imgdir_misc]/ambience_nav_logout.jpg" alt="" width="67" height="25" border="0"</a></td

Can someone please show me hw to change it to my code i have now.

Thanks

BigJimTheLug 03-17-2007 08:52 PM

I've also done this as my current navbar is too long.

I've split it up into two navbars and will allows guest and members equal access to everything.

Before I decided to split the nav, I created space by using "guest" and "member" conditionals to allow certain access to certain groups.

This also works, but a double navbar looks better.

Nice mod.

If you are having trouble with this modification, please cut and paste the code in a text file and then proceed to edit in the text file. It is easier that way.

Also remember, vbulletin gives you a default of what your navbar looks like, so you can get a sense as to what you are doing right and what you are doing wrong.

Cheers.

deezelpope 03-20-2007 10:42 AM

Ahhhh, much better!! Installed, thanks!!:up:

auctionguy 04-15-2007 10:01 AM

The Hack is just what I needed!!! Thanks alot for creating it!! I love it!!

joker2040 04-22-2007 01:23 AM

Another great mod from Dream! You can view my install at http://s10planet.com

l3it3r 04-22-2007 03:53 AM

Excellent hack!

kiFF 04-22-2007 06:17 PM

It doesn't look centered for me. The space between each link is different for some reason.

Megadeuce 04-25-2007 10:58 PM

I like Kiff, have different spacing between my links. What is causing this?

Billspaintball 05-01-2007 12:46 PM

Nice!

My Navbar was getting a little too crowded.
This did the trick.

:)

Aimee1969 05-11-2007 02:18 PM

installed I like it ;)

USAMustangs.com 05-14-2007 02:18 AM

i installed this and it works great with one exception.

the admin cp link on the navbar works in the forum page, but it doesn't work on my vbadvanced home page. when you mouse over the admincp link in navbar on the homepage it displays the home page link. it just refreshes the homepage.

how do you fix this without have to add the full url to admincp in the navbar template?

Dream 05-14-2007 02:38 AM

Try changing your $admincpdir in the admincp link for your admincp directory

dpatel304 05-21-2007 05:05 AM

Great mod! For some reason, when I install this, the two bars show up directly on top of each other. I want it like the screen shot, with one bar above the login box, and the other below, but when I do it, both show as on top of each other below the login box. Any help would be greatly appreciated.

kollam003 05-22-2007 09:13 AM

thanks 4 the effort very best feature and user friendly

Mum 05-22-2007 08:27 PM

How could i add this as a 2nd line to the one that is already there?

yaoren 05-23-2007 04:52 AM

Added this in and worked great...my only question is I've seen this with a paypal button in between the nav bars and would like to have that done for my site as well. Any help on this would be really appreciated.

MiahBeSmokin420 06-11-2007 01:49 AM

yes this is a very nice one

it also work if you add it yo the bottom of your normal nav bar then you will have 3

thats just how i have mine set up

wolf32 06-13-2007 01:22 AM

Muchas Gracias!

Shazz 06-13-2007 01:25 AM

/me modifys

Works well

inteller2k7 06-20-2007 11:22 PM

for some reason mine only show up in the Top and not the bottom any ideas

Silvio 06-24-2007 11:12 PM

Simply superlative!

ty so much!


installed on : vb367pl1

keharris53 06-27-2007 10:31 PM

Thanks! This works perfectly! Installed hit...

Shazz 06-27-2007 10:45 PM

Quote:

Originally Posted by inteller2k7 (Post 1272808)
for some reason mine only show up in the Top and not the bottom any ideas

Did you remove the original navbar?

NaughtyStud 06-29-2007 04:40 PM

Thank you for this, it does work great. ;)

AuroraStorm 06-30-2007 10:11 PM

This looks very nice...thank you...

raiderlax 07-05-2007 07:02 PM

Thank you this works great!

MiahBeSmokin420 07-05-2007 09:52 PM

Quote:

Originally Posted by inteller2k7 (Post 1272808)
for some reason mine only show up in the Top and not the bottom any ideas

after </table>

before </div>

at the end of the first nav bar

add the second nave bar


and repeat for more

i have 3 on my site now

Demo: StillFallinEntertainment.com

Enter The New Site For The 3 Nav Bar vB Demo


All times are GMT. The time now is 04:57 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.02370 seconds
  • Memory Usage 1,819KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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