MyBB Community Forums

Full Version: change allowed length of replacement word in word filter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
max is 100 characters, where can i change this?

thanks
IIRC, database fields for badword & replacement have 100 characters length, viz., varchar(100)
you can increase both of them - however not sure that such lengthy replacements are required
moreover such lengthy replacements might not work perfect ..
where exactly is varchar(100) edited?

because i need to change a given word into a link and the link is longer than 100 characters....

mycode creates a mess of things if someone uses the word in a thread topic. i've asked about making mycode so it only affects body text, but never figured it out.

i guess i can make short links with goo.gl
^ changing field length should be possible through database manager
(eg. phpMyAdmin --> mybb_badwords --> structure --> field --> action --> change --> edit ..)
or sql queries can be used like below (assuming that tables prefix is mybb)
ALTER TABLE  `mybb_badwords` CHANGE  `badword`  `badword` VARCHAR( 200 )
ALTER TABLE  `mybb_badwords` CHANGE  `replacement`  `replacement` VARCHAR( 200 )