SQL
ALTER TABLE users ADD `commentbanned` CHAR(3) NOT NULL DEFAULT 'no' AFTER `forumbanned`;
account-details.php
find
$forumbanned = $user["forumbanned"] == 'yes';
add after
$commentbanned = $user["commentbanned"] == 'yes';
find
print("<tr><td>".T_("FORUM_BANNED").": </td><td align='left'><input name='forumbanned' value='yes' type='radio' " . ($forumbanned ? " checked='checked'" : "") . " />Yes <input name='forumbanned' value='no' type='radio' " . (!$forumbanned ? " checked='checked'" : "") . " />No</td></tr>\n");
add after
print("<tr><td>Comments Banned: </td><td align='left'><input name='commentbanned' value='yes' type='radio' " . ($commentbanned ? " checked='checked'" : "") . ">Yes <input name='commentbanned' value='no' type='radio' " . (!$commentbanned ? " checked='checked'" : "") . " />No</td></tr>\n");
admin-modtasks.php
find
$forumbanned = sqlesc($_POST["forumbanned"]);
add after
$commentbanned = sqlesc($_POST["commentbanned"]);
find in the big query
forumbanned=$forumbanned,
change for
forumbanned=$forumbanned, commentbanned=$commentbanned,
comments.php
find
begin_frame(T_("COMMENTS"));
change for
if($CURUSER["commentbanned"]=="yes")
show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);
else
{
begin_frame(T_("COMMENTS"));
find
end_frame();
stdfoot();
change for
end_frame();
}
stdfoot();
torrents-details.php
find
begin_frame(T_("COMMENTS"));
change for
if($CURUSER["commentbanned"]=="yes")
show_error_msg("Error","You was banned to use comments.<br />Contact Staff!",0);
else
{
begin_frame(T_("COMMENTS"));
find
end_frame();
stdfoot();
change for
end_frame();
}
stdfoot();