Name: Post And Poster Added To Reported Posts v1.0

Description: This modification will add the author and post to the u2u when a post is reported.

Compatibility: XMB 1.9.11

By: JDaniels, miqrogroove

License Note: This modificaiton is released under the GPL License. A copy is provided with this software package.

Warning: Always backup the files you are going to modify when installing modifications!

============================================================================================================================
=======
Step 1:
=======
================
Edit File: vtmisc.php
================
======
Find:
======

        require('include/u2u.inc.php');

===========
Add Above:
===========

        // Post And Poster Added To Reported Posts Mod Begin
        $postquery = $db->query("SELECT * FROM ".X_PREFIX."posts WHERE pid='$pid'");
        $postresult = $db->fetch_array($postquery);
        // Post And Poster Added To Reported Posts Mod End

======
Find:
======

            $message = $lang['reportmessage'].' '.$posturl."\n\n".$lang['reason'].' '.$reason;

============
Replace With:
============

            // Post And Poster Added To Reported Posts Mod Begin
            $postmessage = stripslashes($postresult['message']); // messages are historically double-slashed
            $message = $lang['reportmessage']." ".$posturl."\n\n".$lang['reason']." ".$reason."\n<hr />".$lang['textauthor']." ".$postresult['author']." (".$postresult['useip'].")\n\n".$postmessage;
            // Post And Poster Added To Reported Posts Mod End

============================================================================================================================
Enjoy!