Censored Words

Started by DNAPANDA, January 20, 2009, 06:34:06 AM

Previous topic - Next topic

DNAPANDA

Hi,

I have a question about the function "Censored Words", is it possible to only censor words in the posts? I dont want to have this function in the topic subject.  ::)

Hope someone can help me with this, thanks.

Forum version: SMF 1.1.7

JimM

Welcome to SMF

I am not aware of any options other than allow users to turn off word censoring.  If the word is in the censor list, it is censored throughout the forum.
Jim "JimM" Moore
Former Support Specialist

DNAPANDA

Ah ok, because i want to use it as a url link function, example when u write "google" it automatic "censores" to google link [nofollow].

But when someone writes "google" in a topic subject the bbcode shows up instead of the link. Does anybody know any other functions that can help me with this problem then, if its not possible to do with censored words function?

Please!  ;)

DNAPANDA

Nobody knows how to do this? I have seen some other forums that got this function, but they aint using SMF. Please help  :(

evolution88

is the word censoring some kind of additional mod or included in smf? sorry to be off topic but I can't help you :(

DNAPANDA

Quote from: evolution88 on January 25, 2009, 10:19:26 PM
is the word censoring some kind of additional mod or included in smf? sorry to be off topic but I can't help you :(
it is included.

Admin panel -> Posts and Topics -> Censored Words

evolution88

Quote from: DNAPANDA on January 25, 2009, 10:22:14 PM
Quote from: evolution88 on January 25, 2009, 10:19:26 PM
is the word censoring some kind of additional mod or included in smf? sorry to be off topic but I can't help you :(
it is included.

Admin panel -> Posts and Topics -> Censored Words

ooh, thanks a bunch ! i'm so blind -.-

greyknight17

If you want, we can move this topic over to the Mod Request board for you. There is currently no mod that I'm aware of that will do this. It's for the entire forum as mentioned earlier...

kat

Can't you just substitute the word "Google" with the words "http://google.com", out of curiosity?

DNAPANDA

Quote from: greyknight17 on February 01, 2009, 03:31:35 PM
If you want, we can move this topic over to the Mod Request board for you. There is currently no mod that I'm aware of that will do this. It's for the entire forum as mentioned earlier...
That would be good, hopefully someone could make a mod that fixes this.

Quote from: Kat on February 01, 2009, 03:44:52 PM
Can't you just substitute the word "Google" with the words "http://google.com [nofollow]", out of curiosity?
Thats right, but the problem is that I dont want the word (ex. google) to show "http://google.com [nofollow]" in the topic subject, only in replys.

If a topic subject says "Google buys Youtube" it will show up "http://google.com [nofollow] buys Youtube".

Understand?  :P

kat


DNAPANDA

Is it somebody who can help with this?  :o

Alan G

I'm looking for a similar but different mod, one that would allow censored words to be removed from the title / subject only.

I'm using ssi to include latest posts in my main site and i'd like to have swearing filtered from those titles. I don't however mind swearing in the main message body.

Both these requests could be included in the same mod. Something to decide what section of posts are censored.

IE. Apply filter to:
1. All content (smf default)
2. Message body only
3. Topic / message subjects only.

Thanks guys.

Alan G

Having had a quick look at what this would entail it would seem changes to a lot of files would be required for this mod.

See the attached image of files that reference censorText and number of occurences within each of those files.

Is that generally a bad thing for a mod?

fwitt

Quote from: DNAPANDA on January 20, 2009, 06:34:06 AM
Hi,

I have a question about the function "Censored Words", is it possible to only censor words in the posts? I dont want to have this function in the topic subject.  ::)

Hope someone can help me with this, thanks.

Forum version: SMF 1.1.7

just had a look and this is surprisingly easy to do.

in Sources/Display.php

comment out the lines


censorText($topicinfo['subject']);


and


censorText($message['subject']);


making them


//censorText($topicinfo['subject']);


and


//censorText($message['subject']);

fwitt

Alan G: I suspect your request would be similar but that you would need to go through each instance of CensorText you found and comment out all the ones you didnt want to be censored.

Alan G

Yeah that's what i figured, just seems like a lot of changes to make, and would effect updates a fair bit.

DNAPANDA

Quote from: fwitt on February 17, 2009, 11:06:38 AM
Quote from: DNAPANDA on January 20, 2009, 06:34:06 AM
Hi,

I have a question about the function "Censored Words", is it possible to only censor words in the posts? I dont want to have this function in the topic subject.  ::)

Hope someone can help me with this, thanks.

Forum version: SMF 1.1.7

just had a look and this is surprisingly easy to do.

in Sources/Display.php

comment out the lines


censorText($topicinfo['subject']);


and


censorText($message['subject']);


making them


//censorText($topicinfo['subject']);


and


//censorText($message['subject']);

Great, its getting close now!  :D

It shows the right subject text when you are inside the current subject, but when you are looking at the topic inside the boards and on the forumindex it still shows links in the subject. Where can I change these codes?

Alan G

I'd take a look at the list of files i attached previously, it will be one or multiple of those. Gping purely on name you might want to try messageindex.php

fwitt

Subs-BoardIndex.php I think will be the main one to look in but there may be other occurances. They should all be very similar to the two posted earlier.

Advertisement: