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!


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