Increasing BadWord Filter - Postet den (1854 Views)
Junior Member
Ranko
Innlegg: 400
400
My SQL-fu is not strong, so is there anyone who can tell me how I alter the badword table to accept the full 255 characters?
Thanks.<
   
 Sidestørrelse 
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
Please tell me what bad word is 255 characters long... tongue
or are you trying to filter out a phrase?<
Postet den
Junior Member
Ranko
Innlegg: 400
400
I want to double the usage of the filter to include links for book selling site.<
Postet den
Support Moderator
Shaggy
Innlegg: 6780
6780
Easiest way is just to add the domain to the bad word filter (domain.tld), it will render any links to that site useless - saves you altering the table and having to enter every possible link manually.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Postet den
Junior Member
Ranko
Innlegg: 400
400
But I want the opposite; I want to make bad world filter make links. When users enter Book of the Month, to get Book of the Month.
It is for a small affiliate program for a small site I like.<
Postet den
Senior Member
MarkJH
Innlegg: 1722
1722
Clever idea. A bit like IntelliTXT. smile<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Postet den
Junior Member
Ranko
Innlegg: 400
400
Exactly; except controled to be of use to me, the community, and the few shops I want to support.
Still didn't manage to write a script that actually works. Also, can anyone point me how I can use HTML or forum code when I write Replacement text? The testing provides me with wonky links so far.<
Postet den
Snitz Forums Admin
RichardKinser
Innlegg: 16655
16655
I wouldn't suggest using the Badwords filter for this. The badwords filter actually loads the words and the replacements into 2 Application Variables the first time it's used and when any of the words are changed. This was necessary because running the database query on each page load caused the forum to actually lock up. Not sure if you want to store all those long links in Application Variables.<
Postet den
Junior Member
Ranko
Innlegg: 400
400
Well I am open to better suggestions.<
 
Du må legge inn en melding