The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Additional navbar with dropdowns Details »» | |||||||||||||||||||||||||
After upgrading and supporting my 3.0.0 and 3.5.3 version of this hack, I have decided it was time to step into the plugin world to make this easier for people to use.
Despite what category this is in it works with vBulletin 3.0 up to the most recent version of 3.8. What this does is create another navbar with drop down menus by typing $navbar2 in any of your templates. It is just like the navbar that comes with VB. I put a lot of description tags in the navbar2 template that gets installed to help explain what everything does. Once you understand what is going on here you can removed these. With very little modifications you can add to, remove or move items around in this additional navbar. Upgrade To upgrade you will want to reimport this XML file and edit your options accordingly. 1.02
1. Download the zipped file. 2. Unzip the file. 3. Import the product-navbar2.xml into your Plugins & Products? Manage Plugins. 4. Next you will have to decide where you want the navbar2 to be displayed. I have included a few options below. 5A. Under current (original) Navigation bar: Find: Code:
<!-- / breadcrumb, login, pm info --> Code:
$navbar2 Find: Code:
<!-- / PAGENAV POPUP --> </if> Code:
$navbar2 Find: Code:
<br /> <!-- breadcrumb, login, pm info --> Code:
$navbar2 Find: Code:
<br /> <!-- breadcrumb, login, pm info --> Code:
$navbar2 Find: Code:
<!-- / nav buttons bar --> Code:
$navbar2 This should now work with vBAdvance CMPS, Arcade, PhotoPlog with no other modifications. Many thanks to Mike-D for his help with this. Show Your Support
|
Comments |
#142
|
|||
|
|||
attroll,
It seems you have a lot of navbar experience, so maybe you can save me some time as I haven't found anything on the best way to do this - I would like to move some of the existing menu items from navbar to navbar2. These items are from some of the installed mods from this forum and when you install them they are automatically inserted in the navbar - and these mods don't have any option in the ACP to redirect where the link appears. So the question is what needs to be edited to make this change (i.e.,change .xml files? revise templates?, etc?) Just looking for the easiest way to accomplish this. |
#143
|
||||
|
||||
Quote:
Quote:
|
#144
|
|||
|
|||
Thanks Attroll.
In my original navbar I have a link for vBExperience, but I'd like to delete it from there and add it to navbar 2. Here's my code for my original navbar Code:
<!-- nav buttons bar --> <div class="tborder" style="padding:$stylevar[cellspacing]px; border-top-width:0px"> <table cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <if condition="$show['member']"> <td class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td> </if> <if condition="$show['registerbutton']"> <td class="vbmenu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td> </if> $template_hook[navbar_buttons_left] <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td> <if condition="$vboptions['enablememberlist']"> <td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td> </if> <td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td> <if condition="$show['popups']"> <if condition="$show['searchbuttons']"> <if condition="$show['member']"> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td> </if> <td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td> </if> <if condition="$show['member']"> <td id="usercptools" class="vbmenu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td> </if> <else /> <if condition="$show['searchbuttons']"> <td class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td> <if condition="$show['member']"> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td> <else /> <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td> </if> </if> <td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td> <if condition="$show['member']"> <td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td> </if> </if> $template_hook[navbar_buttons_right] <if condition="$show['member']"> <td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td> </if> </tr> </table> </div> <!-- / nav buttons bar --> Many thanks! |
#145
|
||||
|
||||
Great Mod!
Question, I am trying to add a 2nd navbar2 (for a total of 3, original navbar, and 2 navbar2's) how can I accomplish this? I'm migrating both my forums to this and have started with my wife's site (he he) first. The reason for the 2nd navbar2 is that I like to place it at the bottom in the footer -- You can see an example on my forum that I've not updated to your mod yet due to wanting to get this working in the footer --> http://www.allthingsmoto.com/ (Having it in the footer is actually very very nice). I've tried adding $navbar2 to the footer, but it doesn't show for some reason. Would you be willing to tell me how or what I might need to change to make this work in the footer? |
#146
|
||||
|
||||
Quote:
Go you your Plugin Manager and remove the check mark from the following plugins: navbar3 plugin part #1 navbar3 plugin part #2 Now you will have to create a plugin Go to the Plugin Manager and click on Add New Plugin Product: vBulletin Hook Location: global_start Title: navbar2 top and bottom Plugin PHP Code: PHP Code:
Now put the following command in you footer: Find: PHP Code:
$navbar2 PS: You will still have to put the $navbar2 in the navbar template where you want it. |
#147
|
||||
|
||||
Daisyboo
I did not have time to look at you code tonight. I will try to look at it towmorrow. |
#148
|
||||
|
||||
Quote:
This works (what's below), but I'm not sure it's the best way to do it. Edit Plugin navbar2 plugin part #2a (Could be called navbar2 plugin part #2), which looks like this: PHP Code:
PHP Code:
Also, I'm not getting this to show on my vBBlog either... but I'm also not getting ads to show there either, so I'm thinking the problem with the blog is bigger than this mod... I am however going to try your method instead, and see if it works as well. |
#149
|
||||
|
||||
Thanks again. I edited your entry that I quoted just in case anyone else wants to do it. I'm a little OCD, so I had to do it.
Your method (of course) worked perfectly and is a little cleaner me thinks. However, I am no coder (more of a hack than anything), so take that with a grain of salt. Still didn't work for vBBlog, but again, I'm not blaming this mod, as I believe vBBlog is the problem. Thanks again for your Awesome support, as you really are a nice person with the best support I've encountered to date. BTW, anyone that wants to see this in action you can click on either link in my sig. |
#150
|
|||
|
|||
Thanks Attoll whenever you have the time, its much appreciated!
|
#151
|
|||
|
|||
Hi Attroll - just wondering if you had had a look yet
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|