bbPress

Simple, fast, elegant

bbPress Plugin Browser »

bbPress Moderation Suite (0.1-rc1)

Download

Version: 0.1-rc1

Other Versions

Last Updated: 2009-12-9

Requires bbPress Version: 1.0 or higher

Compatible up to: trunk

Author Homepage »

Plugin Homepage »

Average Rating

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

Your Rating

Author: Nightgunner5


  1. arturm: Report types and resolve types have been bothering me. If one from the middle of the list is deleted, everything below that shifts up and all of the reasons get out of order. I'm planning on making quite a few changes to the report/resolve type internal system, so hopefully they'll fix that as well.

    Edit: I found the problem - it wasn't caching correctly, so after looking through the cache, I've decided it was counter-productive and removed it.

    Posted: 6 months ago #
  2. Translation update (pl_PL) for development version *.pot ready (you can get it at the same place).

    Posted: 6 months ago #
  3. TahoeKid

    Member

    I cannot get any of my reports to resolve... I keep receiving "Invalid resolve attempt." any thoughts?

    Posted: 6 months ago #
  4. zapata

    Member

    I inserted the <?php bb_post_admin(); ?> link in Kakumei's post.php and see a warn link but do not see the Report link. I checked the admin section and all components in the suite are activated. anyone experiencing this issue. I'm on bbPress 1.0

    Posted: 6 months ago #
  5. bbhack

    Member

    I was having a problem because of some of the relative paths and how the plugin then calls bb-load.php. I was able to work around it but I find it odd that the plugin needs to call bb-load.php. I don't think I've seen another plugin that needed to call bb-load.php.

    Shouldn't bb-load.php have already been called when the plugin was invoked?

    And if you need to call it, shouldn't it be the very first line in the plugin like this:

    'require_once('./bb-load.php');'

    Posted: 6 months ago #
  6. bbhack

    Member

    I have a question about the resolve types. It seems that they don't actually do anything but are just extra data along with the note about how the issue was resolved.

    I was hoping that there would be an Allow resolution type (along with a Delete type) so that the post would actually be marked as having been reviewed and allowed to stay. Then if someone else reported it again, the status would be checked and no report would be generated if it was "Allow".

    Posted: 6 months ago #
  7. sydphil

    Member

    Hi - have installed this and just get a blank screen (/bbpress/my-plugins/bbpress-moderation-suite/report.php?report=4&_nonce=5fd6c72c98) when clicking 'report' under a post.

    Using bbPress 1.0.2.

    On installation the db tables were not created, I have run that part of the script manually to create 2 tables (bb_bbmodsuite_modlog, bb_bbmodsuite_reports).

    Any assistance appreciated.

    Posted: 5 months ago #
  8. sydphil: If the tables weren't created, that probably caused the problem with the blank page, even if you manually created them later. What version of PHP are you using?

    Posted: 5 months ago #
  9. zapata: bbPress Moderation Suite only shows the report link if you can't delete the post on your own.

    bbhack: That code makes bbPress Moderation Suite able to load bbPress functions when someone is reporting a post.

    Posted: 5 months ago #
  10. sydphil

    Member

    Php 5. I executed the create scripts as they appeared in the code. Frustrating that it is reporting nothing at all

    can you tell me how the tables should look so I can ensure they are correct ?

    Posted: 5 months ago #
  11. sydphil: Try using the "uninstall" function on each of the plugins and then reactivating them. Are there any errors that pop up on the page or in your error log?

    Posted: 5 months ago #
  12. bbhack

    Member

    I found two bugs - and here are the fixes:

    The first is that the reported post wasn't being displayed with a red background when you clicked through from admin to view it.

    Here's the change that needs to be made in report.php so that the #thread is added to the style:

    return '#thread #post-' . implode( ' .threadpost, #thread #post-', $reported_post_ids ) . ' .threadpost {
    		background: #900;
    		color: #fff;

    The second bug has to do with the resolve types. They were always displaying as Other in the Resolved Reports screen. This is because the resolve type is being saved incorrectly to the database in the bb_bbmodsuite_reports table. You are casting it to an (int) when it shouldn't be. So if you remove the cast, it works!

    Just change the lines in report.php to this:

    if ( !$report_id ) { ?>
    <div class="error"><p><?php _e( 'Invalid resolve attempt.', 'bbpress-moderation-suite' ); ?></p></div>
    <?php		} else {
    				// Modified resolve type to remove the casting to (int)
    				if ( $bbdb->update( $bbdb->prefix . 'bbmodsuite_reports', array(
    					'report_type' => 'resolved',
    					'resolve_content' => htmlspecialchars( trim( bbmodsuite_stripslashes( $_POST['resolve_content'] ) ) ),
    					'resolved_at' => bb_current_time( 'mysql' ),
    					'resolved_by' => bb_get_current_user_info( 'ID' ),
    					'resolve_type' => $_POST['resolve_type']
    				), array( 'ID' => $report_id ) ) ) { ?>
    Posted: 5 months ago #
  13. Anubis_fr

    Member

    Hello frm France,

    all seems to work fine and tables have been rightly created except that i cannot access the report page when clicking "report". Tried to uninstall and reactivate, same issue occurs.

    Thanks for your help.

    Posted: 3 months ago #
  14. Anubis_fr: It's probably a permissions error. Check to see if your my-plugins folder is marked 755.

    Posted: 3 months ago #
  15. shansta

    Member

    I have tried the development version with 1.0.2 and cannot see any report links etc... Am I missing something?

    Posted: 3 months ago #
  16. shansta: Is the mini-plugin called report enabled? What theme are you using?

    Posted: 3 months ago #
  17. is there an option to delete notes? , i've made some testing notes and i would like to delete them

    Posted: 3 months ago #
  18. ootes: Are you talking about reports or warnings? Either way, if you don't have any real data in there yet, you can use the uninstall option on the individual mini-plugin.

    Posted: 3 months ago #
  19. biggerbyfar

    Member

    Warning: array_combine() [function.array-combine]: Both parameters should have at least 1 element in /home/something/public_html/forum/my-plugins/bbpress-moderation-suite/report.php on line 478

    Successfully resolved report.

    Upon resolving a 'report' Using bbpress 1.0.2

    Posted: 2 months ago #
  20. biggerbyfar: It's safe to ignore that.

    Posted: 2 months ago #

RSS feed for this topic

Add a Comment »

You must log in to post.

Code is Poetry.