Try this as the plugin code:
PHP Code:
// ++=========================++
// || QUICK MODERATION v1.0 ||
// || BY: ROSSCO_2005 ||
// || Date: July 24, 2005 ||
// ++ ========================++
require_once('./includes/functions_calendar.php');
/*
//Attachments to moderate
if (can_moderate(0, 'canmoderateattachments'))
{
$attachments = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "attachment WHERE visible = 0");
$attachments['count'] = vb_number_format($attachments['count']);
$show['attachments'] = true;
}
//Events to moderate
if (can_moderate() AND can_moderate_calendar())
{
$events = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "event WHERE visible = 0");
$events['count'] = vb_number_format($events['count']);
$show['events'] = true;
}
*/
//Users to Moderate
$users = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "user WHERE usergroupid = 4");
$users['count'] = vb_number_format($users['count']);
$show['users'] = true;
//reports unfulfilled
/*
$reports = $db->query_first ("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "reportfulfilled WHERE status = 'false'");
$reports['count'] = vb_number_format($reports['count']);
$show['reports'] = true;
*/
/*
//Posts and Threads to moderate
if (can_moderate(0, 'canmoderateposts'))
{
$posts = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "moderation WHERE type = 'reply'");
$posts['count'] = vb_number_format($posts['count']);
$show['posts'] = true;
$threads = $db->query_first("SELECT COUNT(*) AS count FROM " . TABLE_PREFIX . "moderation WHERE type = 'thread'");
$threads['count'] = vb_number_format($threads['count']);
$show['threads'] = true;
}
*/
//See if any of them are greater than 1
/*
if ($threads['count']>0 or $posts['count']>0 or $reports['count']>0 or $events['count']>0 or $attachments['count']>0 or $users['count']>0])
{
$alertmods = true;
}
*/
if ($users['count'] > 0)
{
eval('$moderate = "' . fetch_template('navbar_moderation') . '";');
}