Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Basic UserCP - Removal of Navbar Links tip Details »»
Basic UserCP - Removal of Navbar Links tip
Version: 1.00, by gakz gakz is offline
Developer Last Online: Mar 2014 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.1.2 Rating:
Released: 04-27-2011 Last Update: Never Installs: 6
Template Edits
Re-useable Code  
No support by the author.

This is my first and probably my only mod. Its an ultra basic UserCP. I am tired of the non-userCP stuff floating around, i like the old userCP dropdown from the 3.x series.

Removal of New Posts, Private Messages, Faq, Forum Actions, Community,and Quick Links :

Go to AdminCP -> Style Manager -> Edit Templates -> Navbar (id:3170)

Remove these codes...

New Posts:
PHP Code:
<vb:if condition="$show['searchbuttons']">
                        <
vb:if condition="$show['member']">
                        <
li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_Post">{vb:rawphrase new_posts_nav}</a></li>
                        <
vb:else />
                        <
li><a href="search.php?{vb:raw session.sessionurl}do=getdaily&amp;contenttype=vBForum_Post">{vb:rawphrase todays_posts}</a></li>
                        </
vb:if>
                    </
vb:if>
                    {
vb:raw template_hook.navbar_after_getnew
Faq:
PHP Code:
<li><a rel="help" href="faq.php{vb:raw session.sessionurl_q}" accesskey="5">{vb:rawphrase faq}</a></li>
                    {
vb:raw template_hook.navbar_after_faq
Forum Actions to Quick Links:
PHP Code:
<li class="popupmenu">
                        <
a href="javascript://" class="popupctrl">{vb:rawphrase forum_actions}</a>
                        <
ul class="popupbody popuphover">
                            <
li>
                                <
a href="{vb:raw $vboptions.vbforum_url}{vb:if "$vboptions['vbforum_url']", '/', ''}forumdisplay.php?{vb:raw session.sessionurl}do=markread&amp;markreadhash={vb:raw bbuserinfo.securitytoken}" onclick="return confirm('{vb:rawphrase mark_forums_read_confirm}')">{vb:rawphrase mark_forums_read}</a>
                            </
li>
                                                        <
vb:if condition="$show['member']">
                            <
li>
                                <
a href="profile.php?{vb:raw session.sessionurl}do=editoptions">{vb:rawphrase edit_options}</a>
                            </
li>
                            <
li>
                                <
a href="profile.php?{vb:raw session.sessionurl}do=editprofile">{vb:rawphrase edit_your_details}</a>
                            </
li>
                            </
vb:if>
                        </
ul>
                    </
li>
                    <
li class="popupmenu">
                        <
a href="javascript://" class="popupctrl" accesskey="3">{vb:rawphrase quick_links}</a>
                        <
ul class="popupbody popuphover">
                            <
vb:if condition="$show['member']">
                                <
li><a href="{vb:link subscription}" rel="nofollow">{vb:rawphrase subscribed_threads}</a></li>
                                <
li><a href="javascript://" onclick="window.open(getBaseUrl() + 'misc.php?{vb:raw session.sessionurl}do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">{vb:rawphrase open_contacts}</a></li>
                            </
vb:if>
                            <
vb:if condition="$vboptions['forumleaders']">
                            <
li><a href="showgroups.php{vb:raw session.sessionurl_q}" rel="nofollow">
        <
vb:if condition="$vb_suite_installed">
            {
vb:rawphrase view_site_leaders}
        <
vb:else />
            {
vb:rawphrase view_forum_leaders}
        </
vb:if>
    </
a></li>
                            </
vb:if>
                            {
vb:raw template_hook.navbar_quick_links_menu_pos1}
                            {
vb:raw template_hook.navbar_quick_links_menu_pos2}
                            {
vb:raw template_hook.navbar_quick_links_menu_pos3}
                            <
vb:if condition="$show['wollink']">
                                <
li><a href="online.php{vb:raw session.sessionurl_q}">{vb:rawphrase whos_online}</a></li>
                            </
vb:if>
                            {
vb:raw template_hook.navbar_quick_links_menu_pos4}
                        </
ul>
                    </
li

To add the Basic UserCP....
-What you want the link to say in the UserCP is between <a href="xxx"> and </a>
-The URL of the link only needs to be the domain/forum (forum location)/rest of url

Example: I want to link to the Memberlist. The full url is "http://www.xxxxxx.net/forum/memberlist.php" . I take what is after "forum/" and will use that to make the link, by pasting that after the <a href=" code.

Basic UserCP:
PHP Code:
<li class="popupmenu" id="threadtools">
               <
class="popupctrl" href="javascript://">UserCP</a>
               <
ul class="popupbody popuphover"
<
li><a href="search.php?do=getnew&contenttype=vBForum_Post">New Posts</a></li>
<
li><a href="private.php">Private Messages</a></li>
<
li><a href="subscription.php?folderid=0">Subscriptions</a></li>
<
li><a href="profile.php?do=editprofile">Edit Profile</a></li
<
li><a href="profile.php?do=editavatar">Edit Avatar</a></li>
<
li><a href="profile.php?do=editsignature">Edit Signature</a></li>
<
li><a href="profile.php?do=editoptions">Edit Settings</a></li>
<
li><a href="memberlist.php">Member List</a></li>
<
li><a href="misc.php?do=cchatbox">ChatBox Full</a></li>
<
li><a href="usercp.php">UserCP Main</a></li>
</
ul></li>
{
vb:raw template_hook.navbar_after_usercp


Another Vbulletin fix for the Navbar sub-links dropdown menu borders:



Find:
PHP Code:
.navtabs .popupbody li 
and:

PHP Code:
.navtabs .popupbody 
In the Vbulletin-chrome.css (id:9279) template

and replace

PHP Code:
.navtabs .popupbody {
    
border1px solid {vb:stylevar navbar_tab_background.backgroundColor};
    
background: {vb:stylevar navbar_tab_background.backgroundColor};
    
widthauto;
}

.
navtabs .popupbody li {
    
float:none;
    
border-top1px solid {vb:stylevar navbar_tab_background.backgroundColor};


with:

PHP Code:
.navtabs .popupbody {
    
border1px solid black {vb:stylevar navbar_tab_background.backgroundColor};
    
background: {vb:stylevar navbar_tab_background.backgroundColor};
    
widthauto;
}

.
navtabs .popupbody li {
    
float:none;
    
border-top1px solid black {vb:stylevar navbar_tab_background.backgroundColor};


Black is replaced with whatever color you want the border.




Enjoy!!!


-Cory


Main admin at www.properimage.net, my way of learning CSS and vbulletin coding

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 08-01-2015, 11:47 PM
Nocturnal222 Nocturnal222 is offline
 
Join Date: Dec 2006
Posts: 121
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

my navbar template doesnt have this
Reply With Quote
  #3  
Old 12-04-2015, 01:05 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And an image example would be nice.
Reply With Quote
Reply

Thread Tools

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: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.03784 seconds
  • Memory Usage 2,292KB
  • Queries Executed 17 (?)
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
  • (8)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete