Increasing BadWord Filter - Posted (1847 Views)
Junior Member
Ranko
Posts: 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.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
Please tell me what bad word is 255 characters long... tongue
or are you trying to filter out a phrase?<
Posted
Junior Member
Ranko
Posts: 400
400
I want to double the usage of the filter to include links for book selling site.<
Posted
Support Moderator
Shaggy
Posts: 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.”
Posted
Junior Member
Ranko
Posts: 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.<
Posted
Senior Member
MarkJH
Posts: 1722
1722
Clever idea. A bit like IntelliTXT. smile<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Posted
Junior Member
Ranko
Posts: 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.<
Posted
Snitz Forums Admin
RichardKinser
Posts: 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.<
Posted
Junior Member
Ranko
Posts: 400
400
Well I am open to better suggestions.<
 
You Must enter a message