Previous Thread
Next Thread
Print Thread
Hop To
#261805 11/08/2018 3:53 PM
Joined: Sep 2006
Posts: 171
Likes: 1
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 171
Likes: 1
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,532
Likes: 150
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,532
Likes: 150
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
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: 171
Likes: 1
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 171
Likes: 1
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
PHP 8 bug in membermanage.tmpl
by phoenix011235 - 09/08/2026 7:47 PM
Are any of these legitmate?
by Baldeagle - 09/06/2026 1:37 PM
After server reboot
by Morgan - 09/02/2026 8:27 AM
Email Settings
by Outdoorking - 05/13/2026 2:44 AM
Who's Online Now
1 members (1 invisible), 304 guests, and 96 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260527)