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:
I realize that the big long report.php file edit is going to be a turnoff for this mod, but I will be making 'premodded' report.php files based off of every version of vbulletin 3.5 that is released, for please using an unhacked report.php.
is there an esier way to do this without doing all the editing?...i mean that's alot of editing to do.
I know, and I think that is the biggest putoff about this hack. I will try and think of a better way to include the code tho, maybe just have a plugin with all the code then comment out teh original code. :ermm: