bbPress Plugin Browser »

Censor (0.1)

Download

Version: 0.1

Other Versions

Last Updated: 2007-2-21

Requires bbPress Version: 0.8 or higher

Compatible up to: 0.8

Author Homepage »

Average Rating

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

Your Rating

Author: Michael Nolan

Censors posts for bad words, swearing etc.

<!--plugin-data-installation-->
<p>Add censor.php to your /my-plugins/ directory.</p>

<!--plugin-data-other_notes-->
<h3>Configuration</h3>
<p>The plugin provides an admin interface for activating the filter and entering words to match and the replacement string.</p>


  1. Does it only let you enter one word, or am I missing something?

    Posted: 5 years ago #
  2. Maybe you have a word on each line of the text-box, or separate them by commas?

    Could we have a feature that lets you disable censoring on a per forum basis? Censoring would be a great feature to have as standard with bbPress.

    Posted: 5 years ago #
  3. Okay, I thought it let you sub one word for each... now I see it allows one word or phrase for your entire list. Any possibility of making it so there is a substitute word for each censored word? My posters like to have fun and get silly with things like that... hehe.

    Posted: 5 years ago #
  4. piecealava

    Inactive

    Great Idea, however you missed the boat by not filtering out words in the title. In order for me to use this, it must have that feature!

    Thank you for your work and ideas, bbpress has great potential!

    Posted: 4 years ago #
  5. This plugin needs a admin menu fix for 8.2.x+

    function censor_add_admin_page() {
    (__('Censor Posts'), 'use_keys', 'censor_admin_page');
    	bb_admin_add_submenu(__('Censor Posts'), 'use_keys', 'censor_admin_page');
    }

    Titles should be filterable by adding

    add_filter( 'topic_title', 'censor_post_text' );
    Posted: 4 years ago #
  6. Also you are causing an extra mysql query for every page load by checking if (!bb_get_option('censor_enable')) {return $post;}

    after it's been deleted from the database when turned off.

    Probably should assume if the plugin is activated that censoring is desired.

    I've changed this:
    bb_delete_option('censor_enable');
    to
    bb_update_option('censor_enable', '0');

    To fix the extra query when option preloading is turned on.

    Posted: 4 years ago #
  7. dangrey

    Member

    Doesn't appear to work with 0.9 (I'd applied ck's fixes). When I try to activate it with "Plugin could not be activated; it produced a Fatal Error."

    Shame; this could be a very useful plugin.

    Posted: 4 years ago #
  8. "Plugin could not be activated; it produced a Fatal Error." means you have some bad PHP in there, possibly as simple as a typo.

    Copy what you have into http://pastebin.com and post the link here and I'll tell you what you've got wrong.

    Posted: 4 years ago #
  9. citizenkeith

    Member

    I made the changes _ck_ recommended and got "Plugin could not be activated; it produced a Fatal Error." I'm using 0.9.0.2.

    I couldn't paste the code into pastebin because it was tripping their spam filter. I zipped up the php file and posted it here:

    http://download.yousendit.com/6FF60A397B5508A1

    Posted: 4 years ago #
  10. Oh wait, there is definitely something wrong is my code above, the forum must have eaten the code.

    This is the correct code:

    function censor_add_admin_page() {
    	bb_admin_add_submenu(__('Censor Posts'), 'use_keys', 'censor_admin_page');
    }

    just replace the entire function around line 19 with that.

    Posted: 4 years ago #
  11. citizenkeith

    Member

    That did the trick. Thanks, as always, _ck_, for your help and hard work on bbPress plugins.

    Posted: 4 years ago #
  12. _ck_ Could you post a link to the tweaked code for this one? Thanks!

    Posted: 3 years ago #
  13. billy925

    Member

    Hey, how about parsing usernames?

    Posted: 2 years ago #
  14. THANKS for this plugin!

    I slapped the changes above in - and it works like a charm (on titles too) - http://pastebin.com/f584f9796 (pastebin is a great site, btw, never heard of it!).

    My request would be for a one:one replace option - to make sentences flow better.

    Here it is in action - http://www.filetransferplanet.com/forums/topic/sharing-links?replies=6#post-153 .. "UnnAm3D" had some harsh things to say.

    Posted: 2 years ago #

RSS feed for this topic

Add a Comment

You must log in to post.