天兴工作室:提供zblog模板 emlog模板 dedecms模板的下载和仿站定制 | RSS订阅 | 网站地图 | 联系我们
天兴工作室自用主题2015版上架销售 国庆开开心心
当前位置:网站首页 问答 正文
内容加载中......

First sorry i don't speak chinese but i'm using this great Cms for my own conveniance, i have translate it in French (i'm using simpage theme) but there is strange bug i can't resolve. If i use chinese text all is right but when i'm using french translate (from english files) i have space after the character  '  "L’ énigme" !! it must be like this "L'énigme" without the space between the ' and the é . Any idea ? i have look inside the code and i think it came from the preg_replace string ?

 

{php}$description = preg_replace('/\p{Cc}+/u','', trim(SubStrUTF8(TransferHTML($article->Title,'[nohtml]'),55)).'');{/php}{$description}</a></h3>
<ul id="zi">
{if $zbp->Config('simpage')->DisplayAbstractwords=="0"}
{php}$description = preg_replace('/\p{Cc}+/u','', trim(SubStrUTF8(TransferHTML($article->Content,'[nohtml]'),$zbp->Config('simpage')->Abstractwords)).'...');{/php}{$description}
{else}
{$article.Intro}
{/if}

 

 

Thanks a lot if you can help me and long live to this wonderfull site.

我要提问 欢迎你回答此问题。如果你也有疑问,欢迎前往本站发起”我要提问“。天兴工作室会在第一时间对你的问题做出回答。

哈哈,本文已有 2 位小伙伴发表了看法:

1#涂涂研版 (游客)  评论于 2016-03-25 23:32:48回应ta
you can try to change to this:
{php}$description = preg_replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article-˃Title,'[nohtml]'),25)).'');{/php}{$description}
{if $zbp-˃Config('simpage')-˃DisplayAbstractwords=="0"}
{php}$description = preg_replace('/\s(?=\s)/', '', trim(SubStrUTF8(TransferHTML($article-˃Content,'[nohtml]'),$zbp-˃Config('simpage')-˃Abstractwords)).'...');{/php}{$description}
{else}
{$article.Intro}
{/if}
2#天兴工作室 (管理员)  评论于 2016-03-25 23:14:01回应ta
I am sorry that I can not English, your question is feedback to the developers, please keep your attention or to the official zblogphp forum will post your question again in order to get timely reply.

欢迎 发表评论

必填

选填

选填

必填

◎欢迎在这里交流反馈,垃圾评论会秒删的额...

联系我们
最新评论
标签云
秒杀2015emlog教程wpimportzblog后台电信利润下拉记载天兴剑侠三视频主题单篇文章调用网龄回馈立体主题动感地带送电动车联通商城全球通商旅套餐话费账单超级201下拉导航seo优化蘑菇M0上网套餐校园版地域长途话费zblogphp单篇文章评论无限嵌套当前页乱码促销活动人造韩寒天兴工作室卢松松博客模板互联网安装协议
热门模板