vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Continue display of percentage pm box full. (https://vborg.vbsupport.ru/showthread.php?t=167467)

Black Tiger 01-10-2008 09:44 PM

Continue display of percentage pm box full.
 
When your pm box is almost full, you get a line under the private messages, you have this line in the upper right corner:
Private Messages: Unread 0, Total 49.

But then it says something like (red color in this example):
Private Messages: Unread 0, Total 49.
Your pm box is 90% full

Now this is standard in vBulletin. But I would like to see this line all the time so for example when your pm box is 40% full that it says "your pm box is 40% used" (or "full").

However, on vbulletin.com they pointed me to here because it would be a hack.

I saw it somewhere on some forum, but can't remember where, so it could be also an existing hack, only if it is, I can't find it.

Can somebody help me to get this "percentage used" line displayed all the time or make a hack for it?

sinisterpain 01-10-2008 11:40 PM

You would have to edit the global.php file to change this
FIND:
Code:

if (($vbphrase['pmpercent_nav_compiled'] = number_format($vbulletin->userinfo['pmtotal'] / $vbulletin->userinfo['permissions']['pmquota'] * 100, 0)) >= 90)
CHANGE TO
Code:

if (($vbphrase['pmpercent_nav_compiled'] = number_format($vbulletin->userinfo['pmtotal'] / $vbulletin->userinfo['permissions']['pmquota'] * 100, 0)) >= 0)
As always I never recomend editing stock vb files.

Black Tiger 01-11-2008 12:39 AM

Great, that did the trick! Thank you very much!!!


All times are GMT. The time now is 01:53 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.01099 seconds
  • Memory Usage 1,711KB
  • 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
  • (2)bbcode_code_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