View Full Version : PM Quota by Usergroup Hack...
g-force2k2
09-03-2002, 10:00 PM
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
Erwin
09-04-2002, 12:55 AM
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.
Goldknight
09-04-2002, 12:57 AM
It s useful hack for me so....
/me install!
Good job! :tup:
Boofo
09-04-2002, 04:34 AM
This will give you a truer percentage reading on larger message quotas.
$pmperc = round(($allpm[messages] / $pmboxlimit) * 100,2);
[D]Vincent
09-04-2002, 04:55 AM
I don't set a limit on the quota but if I did this would be great ^^
g-force2k2
09-04-2002, 11:12 AM
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
Boofo
09-04-2002, 11:29 AM
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.
Originally posted by g-force2k2
yeah Boofo more accurate :p but for larger amounts the floor should do fine ;) round to two decimal places is good for smaller pm quotas... all in all i guess its a matter of preference ;) regards...
g-force2k2
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.
g-force2k2
09-08-2002, 03:27 PM
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
ryancooper
11-26-2002, 12:43 PM
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/showthread.php?s=&threadid=36764
Nitesh
02-06-2003, 02:04 PM
Hi, ive tryed to get this Improved PM folder view, but i cant get it to show the true % either, anyone know how?
Kars10
02-08-2003, 07:09 AM
Have installed that hack.
But one thing. How to set the limit in the vbulletin Options?
In the usergroups i have set different limits but in my vboptions are only one limit?? Should i set this to '0'?
Thanks in advance :)
* Kars10 installed
Nitesh
02-08-2003, 11:13 AM
Thanks ppl, got it working now..
Kars10, yeah just set the vb options limit to 0.
kr?mel
03-03-2003, 03:43 PM
goooood hack :D
RetroDreams
05-19-2003, 05:40 PM
I also have the Improved PM Folderview - Can anyone post the code required to integrate this into that?
RetroDreams
05-19-2003, 06:58 PM
Nevermind... got it working. =)
Boofo
05-19-2003, 07:03 PM
g-force2k2, how would I incorporate this hack into this code out of the root/global.php for the "full pm popup" hack?
elseif($bbuserinfo['pmpopupfull']) {
$pms = $DB_site->query_first("SELECT COUNT(privatemessageid) AS messages FROM privatemessage WHERE userid='$bbuserinfo[userid]'");
if (($pmquota > 0) && ($pms[messages] == $pmquota) && ($bbuserinfo[usergroupid] != 6)) {
$fullpm=1;
eval("\$headpmfull = \"".gettemplate('head_pmfull')."\";");
Boofo
05-26-2003, 06:38 PM
g-force2k2, are you supporting this hack at all?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.