Vincent]I'm not 100% sure this will work but try this.
Open vb/private.php and find:
PHP Code:
if ($pmquota>0 and $touserinfo[usergroupid] != 6 and $bbuserinfo[usergroupid] != 6) {
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");
if ($msgcount[messages]>=$pmquota) {
// mailbox full. email user and display error
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
eval("standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
exit;
}
}
Replace that with:
PHP Code:
if ($pmquota>0 and $touserinfo[usergroupid] <= 4 and $bbuserinfo[usergroupid] <= 4) {
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");
if ($msgcount[messages]>=$pmquota) {
// mailbox full. email user and display error
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
eval("standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
exit;
}
} elseif ($pmquota>0 and ($touserinfo[usergroupid] == 5 or $touserinfo[usergroupid] == 7) and ($bbuserinfo[usergroupid] == 5 and $bbuserinfo[usergroupid] == 7)) {
$msgcount = $DB_site->query_first("SELECT COUNT(*) AS messages FROM privatemessage WHERE userid=$touserinfo[userid]");
if ($msgcount[messages]>=100) {
// mailbox full. email user and display error
eval("\$emailmsg = \"".gettemplate("email_pmboxfull",1,0)."\";");
eval("\$emailsubject = \"".gettemplate("emailsubject_pmfullbox",1,0)."\";");
mail($touserinfo[email],$emailsubject,$emailmsg,"From: \"$bbtitle Mailer\" <$webmasteremail>");
eval("standarderror(\"".gettemplate("error_pmfullmailbox")."\");");
exit;
}
}
This might not work though.