ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Forum Post Report template

June 28, 2007 8:03pm

Subscribe [2]
  • #1 / Jun 28, 2007 8:03pm

    AngMed

    71 posts

    I would like to know where I can find the template for ‘Forum Post Report’.
    I tried in Admin ›  Specialty Templates ›  Email Notification Templates ›  Moderator Notification of Forum Post Report, but when I do changes, it doesn’t appear on the email. Maybe I have been looking at the wrong place.

    In the email template I would like to add the email address of the member who sent the report and of the member who has been reported; to easily send an email to them.

    so instead of:
    ———————-
    Member1 just reported a post written by Member2 in: forumxx
    ———————-

    I would like it to be like:
    ———————-
    Member1 (.(JavaScript must be enabled to view this email address)) just reported a post written by Member2 (.(JavaScript must be enabled to view this email address)) in: forumxx
    ———————-

    This might be a feature request…?

  • #2 / Jun 28, 2007 8:25pm

    Sue Crocker

    26054 posts

    Robert, the code is found in the file email_data.php around line 565:

    return <<<EOF
    {reporter_name} just reported a post written by {author} in:
    {forum_name}

    You’d probably also need to modify cp.cp.specialty_tmp.php:

      ‘forum_report_notification’          => array(‘forum_name’, ‘reporter_name’, ‘author’, ‘body’, ‘reasons’, ‘notes’, ‘post_url’)

    But I’d request that two new variables were added for the reporting member email address and the offending member email addresses.

    Make sense?

  • #3 / Jun 28, 2007 8:40pm

    AngMed

    71 posts

    Make sense Sue,
    I changed the files (email_data.php in folder Language and cp.specialty_tmp.php in folder CP), well, nothing changed, the email is the same.

  • #4 / Jun 28, 2007 9:33pm

    Sue Crocker

    26054 posts

    The second code segment takes an array, but I’m not sure *what* extra needs to go into there. That’s why I suggested a FR.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases