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.
相关推荐
- 百度小程序辣鸡么?12-07
- 直接在zblog文件管理-zb-users中找到源代码进行修改后提交并没有变化?只不能在源代码上直接修改吗?08-26
- 【z-blog】文章发布后打开错误问题05-31
- 模板在手机微信打开不能识别二维码05-04
- 刚安装的zblog装了几个插件 再登陆后台就提示这个了 为什么?04-10
- 我用的是nginx服务器虚拟主机,如何在zblogphp程序网站上屏弊一些IP访问?03-24
- zblogphp french translate trouble03-23
- UEditor编辑器上加【短代码 快捷插入 图片】功能的小插件03-13
- zblog php 文章也可以根据 {module:gg}这样调用“include”吗03-12
- zblog 接入百度站长搜索01-29
欢迎 你 发表评论: 取消回复
- 最新文章
- 热文排行
- 最多评论
- 1天兴用户中心插件“微信通知”功能设置教程11-09
- 2阿里云2024双11活动推荐 通过本站链接参与另外赠送本站代金券11-05
- 3天兴工作室官网购物活动:全场8折优惠券 不限次数不限金额04-17
- 4天兴工作室zblog纯博客主题 vue3+小程序双版本03-19
- 5vue3项目引入vant报错的错误原因和解决办法03-12
- 6天兴工作室zblog百科主题 可搭配会员插件实现知识付费盈利03-06
- 7zblog怎么截取指定字数的摘要?zblog摘要自定义截取方法介绍02-29
- 8天兴工作室2023双11活动:五折优惠券大放送11-05
- 9腾讯云2023双11活动:2H2G3M轻量服务器88一年限新用户11-05
- 标签聚合
- ×7zblog后台×1zblog数据能力×2wordpress上一篇×2html×3用户中心×1zblog更新缓存×1产品营销主题×1js×2zblog bug×1标题优化×1主题演示×1开发者模式×2网页特效×1免费模板×1zblog分页×1zblogphp1.3下载×1301×1旅游模板×1老家×4优惠活动
最新评论
-
阿浩
11-09大佬们,丢几个除了作者以外的演示站,我想看看大家的布局设置 -
有趣生活
10-22一直想开发zblog的功能,zblog的敷在不知道够够不够 -
访客
10-16发布文章时候,那怎么改默认状态呢比如改成默认审核状态? -
访客
09-1410万数据已经卡出翔 -
aimidongg
09-11没有下载地址了?
有 2 位网友评论:
涂涂研版 9年前 (2016-03-25) 回复
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}
天兴工作室 9年前 (2016-03-25) 回复
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.