XOOPS Web Application System (https://xoops.org)

Powered by You!

Bug Squish: The "Length of the title" options of "Recent Downloads" block

Category : Hacks | Published by kanaka on 17-Apr-2003 04:04
Open the /modules/mydownloads/blocks/mydownloads_top.php file, go to line 46, and change these lines
if ( !XOOPS_USE_MULTIBYTES ) {
    if (
strlen($myrow['title']) >= $options[2]) {
        
$title $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."...";
    }
}

to
if ( !XOOPS_USE_MULTIBYTES ) {
    if (
strlen($myrow['title']) >= $options[2]) {
        
$title $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."...";
    }
}else{
    if (
strlen($myrow['title']) >= $options[2]) {
        
$title $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2])))."...";
    }
}

Okay, now it works well for multibyte language users.