View Full Version : Private Messages Enhancements - Percentage of PM Quota Used
Gray Matter
01-14-2007, 10:00 PM
This is probably the simplest and most useless modification ever created, but here it is. All it does is calculate the percentage of a user's private messaging quota he/she has used.
To use, just upload the plugin XML file and add
$bbuserinfo[pmpercent]%anywhere in the "pm_messagelist" template.
Qwest
01-15-2007, 01:23 AM
Screenshots??
Gray Matter
01-15-2007, 02:03 AM
Added one. :)
(of course the value can be placed anywhere in the template, that's just a quick example I drew up.)
Hornstar
01-15-2007, 11:58 AM
thought of an update for you ^^
in the admincp, have an option for us to set this. show remaining % or show used %
This is just a thought I had
however beware that vbulletin already has this by default for when you get to 90% used capacity so not sure if you will have 2 %'s showing which would look weird.
Thanks.
Gray Matter
01-15-2007, 01:21 PM
Thanks for the suggestion, it's a good idea and I'll try to include that very soon. :)
Hmm.. I forgot about the default vBulletin, but I'm sure that I can find a way to combat that problem. ;)
Saulie
01-15-2007, 01:53 PM
Thanks, I like simple addons like this, will come in very handy.
Also had another thaught for other people that are using this, they could also put it into their navbar, that would be really useful, when you have just logged in to see how much space you have left.
yoyoyoyo
11-01-2007, 01:10 AM
any suggestions on the placement for:
$bbuserinfo[pmpercent]%
???
Gray Matter
11-02-2007, 11:22 PM
If you want an effect like the one in the screenshot, then open pm_messagelist and find this:
<td><phrase 1="$foldername" 2="$totalmessages" 3="$bbuserinfo[pmtotal]" 4="$permissions[pmquota]">$vbphrase[x_contains_y_z_messages_of_xx]</phrase> (<a href="private.php?do=emptyfolder&folderid=$folderid"><em>$vbphrase[empty_folder]</em></a>)</td>
Then, replace that with:
<td><phrase 1="$foldername" 2="$totalmessages" 3="$bbuserinfo[pmtotal]" 4="$permissions[pmquota]">$vbphrase[x_contains_y_z_messages_of_xx]</phrase> [<strong>$bbuserinfo[pmpercent]%</strong>] (<a href="private.php?do=emptyfolder&folderid=$folderid"><em>$vbphrase[empty_folder]</em></a>)</td>
SirFlash
05-15-2008, 04:57 PM
In case anyone else tries using this on vb 3.7.0 Gold, it didn't work for me.
Gray Matter
05-16-2008, 12:07 AM
It will be ported/updated shortly. ;)
Works perfectly on 3.7.3, thanks.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.