WordPress.org

Ready to get started?Download WordPress

Forums

Report Content
[resolved] Option to include the URL of the post and show post author in Reports screen (6 posts)

  1. Supa
    Member
    Posted 4 months ago #

    Hi,
    I see this particular topic regarding "url in mail" has already been started, http://wordpress.org/support/topic/no-url-in-mail?replies=2
    but it seems to be unresolved ?

    #1 Basically, I have a blog with multiple authors, so it would be really handy to include the "post link" , so that when the author gets the email. They can go and edit the post straight away, without having to search through so many reports in the Admin panel.

    #2 Another handy idea is that, the "Reports" section must show the AUTHOR of each post.
    That way, the author knows which posts he/she must edit, that display his/her name.

    Usually my blog has all authors assigned in the "Author" role, so you can see why they simply can't edit another author's post. (I wouldn't want them to anyway).

    This is a long post, but since I really like this plugin, I hope these features can be added.

    https://wordpress.org/plugins/report-content/

  2. Li-An
    Member
    Posted 4 months ago #

    It seems the plugin's author does not look at this forum. I tried to contact him on his site with no success...

  3. Hassan Akhtar
    Member
    Plugin Author

    Posted 4 months ago #

    Hi. I do look at this forum :)

    I try my best to resolve bugs as soon as possible but this isn't exactly a bug. Still, I'll try to get this done in the next few days. And thanks for liking the plugin Supa.

  4. Supa
    Member
    Posted 4 months ago #

    I did a temporary code change, until the plugin gets an official update.

    This will show the URL of the post in the email.

    So to make this happen;
    1. Go to wp-content/plugins/report-content/report-content.php
    2. Look for this piece of code at php line 186:

    $report_string = "\n\nReport:\n\n".$report['reason']."\n\n".$report['details'];

    3. Replace that with this code:

    $report_string = "\n\nPost Link:\nhttp://www.YourWEBSITE.com/wp-admin/post.php?post=".$report['post_id']."&action=edit\n\n\Reason:\n".$report['reason']."\n\nReport:\n".$report['details'];

    4. change "yourwebsite.com" with the actual URL of your site.

    5. The link will take you to the actual Post Edit screen, so you can edit the post directly or view the report which is listed in a meta box in the Post Edit footer.

    Hopefully this code change, can be of good use for everyone else who wants the post url displayed.

  5. Faisal Humayun
    Member
    Posted 3 months ago #

    Great hack Supa ! Much appreciated.

  6. Supa
    Member
    Posted 2 months ago #

    You're welcome @Faisal Humayun ! :D

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.