![]() |
PM Quota by Usergroup Hack...
As requested by stu... and thanks to my man GoldKnight for the usual help of getting things squared away :)
What does this hack do? // +++++++++++++++++++++ Simply as the title states... it allows you to create seperate PM Quotas based upon usergroup. It's configurable in the Admin CP under the usergroup options -> private message options. Hope its useful and someone can Enjoy it ;) What to Do? // +++++++++++++++++++++ Queries to Run (1) File Modifications (11) Templates to Edit (1) As always hopefully this comes useful to some ppl ;) Enjoy... if you like this hack i'd be greatful if you clicked install... regards... g-force2k2 |
You are on a roll with this small but extremely useful hacks, my friend. :) Let me be the first to click install, and I will install it when I get home from work. Good job.
|
It s useful hack for me so....
/me install! Good job! :tup: |
This will give you a truer percentage reading on larger message quotas.
Code:
$pmperc = round(($allpm[messages] / $pmboxlimit) * 100,2); |
I don't set a limit on the quota but if I did this would be great ^^
|
yeah Boofo more accurate :p but for larger amounts the floor should do fine ;) round to two decimal places is good for smallter pm quotas... all in all i guess its a matter of preference ;) regards...
g-force2k2 |
The nice thing about round is that it will show whole percentages when the percentages are calculated that way. Also, there are Admins out there that will have smaller pm quotas for some of their usergroups. This just gives them an option, that's all. Accuracy will come into account on larger pm quotas, too, especially when you have some off numbers.
Quote:
|
Thanks g-force,
The hack was easy to install and seems to work great. This hack means I can offer additional benefits to contributing members. Not so important, But could this be altered to increase the message length allowed per user group? Thanks Again. |
im sure something could be worked out Stu... i'll take a look and add it to my large list of things to do ;) regards... and thanks... notice it could be trickier... but i haven't taken a look at the coding requirements yet...
g-force2k2 |
I absolutley love this hack! One question I am using the Improved PM folkder view and the guage in there is not working correctly. Normal members have 20 POM's and admins get 200 but the guage still says 50% when I have 10 pm's?
Does anyone know what I have to change? https://vborg.vbsupport.ru/showthrea...threadid=36764 |
All times are GMT. The time now is 06: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:
|