6
Here a very simple fix if you like to keep adding "..." if the string is too long, but don't want to add it all the time:
Edit include/functions.php and replace the function xoops_substr with this one.
function xoops_substr($str, $start, $length, $trimmarker = '...')
{
if( strlen($str) <= $length ) {
return $str;
}
else {
if (XOOPS_USE_MULTIBYTES == 1 && function_exists('mb_internal_encoding') && @mb_internal_encoding(_CHARSET)) {
return mb_strimwidth($str, $start, $length, $trimmarker, _CHARSET);
}
return substr($str, $start, $length - strlen($trimmarker)).$trimmarker;
}
}