This mod allows u to ban a user from using the pm system
[size=14px]UPDATE 12/07/2011 for those having problems with the submit going back to no i forgot 1 code u need to put this in[/size]
Admin-Modtasks.php
Around line 72
Find
[size=14px]UPDATE 12/07/2011 for those having problems with the submit going back to no i forgot 1 code u need to put this in[/size]
Admin-Modtasks.php
Around line 72
Find
UPDATE users SET
Find
warned=$warned,
add after
mailbanned=$mailbanned,ALTER TABLE `users` ADD `mailbanned` ENUM( 'yes', 'no' ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'no'
Open account-details.php
find
$warned = $user["warned"] == 'yes';
Add Below
$mailbanned = $user["mailbanned"] == 'yes';
Find
print("<tr><td>Warned: </td><td align=left><input name=warned value=yes type=radio" . ($warned ? " checked" : "") . ">Yes <input name=warned value=no type=radio" . (!$warned ? " checked" : "") . ">No</td></tr>\n");
Add bellow
print("<tr><td>mail Banned: </td><td align=left><input name=mailbanned value=yes type=radio" . ($mailbanned ? " checked" : "") . ">Yes <input name=mailbanned value=no type=radio" . (!$mailbanned ? " checked" : "") . ">No</td></tr>\n");
Open mailbox.php
Find
$type = "Overview";
}
Add bellow
////////////////////////bann PM by foz ///////////////////////////////////////////////////
$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND mailbanned='no' LIMIT 1") or err('Tracker error (1)');
if (mysql_num_rows($subbanned) < 1){
stdhead("Pm Banned");
begin_frame("You are Banned from Sending Pm's ");
echo "<center><br><BR><B>A Admin has banned you from Sending Pm's.<br><b>";
echo "<br>If you have any complaints, contact us :<a href=mailto:". $site_config['SITEEMAIL'] .">". $site_config['SITEEMAIL'] ."</a><br><BR></center>";
end_frame();
stdfoot();
exit;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
Open admin-modtasks.php
Find
warned='$warned',
Add after
mailbanned='$mailbanned',
find
$warned = $_POST["warned"];
after add
$mailbanned = $_POST["mailbanned"];
