Hacks

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

kanaka  17-Apr-2003 04:04 3765 Reads   No comments 
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.
Rating 0/5
Rating: 0/5 (0 votes)
Voting is disabled!


Login

Who's Online

226 user(s) are online (13 user(s) are browsing Publisher)


Members: 0


Guests: 226


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits

Categories