Log in

View Full Version : Forum Display Enhancements - Basic UserCP - Removal of Navbar Links tip


gakz
04-27-2011, 10:00 PM
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:
<vb:if condition="$show['searchbuttons']">
<vb:if condition="$show['member']">
<li><a href="search.php?{vb:raw session.sessionurl}do=getnew&amp;contenttype=vBForum_P ost">{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:
<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:
<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:ra w 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','buddylis t','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:
<li class="popupmenu" id="threadtools">
<a 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:
.navtabs .popupbody li

and:

.navtabs .popupbody

In the Vbulletin-chrome.css (id:9279) template

and replace
.navtabs .popupbody {
border: 1px solid {vb:stylevar navbar_tab_background.backgroundColor};
background: {vb:stylevar navbar_tab_background.backgroundColor};
width: auto;
}

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

}

with:

.navtabs .popupbody {
border: 1px solid black {vb:stylevar navbar_tab_background.backgroundColor};
background: {vb:stylevar navbar_tab_background.backgroundColor};
width: auto;
}

.navtabs .popupbody li {
float:none;
border-top: 1px 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.