Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profanity Filter! Any suggestions?

  • Avatar of ladydekade
    ladydekade
    Participant

    @ladydekade

    Hey Guys!

    So i’m trying to find a profanity filter that will work on bbPress as well as buddypress. I’ve tried a few but none block profanity on the Activity feeds (buddypress pages).

    Can any one suggest a plugin? I don’t mind paying for one.

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Avatar of ladydekade
    ladydekade
    Participant

    @ladydekade

    Ugh, meant to put this in how to!

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @ladydekade
    You can try this:

    http://wordpress.org/plugins/wp-content-filter/

    and try patching it like this:

    http://www.presscoders.com/plugins/wp-content-filter/#comment-61385

    Let us know if that works out. The only other option I see is a paid service:

    http://wordpress.org/plugins/webpurifytextreplace/

    Avatar of ladydekade
    ladydekade
    Participant

    @ladydekade

    Heya!

    Im open to paying for one, but I’m not sure if WebPurify will block swearwordzzz on the ACTIVYT (buddypress) as well as BBpress forums – do you know if it does?

    Z

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @ladydekade
    No I haven’t tested either one. I would suggest trying the free plugin (wp-content-filter) and adding the patch before purchasing a service. Try it out then if it doesn’t work let us know.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @ladydekade
    For donuts and coffee I tested it myself and it works but if you copied and pasted that patch code from the site it won’t work because the single quotes are not right. In wp-content-filter.php at line 208 add this:

    
    add_filter('bp_get_activity_action', 'pccf_filter');
    add_filter('bp_get_activity_content_body', 'pccf_filter');
    

    Save it, and in the plugins options copy and paste this great list for swear words:

    http://www.ourchangingglobe.com/misc/badwords-comma.txt

    In the keywords to remove! Hope that helps!

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @ladydekade
    You will also want to add this below the above code so it covers bbPress!

    
    add_filter('bp_get_the_topic_title', 'pccf_filter');
    add_filter('bp_get_the_topic_post_content', 'pccf_filter');
    

    In that list of swear words you may find a few words with a semi-colon(;) after them. You will need to remove those semi-colons as all is required is a comma to separate the words. You can also add other swear words to that list if it missed any! Cheers!

    Avatar of ladydekade
    ladydekade
    Participant

    @ladydekade

    Ahmazing, thanks for your quick replies :) Am just nutting out a few other issues then will be jumping back on this one.

    Z

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @ladydekade
    After further thought you may want to add the code supplied in bp-custom.php instead of modifying the code in the plugin because if you update that plugin in the future it will be overwritten and you would have to add it back but if it is in bp-custom.php it will remain untouched!

    Avatar of Kairimo
    Kairimo
    Participant

    @fitrighani

    Hi, I’m using Buddypress Version 1.7.2 and WP Content Filter Version 2.33. i already add your code at line 208 and it doesn’t work. i also add it into bp-custom.php file and also doesn’t work. did you have any suggestion for me.

    Thanks

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @fitrighani
    You must have entered something wrong because I have it working. On line 208 in wp-content-filter.php which is an empty line just add:

    
    add_filter('bp_get_activity_action', 'pccf_filter');
    add_filter('bp_get_activity_content_body', 'pccf_filter');
    add_filter('bp_get_the_topic_title', 'pccf_filter');
    add_filter('bp_get_the_topic_post_content', 'pccf_filter');
    

    You will need to search google to find a list of swear words to add to the plugins dashboard filter options because the link I used is no longer available. Also make sure the words are separated by a comma like so:

    a*s,d**k,p***k,d*m

    Good luck!

    Avatar of Kairimo
    Kairimo
    Participant

    @fitrighani

    Hi @bphelp, thanks for your reply. it works for me. Thanks. But is it possible for me to filter bad word in the feeds and also feeds comment?

Viewing 11 replies - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.