Previous Thread
Next Thread
Print Thread
Hop To
#261805 11/08/2018 3:53 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
How do I censor a multi-word name or short phrase where the second, and/or third word is separated by a space?

Larry Miller #261806 11/08/2018 4:04 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
The censor allows you to use a regex to match a bad string, so following the example of
Code
ba(.*?)word

You could censor the phrase "go f**k yourself" with:
Code
go(.*?)yourself

But keep in mind that if the user would use go and yourself in the same post it'd also match that entire post, so you could end up with something like
Code
How did the surgery go?  I hope that you're taking care of yourself.

Being flagged as:
Code
How did the surgery [censored].

Regex strings are great, and can be very confusing; you'd have to spend some time in Google to figure them out.

Honestly though, if users are unable to follow the rules you should look at taking on more moderators, or directly talking with users regarding bypassing the censor and community rules.

You could also setup a "Bad Eggs" group and setting the permissions for that group in every forum to force their posts be moderated before being made public:
Code
[+] All new posts are moderated 


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Larry Miller #261807 11/08/2018 4:18 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
PERFECT....thank you so much for your prompt reply


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Forum Privacy Policy
by ECNet - 02/26/2024 11:58 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 322 guests, and 160 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)