View Full Version : How to remove total pm from notification box
Dan49
10-09-2012, 02:24 AM
Hello all. I need as much space as possible to the left of the notification box (not sure if that's what it's called), for a banner inside the navbar. How do I remove the "total" private messages statistic from the notification box leaving only Private messages: unread 0. Like in the attached pic. Thanks.
ForceHSS
10-09-2012, 02:59 AM
click private message link you will see inbox and sent items pick them all scroll down and delete them
Dan49
10-09-2012, 04:34 AM
Thanks. But I'm asking which code to remove or edit, to permanently stop displaying the statistic "total" private messages. Not how to delete messages.
Simon Lloyd
10-10-2012, 05:49 AM
edit the navbar template, it will be this code (or you can edit the phrase)<if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if>
Dan49
10-11-2012, 12:38 PM
Thanks.
If I remove this section of code $vbphrase[total_x_nav_compiled]leaving it as 2=""what I see in the notification box is:
Private messages: unread 0, .
Is that a reasonable way of doing it? And if so how can I remove the coma and space between the unread messages number and the period.
kpmedia
10-14-2012, 08:49 PM
There's more code to be removed. Search above the section you deleted.
It's there. :)
Dan49
10-19-2012, 03:07 AM
I can't figure this out. Here's the code in the navbar template, where I'm pretty sure the editing needs to be done. Can someone please highlight in red what I need to remove.
<if condition="$show['member']">
<td class="alt2" nowrap="nowrap">
<div class="smallfont">
<strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br />
<!-- <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase> -->
<if condition="$show['notifications']">
<div><span id="notifications"><a href="usercp.php$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>
<if condition="$show['popups']">
<script type="text/javascript"> vBmenu.register("notifications"); </script>
<else />
<script type="text/javascript" src="clientscript/vbulletin_notifications_nopopups.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript"> vBulletin.register_control("vB_Notifications_NoPopups", "notifications"); </script>
</if>
<else /><if condition="$show['pmstats']">
<div><phrase 1="$vbphrase[unread_x_nav_compiled]"
2="$vbphrase[total_x_nav_compiled]"
3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
</if></if>
Max Taxable
10-19-2012, 03:32 AM
You need to edit the vB PHRASE
Dan49
10-19-2012, 03:42 AM
Got it.
Edit phrase private_messages_nav from <a href="private.php{3}">Private Messages</a>: {1}, {2}.to<a href="private.php{3}">Private Messages</a>: {1}.No code needed to be deleted. Thanks for the help.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.