vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Basic UserCP - Removal of Navbar Links tip (https://vborg.vbsupport.ru/showthread.php?t=262756)

gakz 04-27-2011 10:00 PM

Basic UserCP - Removal of Navbar Links tip
 
1 Attachment(s)
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

Nocturnal222 08-01-2015 11:47 PM

my navbar template doesnt have this

Skyrider 12-04-2015 01:05 PM

And an image example would be nice.


All times are GMT. The time now is 06:00 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.01441 seconds
  • Memory Usage 1,794KB
  • 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
  • (8)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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