![]() |
Percentage of PM Quota Used
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 Code:
$bbuserinfo[pmpercent]% |
Screenshots??
|
Added one. :)
(of course the value can be placed anywhere in the template, that's just a quick example I drew up.) |
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. |
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. ;) |
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. |
any suggestions on the placement for:
$bbuserinfo[pmpercent]% ??? |
If you want an effect like the one in the screenshot, then open pm_messagelist and find this:
Code:
<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> Code:
<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> |
In case anyone else tries using this on vb 3.7.0 Gold, it didn't work for me.
|
It will be ported/updated shortly. ;)
|
All times are GMT. The time now is 03:42 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|