View Full Version : move thread if censor word is in $message
flame
04-05-2003, 02:20 PM
k, i have this setup it, successfully moves the thread to the set forumid BUT only if the word is the first word in the message field,
Can anyone give me any pointers on how to make this search the whole messgae field if it finds the censorword it then moves the thread to the specific forum (basically for mod approval/editing)
thanks
Flame
Xenon
04-05-2003, 03:03 PM
hmm do you want it for every word in the censorship or just for a special one?
if you want it for every word you can compare the message before and after censoring, and if they are different move the thread
flame
04-05-2003, 09:09 PM
Sorry i should have explained myself a bit more, all my forbidden words are replaced with ***forbidden*** so basically i would like the script to check for that word if found then its moved to admin approval forum, at the moment its only finding word if it like this
***forbidden*** etc bah blah
not in this context
there is a ***forbidden*** word in this sentance
Hope this helps
Flame
Xenon
04-06-2003, 11:00 AM
use the strstr function of php :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.