PDA

View Full Version : vBulletin Blog - Blog dropdown menu in navbar


Taragon
07 Jul 2008, 17:37
Blog dropdown menu in navbar


Creates a more easy way to navigate your vBulletin Blog product for your forum.


Demo: http://www.letsgather.net/

----------------------------
navbar

FIND
----------------------------

$template_hook[navbar_buttons_left]

----------------------------
REPLACE with:
----------------------------

<if condition="$vbulletin->products['vbblog']">
<td id="blog_menu" class="vbmenu_control"><a href="$show[nojs_link]#blog_menu">$vbphrase[blogs]</a> <script type="text/javascript"> vbmenu_register("blog_menu"); </script></td>
</if>

----------------------------
FIND:
----------------------------

</table>
</div>
<!-- / user cp tools menu -->

----------------------------
ADD after:
----------------------------

<!-- blog_menu -->
<div class="vbmenu_popup" id="blog_menu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead"><a href="blog.php">$vbphrase[blogs]</a></td></tr>
<tr><td class="vbmenu_option"><a href="blog.php?do=bloglist">Blog Directory</a></td></tr>
<tr><td class="vbmenu_option"><a href="blog.php?do=bloglist&blogtype=best">Best Blogs</a></td></tr>
<tr><td class="vbmenu_option"><a href="blog.php?do=list&blogtype=best">Best Entries</a></td></tr>
<tr><td class="vbmenu_option"><a href="blog_search.php?do=search">Find Blogs</a></td></tr>
</table>
</div>
<!-- / blog_menu -->

----------------------------
Done!

Please keep in mind also some other mods are using the $template_hook[navbar_buttons_left] hook. (vBulletin Project Tools, GTUserCP Interface + UserCP navbar menu (http://www.vbulletin.org/forum/showthread.php?t=177774) by Princeton (http://www.vbulletin.org/forum/member.php?u=925))

By removing this, also all other mods/tabs will reposition this same way and need to be manually added after. I currently havenít found a working solution for this yet.

Also keep in mind this template modification is currently unphrased. Feel free to do this if you prefer.

All the best,

Cor

S7rik3R
07 Jul 2008, 17:39
Does this mod only works for vbulletin blogs ?? or does it works towards wordpress as well.

Taragon
07 Jul 2008, 17:54
Does this mod only works for vbulletin blogs ?? or does it works towards wordpress as well.

Hello S7rik3R,

The modification as shown above works only with vB Blog, however is easy adjustable.
There also is quite a large guide about creating extra menus for vBulletin at vBulletin.com if you would like to know more about this.

Gemma
07 Jul 2008, 18:44
Thank you :)

Cigarcritic
09 Jul 2008, 03:57
Works great, thanks! Clicks installed

jlew24asu
09 Jul 2008, 20:10
installed! thank you

theOZer
09 Jul 2008, 20:22
I have hacks 'New Thread' and 'All Albums' installed and this navbar template change, replacing $template_hook[navbar_buttons_left] completely trashed these 2 hacks off my navbar. They're now gone.

Hornstar
29 Aug 2008, 23:09
Thanks for suggesting it to vb. They will now have this default in the next update ^^

Baldilocks
21 Sep 2008, 12:50
I have hacks 'New Thread' and 'All Albums' installed and this navbar template change, replacing $template_hook[navbar_buttons_left] completely trashed these 2 hacks off my navbar. They're now gone.

Yep, I ran into the same problem.

yotsume
15 Oct 2008, 20:40
I do not see why we have to have a separate mod for making a blog drop down menu. This can be achieved already with full customization using this hack: Advanced Navbar Links (http://www.vbulletin.org/forum/showthread.php?t=120517) to create the drop menu or any menu you want.

You can use full permissions per link and menu as well as images next to the links. Look at my attached screen shot. Even though the Advanved Navbar Links hack says vb.3.6x it works perfect on vb3.7x!

Anyway this drop menu I guess is useful for people who don't use the ANL hack which is crazy in my mind. Should be standard code in VB! It gives you full control of your navbar!

Taragon
16 Oct 2008, 21:36
I do not see why we have to have a separate mod for making a blog drop down menu. This can be achieved already with full customization using this hack: Advanced Navbar Links (http://www.vbulletin.org/forum/showthread.php?t=120517) to create the drop menu or any menu you want.

You can use full permissions per link and menu as well as images next to the links. Look at my attached screen shot. Even though the Advanved Navbar Links hack says vb.3.6x it works perfect on vb3.7x!

Anyway this drop menu I guess is useful for people who don't use the ANL hack which is crazy in my mind. Should be standard code in VB! It gives you full control of your navbar!

I have to admit I don’t know much about the link you gave me. It looks ok though, so if this helps you sorting your questions, that’s more than fine by me.

I hope you do understand this is a template edit, not a mod like you say it is. Having my own forums I’d like to do everything from scratch, like this is just an example I enjoy at my forums and wished to share.
Also, when looking at the new vBBlog it seems (even though there is a small bug within it) I'm not the only one.

The main reason why I posted this as a template also isn’t I don’t know how to make it a product, but because it’s much cleaner than one. It simply does what it does, and doesn’t add any unneeded (for my forums that is) features.

Please call me (or my example) crazy if you like, or use an overdosed use of exclamation marks, but like my statement above says, I don’t really care much ;)

Borden
20 Nov 2008, 14:15
Guests can't access the blog drop down menu. Anyway to fix it?

Borden
21 Nov 2008, 16:22
Guests can't access the blog drop down menu. Anyway to fix it?

I think my problem is that I have to set the correct permissions. Any ideas?

Taragon
21 Nov 2008, 18:40
Hello Borden,

Currently Iím running vB Blog 2.0.0 Beta 4, which has its own dropdown menue, therefore I canít really tell for sure if my reply would be correct.

I think your $template_hook[navbar_buttons_left] might have been moved by another template modification, or you have not simply replaced the edit by $template_hook[navbar_buttons_left] at all.

This last thing also doesnít really matter. The main thing I youíll have to do is to keep your template edit outside of <if condition="$show['member']"> and its closing tag (</if>)

wrang
24 Nov 2008, 11:49
Guests can't access the blog drop down menu. Anyway to fix it?

I have the same problem

Guest can not click on the link but when member do it works

thedudleys
08 Dec 2008, 11:53
an easier way to do this is to go to the blog_navbar_link in your defualt skin and copy it to whatever skin your using ;) i used it and it worked perfectly