Give this a try, it is untested
In /includes/functions.php
Find:
"cat_description" => format_text($cat_cache[$category_id]['cat_description'], 1),
After add:
"cat_description_short" => (strlen($cat_cache[$category_id]['cat_description']) > 20) ? Cut_String($cat_cache[$category_id]['cat_description'], 20)."..." : $cat_cache[$category_id]['cat_description'],
***In the above code the 20 represents the max length of description in characters, you can change this (twice) to fit your need ***
Above:
?>
Add:
function Cut_String($string, $max_length){
if (strlen($string) > $max_length){
$string = substr($string, 0, $max_length);
$pos = strrpos($string, " ");
if($pos === false) {
return substr($string, 0, $max_length)."...";
}
return substr($string, 0, $pos)."...";
}else{
return $string;
}
}
In your category_bit.html
Find:
{cat_description}
Replace with:
{cat_description_short}