vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   vBulletin Blog - Blog dropdown menu in navbar (https://vborg.vbsupport.ru/showthread.php?t=184631)

Taragon 07-06-2008 10:00 PM

Blog dropdown menu in navbar
 
Blog dropdown menu in navbar
  • Creates a more easy way to navigate your vBulletin Blog product for your forum.

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

Code:

----------------------------
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 by Princeton)

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

Quote:

Originally Posted by S7rik3R (Post 1569250)
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

Quote:

Originally Posted by theOZer (Post 1571317)
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 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

Quote:

Originally Posted by yotsume (Post 1645838)
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 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

Quote:

Originally Posted by Borden (Post 1669336)
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 [minicode]$template_hook[navbar_buttons_left][/minicode] might have been moved by another template modification, or you have not simply replaced the edit by [minicode]$template_hook[navbar_buttons_left][/minicode] 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 [minicode]<if condition="$show['member']">[/minicode] and its closing tag ([minicode]</if>[/minicode])

wrang 11-24-2008 10:49 AM

Quote:

Originally Posted by Borden (Post 1669336)
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


All times are GMT. The time now is 06:43 AM.

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.01223 seconds
  • Memory Usage 1,759KB
  • 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
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete