PDA

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


Taragon
07-06-2008, 10:00 PM
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 (https://vborg.vbsupport.ru/showthread.php?t=177774) by Princeton (https://vborg.vbsupport.ru/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-07-2008, 04:39 PM
Does this mod only works for vbulletin blogs ?? or does it works towards wordpress as well.

Taragon
07-07-2008, 04:54 PM
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-07-2008, 05:44 PM
Thank you :)

Cigarcritic
07-09-2008, 02:57 AM
Works great, thanks! Clicks installed

jlew24asu
07-09-2008, 07:10 PM
installed! thank you

theOZer
07-09-2008, 07:22 PM
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
08-29-2008, 10:09 PM
Thanks for suggesting it to vb. They will now have this default in the next update ^^

Baldilocks
09-21-2008, 11:50 AM
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
10-15-2008, 07:40 PM
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 (https://vborg.vbsupport.ru/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
10-16-2008, 08:36 PM
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 (https://vborg.vbsupport.ru/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
11-20-2008, 01:15 PM
Guests can't access the blog drop down menu. Anyway to fix it?

Borden
11-21-2008, 03:22 PM
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
11-21-2008, 05:40 PM
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
11-24-2008, 10:49 AM
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
12-08-2008, 10:53 AM
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