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
  #2  
Old 08-17-2012, 05:57 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Reserved?
Reply With Quote
  #3  
Old 08-19-2012, 06:27 AM
joeychgo's Avatar
joeychgo joeychgo is offline
 
Join Date: Mar 2004
Location: Chicago, IL
Posts: 933
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice, installed
Reply With Quote
  #4  
Old 08-20-2012, 05:00 PM
ahobilam's Avatar
ahobilam ahobilam is offline
 
Join Date: Aug 2011
Location: Chennai, India
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and nominated.
I suggest, instead of "office"
the display menu may be like "My Account" or "Manage"
Reply With Quote
  #5  
Old 08-20-2012, 06:38 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ahobilam View Post
Installed and nominated.
I suggest, instead of "office"
the display menu may be like "My Account" or "Manage"
Thanks. It's up to, I'm not using English on my board, so 'office' was the first think I could think of.
Reply With Quote
  #6  
Old 08-20-2012, 09:12 PM
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Location: Uk
Posts: 1,191
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about if you wish to keep the Links already there and not remove them but add this alongside them So it could be used with other needed links ????
Is there a place inside the code of the header template to add it for it to show this way?
Reply With Quote
  #7  
Old 08-21-2012, 08:43 AM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ProFifaLeagues View Post
What about if you wish to keep the Links already there and not remove them but add this alongside them So it could be used with other needed links ????
Is there a place inside the code of the header template to add it for it to show this way?

In that case , don't remove the lines, place the code under or before those lines

but remove this 1st line from the menu to don't keep double links
Code:
<li><a href="usercp.php{vb:raw session.sessionurl_q}">{vb:rawphrase user_control_panel}</a></li>
Reply With Quote
Благодарность от:
ProFifaLeagues
  #8  
Old 08-22-2012, 08:37 AM
rfi rfi is offline
 
Join Date: Jul 2009
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if i want to move this menu to below the nev bar??? like the sub manu (calendar, Quicklinks etc) are at left side and the manu u are editing is on right side in the same position how to do that?
Reply With Quote
  #9  
Old 08-22-2012, 01:30 PM
zascok zascok is offline
 
Join Date: Jul 2010
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rfi View Post
if i want to move this menu to below the nev bar??? like the sub manu (calendar, Quicklinks etc) are at left side and the manu u are editing is on right side in the same position how to do that?
in case of 4.2 you put the links thought Navigation Manager and give the names but I'm not sure it will work from there.
Reply With Quote
  #10  
Old 08-22-2012, 04:11 PM
Toorak Times's Avatar
Toorak Times Toorak Times is offline
 
Join Date: Jan 2011
Posts: 436
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Zascok,

I can use links to mods like the Graphic editor and Tournaments to a community or say call it Tools drop down?
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 02:50 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.09563 seconds
  • Memory Usage 2,334KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (3)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
  • (10)post_thanks_box
  • (4)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (3)postbit_attachment
  • (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
  • 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