PDA

View Full Version : Continue display of percentage pm box full.


Black Tiger
01-10-2008, 09:44 PM
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:
if (($vbphrase['pmpercent_nav_compiled'] = number_format($vbulletin->userinfo['pmtotal'] / $vbulletin->userinfo['permissions']['pmquota'] * 100, 0)) >= 90)

CHANGE TO
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!!!