UseBB Community

The official board for UseBB help and discussion

UseBB Community » Resources & Customization » Moderator patch error (by Gaia)

Moderator patch error (by Gaia)

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Nov 2006
Posts: 4
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')");
« Last edit by gotit on Thu Nov 30, 2006 12:01 am. »
Developer
Registered: Apr 2004
Posts: 2224
Location: Belgium
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.
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog

Page: 1

UseBB Community » Resources & Customization » Moderator patch error (by Gaia)

UseBB Community is powered by UseBB 1 Forum Software