PDA

View Full Version : Reported post email -- add poster's username


makaiguy
04-09-2013, 12:10 AM
Am trying to modify the reportpost phrase to include in the notification email the name of the person who submitted the post that is being reported.

I've tried:
Posted by:
$postinfo[username].. and a number of other variations, but have not found anything that works.

$reportinfo[postid] appears to contain the postid number for the reported post. How do I use this to return the username of the poster?

kh99
04-09-2013, 01:11 PM
Try using $reportinfo[pusername].

makaiguy
04-09-2013, 02:02 PM
Try using $reportinfo[pusername].
BINGO! That did it. Thanks so much.

--------------- Added 1365522208 at 1365522208 ---------------

For anyone looking for this information, I further enhanced by including a link to the poster's profile page by adding this:

Posted by:
$reportinfo[pusername] (Profile at $vboptions[bburl]/member.php?u=$reportinfo[puserid])