in forumdisplay :
FIND :
PHP Code:
while ($thread = $DB_site->fetch_array($threads))
{ // AND $counter++<$perpage)
// build thread data
$thread =process_thread_array($thread, $lastread, $foruminfo['allowicons']);
below Add :
PHP Code:
$thread['title'] = "newthread title";
/*
or as you code means
$titlecount = strlen($thread['title'])
if ($titlecount > 20)
{
$thread['title'] = cut the title here
}
*/
btw worng forum