vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Change your UserCP Navbar with the New UserCP Dropdown Menu! (https://vborg.vbsupport.ru/showthread.php?t=193528)

Nоrman 10-12-2008 10:00 PM

Change your UserCP Navbar with the New UserCP Dropdown Menu!
 
Change your UserCP Navbar with the New UserCP Dropdown Menu!
by vB-Italy.org - Italian vBulletin Support Forum



Versione Italiana (italian version): Nuovo Menu a Tendina per il tuo Pannello Utente!.

Using this product you will change your current UserCP navbar to the new UserCP Dropdown Menu. It will be automatically integrated, it will require no further changes. Just import this product and your usercp navbar will be reorganized with this new style. Let me know what do you think about this new product!


Download the attached product and import it using your AdminCp.
(AdminCp -> Plugin & Products -> Manage Products -> Import Product -> Browse New UserCP Dropdown Menu (product).xml and press Import)

Also, if you want to change the phrase that is showing under the new navbar, you can do that in yor AdminCp too.
(AdminCp -> Languages & Phrases -> Search in Phrases -> usercp_nav_welcomemessage -> (Phrase Variable Name Only) -> Search -> Edit)

Nоrman 10-13-2008 03:49 PM

How do I add/remove links to the new UserCP Dropdown Menu?

This product will change/replace your default USERCP_SHELL template used in your usercp.php file with the new usercp_dropdown_shell template. Then, if you'd like to change, add or remove links, you will have to go trought your admincp and edit that new template.
(AdminCp -> Styles & Templates -> Style Manager -> Edit Templates (from the drop down menu) -> usercp_dropdown_shell -> Edit)

Now, check its code; it starts declaring the main menu links.. then it declare the popups content.

Main menu example Link:
Code:

<td id="yourprofile" class="tcat">
    <a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">
    $vbphrase[your_profile]</a>
    <script type="text/javascript">
        vbmenu_register("yourprofile");
    </script>
</td>

This is the 'Your Profile' link. Check this thread: How To Add Drop Down Menus To Your Navbar; this will work well also in this part of your forum, the UserCP page. You will learn and understand how drop down menu(s) are created. Now, let's say you want to add a new menu link with a new drop down menu.

For example, you can add this code below the one posted above:
Code:

<td id="new_menu" class="tcat">
    <a href="new_menu-link">
    New Menu</a>
    <script type="text/javascript">
        vbmenu_register("new_menu");
    </script>
</td>

Changing the blue bold code as you want. Remember: the td id and the vbmenu_register need to be the same (as it's specified on the Kerry-Anne article I have linked above). Now, you'd need to create the drop down menu with your own content.

Scroll down your usercp_dropdown_shell template code, searching for this:
Code:

<!-- ### -->
This declare the POPUPs end. Above this, add:
Code:

<div class="vbmenu_popup" id="new_menu_menu" style="display:none">
<table cellpadding="4" cellspacing="1" border="0">

        <tr>
            <td class="thead">New Menu</td>
        </tr>
        <tr>
            <td class="vbmenu_option" title="nohilite">
<a class="smallfont" href="new_menu-row-link">New Menu Row</a>
</td>
</tr>

</table>
</div>

As above, changing the blue bold code to fit your needs. As above, using the same id specified above (with _menu at the end).


Now close & save your template. You're done!

Neutral Singh 10-13-2008 03:52 PM

Really Cool!! :)

Glynn58 10-13-2008 05:15 PM

Loving this mod Norman just one thing its not showing VBblog or have i missed it somewhere

Nоrman 10-13-2008 05:30 PM

Quote:

Originally Posted by Glynn58 (Post 1644267)
Loving this mod Norman just one thing its not showing VBblog or have i missed it somewhere

I have't included it just becouse I am not a vBulletin Blog owner, so I can't use it on my local board.
Anyway, if you want you can send me your USERCP_SHELL template, and I will add it soon as possible.

Glynn58 10-13-2008 05:38 PM

Quote:

Originally Posted by Nоrman (Post 1644282)
I have't included it just becouse I am not a vBulletin Blog owner, so I can't use it on my local board.
Anyway, if you want you can send me your USERCP_SHELL template, and I will add it soon as possible.

Thanks Norman i sorted it by adding it to my main Nav-Bar.

I changed the phrase - from ' Welcome in ' to ' Welcome to ' and ' Informations ' to ' Information '

Looks great :up:

jambo_1969 10-13-2008 05:39 PM

Nice...

However I changed the wording in the Phrase Box...
Quote:

Welcome to your NEW Control Panel, {1}. You can manage your settings, edit your information and much more!<br />
Select from the above options, then select from the drop down menu for more options.

Nоrman 10-13-2008 05:42 PM

You know, I'm italian. :)
Feel free to change the phrase anyway you want it.

jambo_1969 10-13-2008 05:42 PM

Woot - liking the fact I get full page Private Message display now :)

Great stuff !

logicuk 10-13-2008 05:52 PM

I have a addon so i can search my own pm inbox

forums/private.php?pmsearch=1

but this link dont show up anymore


All times are GMT. The time now is 02:09 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.01474 seconds
  • Memory Usage 1,749KB
  • 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
  • (4)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete