vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Home Enhancements - Neat menu for header (https://vborg.vbsupport.ru/showthread.php?t=286769)

zascok 08-16-2012 10:00 PM

Neat menu for header
 
1 Attachment(s)
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

zascok 08-17-2012 05:57 PM

Reserved? :rolleyes:

joeychgo 08-19-2012 06:27 AM

Nice, installed

ahobilam 08-20-2012 05:00 PM

Installed and nominated.
I suggest, instead of "office"
the display menu may be like "My Account" or "Manage"

zascok 08-20-2012 06:38 PM

Quote:

Originally Posted by ahobilam (Post 2358521)
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.

ProFifaLeagues 08-20-2012 09:12 PM

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?

zascok 08-21-2012 08:43 AM

Quote:

Originally Posted by ProFifaLeagues (Post 2358589)
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>

rfi 08-22-2012 08:37 AM

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?

zascok 08-22-2012 01:30 PM

Quote:

Originally Posted by rfi (Post 2358950)
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.

Toorak Times 08-22-2012 04:11 PM

Hi Zascok,

I can use links to mods like the Graphic editor and Tournaments to a community or say call it Tools drop down?

Syria BoY 08-22-2012 05:19 PM

1 Attachment(s)
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

Brandon Sheley 08-22-2012 06:31 PM

nice edits, thanks for sharing!

zascok 08-22-2012 11:07 PM

Quote:

Originally Posted by Toorak Times (Post 2359057)
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 (Post 2359074)
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

Toorak Times 08-23-2012 05:07 AM

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

zascok 08-23-2012 08:41 AM

Hi, sorry have no glue of that skin, the skin-designer might give you an idea how to do it.

wilford brimley 08-27-2012 05:07 AM

thanks. works great.

rodriiverduguez 10-19-2018 03:40 AM

1 Attachment(s)
thanks, 4.2.5
https://vborg.vbsupport.ru/attachmen...1&d=1539927602

scottkoz20 10-19-2018 01:14 PM

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>


oldfan 03-29-2023 03:21 AM

Works 4.2.5. thanks

oldfan 04-09-2023 12:01 AM

working on 4.2.6. php 7.2


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

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.01235 seconds
  • Memory Usage 1,770KB
  • 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
  • (6)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete