bbPress

Simple, fast, elegant

bbPress Plugin Browser »

Report Post (0.1.4)

Download

Version: 0.1.4

Last Updated: 2008-4-26

Requires bbPress Version: 0.8.2 or higher

Compatible up to: 0.9

Author Homepage »

Plugin Homepage »

Donate to this plugin »

Average Rating

5 stars
4 stars
3 stars
2 stars
1 star
(8)

Your Rating

Author: _ck_

This plugin adds a "Report" link to each post on a topic page
so members can easily alert a moderator to review a questionable post. Email is currently used to notify the administrator but more options will come eventually.


  1. Nice work! Although the E-mail has to be more cleaner (beautiful look). I've just installed this and tested it with a dummy account and now it'll be useful! I can't wait for your next release!

    Posted: 1 year ago #
  2. It works great for me! It just needs some of those to-do list features to be implemented.

    Posted: 1 year ago #
  3. edwinfoo

    Member

    Got it all installed. Edited style.css to make it look nice and it looks great.

    Once small problem though, no email.

    It looks like this is the part in the plugin which tells the email what to say, who it's from and who to send it to -

    $to = bb_get_option('admin_email');
    $from = $to;
    $subject = __("post reported by member for moderation");
    $headers ="From: ".$from;
    $message ="report by: ".bb_get_current_user_info( 'name' )."

    I'm the admin. Checked my registered email address, all is OK except no email?

    Any ideas?

    Posted: 1 year ago #
  4. edwinfoo, if your email account is on hotmail or aol, they will block most emails from servers that do not have

    1. reverse dns (rDNS)
    2. SPF record

    If you are using gmail or your own server's email, it should work however.

    Posted: 1 year ago #
  5. gerikg

    Member

    I've installed it but it doesn't report or anything. I'm not PHP savy but I'm able to edit things.

    The "report" link is the same as the "#" link:
    topic.php?id=3&replies=2#post-3

    I have WP 2.5 & BP 0.9.0.1 BP is a folder in WP sharing database

    Posted: 1 year ago #
  6. gerikg, are you saying the link to report doesn't bring up anything? Or that when you send the report it doesn't end up in your email?

    Make sure you are using the new 0.1.3 which I recently updated to fix a bbPress 0.9 change.

    Posted: 1 year ago #
  7. gerikg

    Member

    _ck_ it doesn't bring up anything. I'm using 0.1.3 Is it because I'm the admin reporting or that doesn't matter?

    Posted: 1 year ago #
  8. You won't see a "report post" button on your own posts.
    Also there is a list inside the plugin that prevents users from reporting certain user id #'s (and #1 is the default).

    Try logging in as a different user, make some posts, log back in as admin and you should see the link on the other user's posts.

    Posted: 1 year ago #
  9. gerikg

    Member

    Two users are on my site (non admin) regular members. They can't report each other's post.

    http://kiaspeed2.com/forum/topic.php?id=4

    Take a look.

    Posted: 1 year ago #
  10. gerikg, I need some clarity about the problem please:

    1. Does the Report link appear on the (other) posts?
    2. When they click on Report does anything come up?
    3. Do they have javascript enabled?
    4. What browser are they using?
    5. Does it work for anyone else?

    Posted: 1 year ago #
  11. gerikg

    Member

    I'm sorry. BTW great work on all your plug-ins.

    1. The Report Link shows in red in other's post.
    2. When you click on it, it work like the anchor link (#) it just shifts up or down the page.
    3. Yes
    4. The latest IE, FF, & Safari
    5. The both of them say no.

    List of plug-ins I have activated.
    Active
    Bozo Users 1.0
    Avatar Upload 0.8.3
    Memberlist .80
    Private Forums 5.0
    Allow Images 0.7.1
    bbPress signatures 0.1.8
    Simple Onlinelist 1.5
    Report Post 0.1.3
    Post Count Plus - Dynamic.Titles & More! 1.1.1
    BBPress Private Messaging 0.80
    Unread Posts 0.8.6
    BBcode Lite 1.01

    Inactive
    Force Login 0.8
    Akismet 1.0

    The only think I can think of that I use WP headers & Footer not BBPress.

    Posted: 1 year ago #
  12. What happens if when you are on a topic page you put this into your browser's address bar:

    javascript:report_post(1);

    Does firefox internet explorer report and javascript errors when you click on the Report button?

    Also try doing a "view source" on the topic page and search for function report_post(post_id) and see if it's in there (especially if the address bar step above doesn't work)

    Posted: 1 year ago #
  13. gerikg

    Member

    First part of your instruction.

    FF: nothing
    IE: Error
    Line: 1
    Char: 1
    Error: Object expected
    Code: 0
    URL: http://kiaspeed2.com/forum/topic.php?id=4

    Second Part

    <a class=report_post title="report post to moderator" href="#post-10" onClick="report_post(10);return false;">Report</a>

    I saw this in your code: "don't allow reports from members less than x days old"

    Where do I check that?

    Posted: 1 year ago #
  14. I don't believe I implemented that yet.
    I will have to reserch this some more.

    You didn't actually do the second part correctly.
    Search for function report_post
    (you missed the "function" part)

    If it's not there the javascript is not being inserted for some reason (or you have a personal firewall blocking javascript).

    Posted: 1 year ago #
  15. gerikg

    Member

    Oops, sorry.

    Function isn't there.

    Posted: 1 year ago #
  16. Aha. I bet I know what it is.
    You are using a very custom theme there.
    If you look in your footer.php template,
    before the end does it have

    <?php do_action('bb_foot', ''); ?>
    </body>
    </html>

    The bb_foot part is critical.
    I wonder if you are missing it?

    Posted: 1 year ago #
  17. gerikg

    Member

    That's it. I added that to the footer.php and it worked. Thank you so much.

    Thank you so much.

    Now I need to fix the sidebar, it looks different between IE and Firefox.

    Posted: 1 year ago #
  18. animediaz

    Member

    Is there one of these for wordpress by any chance >_<

    Posted: 1 year ago #
  19. parthatel

    Member

    How can one modify this so that instead of a report post, it becomes a report topic.

    Posted: 11 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.