bbPress Plugin Browser »

BB Moderation Hold (0.4.1)

Download

Version: 0.4.1

Other Versions

Last Updated: 2008-6-22

Requires bbPress Version: 1.0 alpha build 809 or higher

Compatible up to: 0.8.2.1

Author Homepage »

Plugin Homepage »

Average Rating

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

Your Rating

Author: Aditya Naik

Tags: ,

  1. Topic moderation does not work in 1.0.2, to fix place the following on line 88 (just above the line saying "return"):

    $topic = $bbdb->get_row("SELECT * FROM $bbdb->topics WHERE topic_id = '$topic_id'");
    if($hold_topics && intval($topic->topic_posts) === 0):
    $bbdb->query("UPDATE $bbdb->topics SET topic_status = '-1' WHERE topic_id = '$topic_id'");
    if ('Y' == $options['hold_topics_send_email']) bb_moderation_mail_moderation();
    endif;

    Posted: 1 year ago #
  2. krgrindley

    Member

    I made that fix and get the following error:

    Fatal error: Call to a member function get_row() on a non-object in /home/lbcsin5/public_html/lbcsinglelife.com/highlights/my-plugins/bb-moderation-hold/moderation.php on line 92

    The function ends up looking like this:

    function bb_moderation_fix_status_before_post($old_status, $post_id, $topic_id) {
    $options = bb_anonymous_default_options(bb_get_option('bb_moderation_hold'));

    $hold_posts = bb_moderation_check_options('hold_posts', $options);
    if (!$post_id && $hold_posts) {
    $old_status = -1;
    }
    $topic = $bbdb->get_row("SELECT * FROM $bbdb->topics WHERE topic_id = '$topic_id'");
    if($hold_topics && intval($topic->topic_posts) === 0):
    $bbdb->query("UPDATE $bbdb->topics SET topic_status = '-1' WHERE topic_id = '$topic_id'");
    if ('Y' == $options['hold_topics_send_email']) bb_moderation_mail_moderation();
    endif;

    return $old_status;
    }

    Posted: 1 year ago #
  3. ktchn

    Member

    I have fixed the remaining nits in this plugin in order to make it work with bbpress 1.0.2. It's not really clear what needs to happen to share those fixes.

    Even when hacked to make it work, this plugin leaves a lot to be desired -- for instance users have no idea they're being moderated, which will lead them to post multiple times out of frustration.

    I'm guessing this isn't really being maintained.

    Posted: 1 year ago #
  4. dragonfly_green

    Member

    ktchn, Would you be willing to send me your fixed version of this plugin for bbpress 1.0.2? I would really appreciate it.

    Thanks!

    Posted: 8 months ago #

RSS feed for this topic

Add a Comment

You must log in to post.