Unfortunately, I can not do that. : (
I once did something similar in jateline II under the relevant functions. But here I have no idea how to change it. Does anybody can help me?
[PHP]/*Separate word*/
function separate_word($str, $numberofwords) {
$array = explode(” “, $str);
$sizeofstr = sizeof($array);
if ($numberofwords > $sizeofstr) {
return $str;
}
$strReturn = ”;
for($i = 0; $i < $numberofwords; $i++ ) {
$strReturn .= ‘ ‘ . $array[$i];
}
}[/PHP]
[PHP]/*Count words*/
$number_of_word = explode(” “, $row->introtext);
$sizeofword = sizeof($number_of_word);
if ($maxchars && $sizeofword > $maxchars) {
$doc = JDocument::getInstance ();
if (function_exists(‘mb_substr’)) {
$row->introtext1 = SmartTrim::separate_word($row->introtext, $maxchars);
} else {
$row->introtext1 = SmartTrim::separate_word($row->introtext, $maxchars);
}
}[/PHP]