Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Neat menu for header Details »»
Neat menu for header
Version: 1.00, by zascok zascok is offline
Developer Last Online: Jun 2013 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 4.2.0 Rating:
Released: 08-16-2012 Last Update: Never Installs: 27
Template Edits
Re-useable Code  
No support by the author.

I scratched my left ear by right hand, it helps thinking (true story) and here is what I thought: Why keep links in the header 2 of them (nickname and my Profile) are doing exactly the same thing. While there are no links to the other things that can be useful to reach any time. Someone should have done this way earlier but who if not you? Enough of lyrics. Forgive my English lets start.


What does it do?


It adds a drop-down menu on the forum header where most usefull links can be reached at any time from any place of the forum.

No additional java-scripts.
No additional css.
No translation necessary.
We are going to use builder in function, slides, styles.
This is why it's going to fit your forum stile, no matter what have you done: changing the colours or something else.

The only word you might wanna change and/or traslate is "Office"
================================================== ====

Go to the templates. Open the 'header' one. Back it up. Find this

Code:
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
				<li><a href="{vb:link member, {vb:raw bbuserinfo}}">{vb:rawphrase your_profile}</a></li>
and get rid of it.


Now copy and paste this in that empty space you have got

Code:
				<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="#">Office</a>

<ul class="popupbody popuphover">
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
<li><a href="private.php?{vb:raw session.sessionurl}do=newpm"> {vb:rawphrase send_private_message}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editprofilepic">{vb:rawphrase edit_profile_picture}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editavatar">{vb:rawphrase edit_avatar}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;starteronly=1&amp;contenttype=vBForum_Thread">{vb:rawphrase find_all_started_threads}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:rawphrase find_all_posts}</a></li>
</ul>
</li>
Hit the save button, obviously you can give it a better name that Office

And if you can think of any other links that you would like to see in there. O, well you know what to do now, just keep that ul li in proper order.

Enjoy, install, vote, buy me a coffee ... etc

P.S. If you want to get rid of Notification in header as well as I wanted, use this mode . Really nice job
https://vborg.vbsupport.ru/showthread.php?t=254231

Screenshots

File Type: jpg Untitled-1.jpg (61.1 KB, 0 views)
File Type: jpg 2.jpg (78.8 KB, 0 views)
File Type: jpg 3.jpg (69.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
rodriiverduguez, Toorak Times, WendM

Comments
  #12  
Old 08-22-2012, 05:19 PM
Syria BoY's Avatar
Syria BoY Syria BoY is offline
 
Join Date: Oct 2007
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work
I have a small comment Why do not you add an image expressive on the list ?You attached a photo caption explains the idea more
Attached Images
File Type: jpg add.jpg (70.4 KB, 0 views)
Reply With Quote
  #13  
Old 08-22-2012, 06:31 PM
Brandon Sheley's Avatar
Brandon Sheley Brandon Sheley is offline
 
Join Date: Mar 2005
Location: Google Kansas
Posts: 4,678
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice edits, thanks for sharing!
Reply With Quote
  #14  
Old 08-22-2012, 11:07 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Toorak Times View Post
Hi Zascok,

I can use links to mods like the Graphic editor and Tournaments to a community or say call it Tools drop down?
I don't really know. I don't use those modification on my forum. But as far as they are links you can add them and try
Code:
<li>your link</li>
Quote:
Originally Posted by Syria BoY View Post
Great work
I have a small comment Why do not you add an image expressive on the list ?You attached a photo caption explains the idea more
I'm a terrible graphic artist , if you have any image you want to add go ahead. The code is marked as reusable, enhance, enlarge do what you think can be better for you forum.

let's say if you place your icons into site_icons folder all you have to do is is add the image location into template

Code:
<li><img src="{vb:stylevar imgdir_siteicons}/my_icon.png" alt="the name" /><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
But be careful to don't brake the design, I'm not sure that menu ever was build to display the graphics
Reply With Quote
  #15  
Old 08-23-2012, 05:07 AM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that. It installed on my default skin but my Zen skin doesn't have that code in the header www.tooraktimes.com.au
Reply With Quote
  #16  
Old 08-23-2012, 08:41 AM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, sorry have no glue of that skin, the skin-designer might give you an idea how to do it.
Reply With Quote
  #17  
Old 08-27-2012, 05:07 AM
wilford brimley wilford brimley is offline
 
Join Date: Apr 2012
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks. works great.
Reply With Quote
  #18  
Old 10-19-2018, 03:40 AM
rodriiverduguez rodriiverduguez is offline
 
Join Date: Dec 2017
Location: Buenos Aires
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, 4.2.5
Attached Images
File Type: png mmgaming.png (49.5 KB, 0 views)
Reply With Quote
Благодарность от:
scottkoz20
  #19  
Old 10-19-2018, 01:14 PM
scottkoz20 scottkoz20 is offline
 
Join Date: Dec 2015
Location: Lewiston, NY
Posts: 344
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I added the "whats new" to the bottom of mine so I can remove this from the Menu Bar

I Bolded what I added to this

Code:
				<li class="popupmenu nonotifications" id="nonotifications">
<a class="popupctrl" href="#">CHANGE THE MENU NAME HERE</a>

<ul class="popupbody popuphover">
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
<li><a href="private.php?{vb:raw session.sessionurl}do=newpm"> {vb:rawphrase send_private_message}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editprofilepic">{vb:rawphrase edit_profile_picture}</a></li>
<li ><a href="profile.php?{vb:raw session.sessionurl}do=editavatar">{vb:rawphrase edit_avatar}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;starteronly=1&amp;contenttype=vBForum_Thread">{vb:rawphrase find_all_started_threads}</a></li>
<li><a href="search.php?{vb:raw session.sessionurl}do=finduser&amp;userid={vb:raw bbuserinfo.userid}&amp;contenttype=vBForum_Post&amp;showposts=1">{vb:rawphrase find_all_posts}</a></li>
<li><a href="activity.php">See All New Posts on SCF</a></li>
</ul>
</li>
Reply With Quote
Благодарность от:
rodriiverduguez
  #20  
Old 03-29-2023, 03:21 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works 4.2.5. thanks
Reply With Quote
  #21  
Old 04-09-2023, 12:01 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

working on 4.2.6. php 7.2
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 11:14 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.04738 seconds
  • Memory Usage 2,359KB
  • Queries Executed 28 (?)
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
  • (5)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (11)post_thanks_box
  • (5)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (5)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete