But it's been changed a bit.
There is no warning system in my mod, I added a "report fulfilled" system to it, and i removed the emailing mods so all it does is PM them.
[high]What is it?[/high]
This mod replaces the vbulletin report system with a new system featuring the folowing features:
The report post form has been redone to have user selectable "reason" for reporting, as well as an "other" box where they can type the reason
Reports are then PMed instead of emailed to mods and/or admins
vBulletin keeps the status of the report through the database...when a mod fulfills the report's request they can then change the report's status to "true"
The status of the report is show in the private message
[high]Installation[/high]
File Edits
Open report.php.
Find:
PHP Code:
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
print_no_permission();
}
if (!$threadinfo['threadid'] OR !$postinfo['visible'] OR !$threadinfo['visible'] OR !$postinfo['postid'] OR $threadinfo['isdeleted'] OR $postinfo['isdeleted'])
{
eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink'])));
}
Replace with:
PHP Code:
if ($_GET['do'] != 'fulfilled' and $_GET['do'] != 'notfulfilled' and $_GET['do'] != 'img')
{
$forumperms = fetch_permissions($threadinfo['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) OR !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']))
{
print_no_permission();
}
if (!$threadinfo['threadid'] OR !$postinfo['visible'] OR !$threadinfo['visible'] OR !$postinfo['postid'] OR $threadinfo['isdeleted'] OR $postinfo['isdeleted'])
{
eval(standard_error(fetch_error('invalidid', $vbphrase['post'], $vbulletin->options['contactuslink'])));
}
}
Find:
PHP Code:
// draw nav bar
Above it add:
PHP Code:
// Report System Mod
$sendto = array();
$tostring = array();
// / Report System Mod
Find:
PHP Code:
'reason' => TYPE_STR,
Replace with:
PHP Code:
// Report System Mod
'other' => TYPE_STR,
// / Report System Mod
Find:
PHP Code:
if ($vbulletin->GPC['reason'] == '')
{
eval(standard_error(fetch_error('noreason')));
}
Replace with:
PHP Code:
if ($reason == '' and $other != '')
{
$reason = $other;
}
elseif ($reason == '' and $other == '')
{
eval(standard_error(fetch_error('noreason')));
}
while ($moderator = $db->fetch_array($moderators))
{
$mods[] = $moderator;
Replace with:
PHP Code:
while ($moderator = $db->fetch_array($moderators))
{
$mods[] = $moderator;
// Report System Mod
$tostring["$moderator[userid]"] = $moderator['username'];
$sendto["$moderator[userid]"] = $moderator['userid'];
// / Report System Mod
Find:
PHP Code:
foreach ($mods AS $index => $moderator)
{
if (!empty($moderator['email']))
{
$email_langid = ($moderator['languageid'] > 0 ? $moderator['languageid'] : $vbulletin->options['languageid']);
This is the reason that the user gave:
[b] $reason [/b]
Fulfilled Status: [phpimg]$vboptions[bburl]/report.php?id=$id&do=img[/phpimg]
Change Status to: [url=$vboptions[bburl]/report.php?do=fulfilled&id=$id]true[/url]
Please respond to this post as applicable.
DB Query
Run this query from either PHPmyadmin or in vbulletin to add the reportfulfilled table:
This matter (receiving PM instead of E-Mail) is still important to many V-Bulletin Forumerz. Since years people looking for such mode. Is it possible to develop this function and add to VB 4.X.X, that Admins could via option choose receive Email or PM?.
PS:me is Annoyed of getting everymonth useless updates for VB4X. Updates that have some changes improvements in functions of VB (inststead styles) would be more usefull!