Moderator patch error (by Gaia)

Submitted by Anonymous on Thu, 11/30/2006 - 00:57
Written by

I uploaded the file, when assigning a moderator getting this error:

Also don't know what "1. Make sure that your /sources/modules/ folder is CHMODD 777" means in the instruction.

UseBB General Error
An error was encountered. We apologize for any inconvenience.

In file moderaters.php on line 110:

E_NOTICE - Undefined index: mid
This error should probably not have occured, so please report it to the webmaster. Thank you for your help.

If you are the webmaster of this board and you believe this is a bug, please send a bug report.

return $message;


function add_mod() { # change the selected members level.

global $functions,$db;

Line 110 $mid = $_POST['mid'];
$fid = $_POST['fid'];

$result = $db->query("SELECT * FROM ".TABLE_PREFIX."moderators WHERE forum_id='$fid' AND user_id='$mid'");
$check = $db->fetch_result($result);
if ( $check['forum_id'] == $fid && $check['user_id'] == $mid ) {
$message = 'That moderator already moderates that forum!';
} else {
$db->query("INSERT INTO ".TABLE_PREFIX."moderators VALUES ('$fid', '$mid')");

3rd party ACP modules are not supported. Next to this, you shouldn't use that module since UseBB has built-in functionality to assign moderators for quite some time.

PS: wrong forum, moved to Resources. Please read the forum rules.