Digital Arm
Forum Replies Created
-
As far as I am aware there are no security issues concerning the plugin. Find a new home would mean a new development team taking over maintaining the plugin.
We aren’t actively maintaining the plugin at this time and may try to find a new home for it in the near future.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Hold topics for approval on specific forumsGlad that worked! Yes I agree, noted ??
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Hold topics for approval on specific forumsActually, setting moderation to none means it won’t get to this filter.
You could set moderation to custom and choose one of the options, perhaps English character threshold, and change it to 0. That should do the trick.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] whitelist approved usersI just realised the $pending should be false in that last example, so:
// Allow all posts by users by id add_filter( 'bbp_modtools_moderate_post', 'foo_whitelist_users', 10, 2 ); function foo_whitelist_users( $pending, $post ) { $user_ids = array( 2, 5, 10, 200 ); if ( in_array( get_current_user_id(), $user_ids ) ) { $pending = false; } return $pending; }
Forum: Plugins
In reply to: [bbPress - Moderation Tools] whitelist approved usersYou could use an array to keep things a bit cleaner, like this:
// Allow all posts by users by id add_filter( 'bbp_modtools_moderate_post', 'foo_whitelist_users', 10, 2 ); function foo_whitelist_users( $pending, $post ) { $user_ids = array( 2, 5, 10, 200 ); if ( in_array( get_current_user_id(), $user_ids ) ) { $pending = true; } return $pending; }
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Hold topics for approval on specific forumsHi there,
This snippet should moderate every topic and reply in certain forums. Just enter the forum ids in $lockdown_forum_ids. You would then set the Forum > Settings to not moderate.
function my_lockdown_forum( $pending, $post ) { $lockdown_forum_ids = array( 5, 50, 40 ); $forum_id = $post['post_parent']; // Delete this if statement if you don't want to lock down replies if ( 'reply' === $post['post_type'] ) { $topic = get_post( $post['post_parent'] ); $forum_id = (int) get_post_meta( $topic->ID, '_bbp_forum_id', true ); } if ( in_array( $forum_id, $lockdown_forum_ids ) ) { $pending = true; } return $pending; } add_filter( 'bbp_modtools_moderate_post', 'my_lockdown_forum', 10, 2 );
The other way to do it could be to set up the moderation settings in Forums > Settings then specify the forums you don’t want to moderate.
function my_allowed_forums( $pending, $post ) { $allowed_forum_ids = array( 5, 50, 40 ); $forum_id = $post['post_parent']; // Delete this if statement if you don't want to allow all replies if ( 'reply' === $post['post_type'] ) { $topic = get_post( $post['post_parent'] ); $forum_id = (int) get_post_meta( $topic->ID, '_bbp_forum_id', true ); } if ( in_array( $forum_id, $allowed_forum_ids ) ) { $pending = false; } return $pending; } add_filter( 'bbp_modtools_moderate_post', 'my_allowed_forums', 10, 2 );
Hope that helps!
Thanks for getting to the bottom of this! I’ve logged an issue so we can address this in a fututre update.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] whitelist approved usersHi there,
Sorry for the delay getting back to you.
There is an example in the docs here: https://sites.google.com/digitalarm.co.uk/bbpress-moderation-tools/#h.p_oPCkdsaEEdIV
I think you’re looking for something more like this:
add_filter( 'bbp_modtools_moderate_post', 'foo_whitelist_users', 10, 2 ); function foo_whitelist_users( $pending, $post ) { // Whitelist a user by ID if ( 8 === get_current_user_id() ) { $pending = false; } return $pending; }
You could also get the current user and allow certain roles. Does that help?
- This reply was modified 6 years ago by Digital Arm.
Yes that is the correct option.
I have just tested this on a clean install with just bbPress and it seems to be working as expected. It does sound like a bug but I’m not sure what could be causing it.
Have you tried disabling some other bbPress plugins to see if something could be causing a conflict?
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Support translationsThis is something we want to address so you can properly translate the plugin. I can’t give an exact date when this will be ready but I will prioritise it for you.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Error message after latest updateThank you for flagging this and apologies for causing an error. This is due to the version of PHP you are running. I have logged an issue to update the code to be backwards compatible but I would strongly advise updating your PHP version as you must be running < 5.4 which reached end of life in September 2015: https://php.net/eol.php
Thanks.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Error when approving topic or replyWould you be able to create an Admin user on your test site so I can take a quick look? If so please email the details to [email protected].
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Error when approving topic or replyThat seems to be a slightly different issue which I’ve just fixed and released a new hotfix for (1.2.3).
I’m not sure if that will fix your database errors but please update and try again.
Forum: Plugins
In reply to: [bbPress - Moderation Tools] Error when approving topic or replyApologies for the delay looking into this for you. If you would like to update to the latest version (1.2.2) the plugin has been updated to include all required arguments for the bbp_new_reply and bbp_new_topic actions.
This should resolve the issue but please let us know if you experience any problems.