vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How to remove total pm from notification box (https://vborg.vbsupport.ru/showthread.php?t=288807)

Dan49 10-09-2012 02:24 AM

How to remove total pm from notification box
 
1 Attachment(s)
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)
HTML Code:

<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
Code:

$vbphrase[total_x_nav_compiled]
leaving it as
Code:

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.
Code:

<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
Code:

<a href="private.php{3}">Private Messages</a>: {1}, {2}.
to
Code:

<a href="private.php{3}">Private Messages</a>: {1}.
No code needed to be deleted. Thanks for the help.


All times are GMT. The time now is 03:15 PM.

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.01009 seconds
  • Memory Usage 1,733KB
  • 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
  • (5)bbcode_code_printable
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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