Modify badpost notification email

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • makaiguy
    Senior Member
    • May 2004
    • 125
    • 3.8.x

    Modify badpost notification email

    Still running vB 3.5.4.

    Would like to modify the email sent when a problem post is reported to include the username of the person that posted the problem post, and ideally, a link to their profile.

    Here's the stock reportbadpost phrase:

    $bbuserinfo[username] ( mailto:$bbuserinfo[email] ) has reported this post: $postinfo[title] $vboptions[bburl]/showthread.php?p=$postinfo[postid]#post$postinfo[postid] This is part of this thread: $threadinfo[title]
    $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]
    This is the reason that the user gave: $reason
    This message has been sent to all moderators of this forum, or all administrators if there are no moderators. Please respond to this post as applicable.

    I tried to modify it as follows:

    $bbuserinfo[username] ( mailto:$bbuserinfo[email] ) has reported this post: $postinfo[title]
    Posted by: $postinfo[musername]
    $vboptions[bburl]/showthread.php?p=$postinfo[postid]#post$postinfo[postid] This is part of this thread: $threadinfo[title]
    $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]
    This is the reason that the user gave: $reason
    This message has been sent to all moderators of this forum, or all administrators if there are no moderators. Please respond to this post as applicable.

    .. however, apparently musername is not contained within $postinfo[]. Can anybody suggest the correct code to do this?
    Doug Wilson
    Administrator, Timeshare Users Group bbs
  • Jake Bunce
    Senior Member
    • Dec 2000
    • 46598
    • 3.6.x

    #2
    Try:

    Code:
    $postinfo[username]

    Comment

    • makaiguy
      Senior Member
      • May 2004
      • 125
      • 3.8.x

      #3
      [smacks forehead]

      So simple and easy, thanks Jake.

      Here is my modified phrase, in case anybody else wants to do the same thing:
      $bbuserinfo[username] ( mailto:$bbuserinfo[email] ) has reported this post:

      $postinfo[title]
      $vboptions[bburl]/showthread.php?p=$postinfo[postid]#post$postinfo[postid]
      Posted by: $postinfo[username] ( $vboptions[bburl]/member.php?u=$postinfo[userid] )

      This is part of this thread:
      $threadinfo[title]
      $vboptions[bburl]/showthread.php?t=$threadinfo[threadid]

      This is the reason that the user gave:
      $reason

      This message has been sent to all moderators of this forum, or all administrators if there are no moderators.

      Please respond to this post as applicable.
      Doug Wilson
      Administrator, Timeshare Users Group bbs

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...