Back to vBulletin 4.x Add-ons

Basic UserCP - Removal of Navbar Links tip
Mod Version: 1.00, by gakz

vB Version: 4.1.2 Rating: (1 vote - 5.00 average) Installs: 7
Released: 28 Apr 2011 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

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 http://www.properimage.net, my way of learning CSS and vbulletin coding

Download

No files for download.

Similar Mods

End-User Options Change your UserCP Navbar with the New UserCP Dropdown Menu! vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024