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
  #12  
Old 10-16-2008, 08:36 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 yotsume View Post
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
Reply With Quote
  #13  
Old 11-20-2008, 01:15 PM
Borden Borden is offline
 
Join Date: Aug 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guests can't access the blog drop down menu. Anyway to fix it?
Reply With Quote
  #14  
Old 11-21-2008, 03:22 PM
Borden Borden is offline
 
Join Date: Aug 2007
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borden View Post
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?
Reply With Quote
  #15  
Old 11-21-2008, 05:40 PM
Taragon's Avatar
Taragon Taragon is offline
 
Join Date: Sep 2007
Location: The Netherlands
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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])
Reply With Quote
  #16  
Old 11-24-2008, 10:49 AM
wrang wrang is offline
 
Join Date: Oct 2004
Location: Sweden
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Borden View Post
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
Reply With Quote
  #17  
Old 12-08-2008, 10:53 AM
thedudleys thedudleys is offline
 
Join Date: Feb 2008
Location: Umatilla, Fl
Posts: 60
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
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 04:42 AM.


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.08780 seconds
  • Memory Usage 2,275KB
  • 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
  • (3)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
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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_postinfo_query
  • fetch_postinfo
  • 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