拓展

Bug Squish: “最近下载”模块中“标题长度”选项

kanaka  2003-04-17 04:04 3753 阅读次数   暂无评论 
打开/modules/mydownloads/blocks/mydownloads_top.php文件,转到第46行,并更改以下代码
if ( !XOOPS_USE_MULTIBYTES ) {
    if (
strlen($myrow['title']) >= $options[2]) {
        
$title $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."...";
    }
}

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

现在对于多字节语言用户来说,它运行得很好。
评分 0/5
评分: 0/5(0票)
投票已禁用!


Login

Who's Online

283 user(s) are online (23 user(s) are browsing Publisher)


Members: 0


Guests: 283


more...

Donat-O-Meter

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

Latest GitHub Commits

Categories