Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Blog dropdown menu in navbar Details »»
Blog dropdown menu in navbar
Version: 1.00, by Taragon Taragon is offline
Developer Last Online: May 2017 Show Printable Version Email this Page

Category: vBulletin Blog - Version: 3.7.x Rating:
Released: 07-06-2008 Last Update: Never Installs: 25
Template Edits
Re-useable Code Translations  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-07-2008, 04:39 PM
S7rik3R's Avatar
S7rik3R S7rik3R is offline
 
Join Date: Mar 2007
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this mod only works for vbulletin blogs ?? or does it works towards wordpress as well.
Reply With Quote
  #3  
Old 07-07-2008, 04:54 PM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by S7rik3R View Post
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.
Reply With Quote
  #4  
Old 07-07-2008, 05:44 PM
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Location: Scotland
Posts: 1,229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you
Reply With Quote
  #5  
Old 07-09-2008, 02:57 AM
Cigarcritic Cigarcritic is offline
 
Join Date: Aug 2007
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great, thanks! Clicks installed
Reply With Quote
  #6  
Old 07-09-2008, 07:10 PM
jlew24asu jlew24asu is offline
 
Join Date: Nov 2006
Location: Chicago, IL USA
Posts: 702
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

installed! thank you
Reply With Quote
  #7  
Old 07-09-2008, 07:22 PM
theOZer's Avatar
theOZer theOZer is offline
 
Join Date: Mar 2007
Location: Colorado, USA
Posts: 212
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 08-29-2008, 10:09 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for suggesting it to vb. They will now have this default in the next update ^^
Reply With Quote
  #9  
Old 09-21-2008, 11:50 AM
Baldilocks's Avatar
Baldilocks Baldilocks is offline
 
Join Date: Jan 2008
Location: Delaware, USA
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by theOZer View Post
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.
Reply With Quote
  #10  
Old 10-15-2008, 07:40 PM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:44 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05380 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete