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
- 关于建立新页面的问题01-27
- ZBLOGPHP能用PHP7吗?01-19
- 请问zblog php的robots.txt怎么写?12-31
- 文章下面如果要加顶踩点赞功能怎么实现12-07
- 天兴工作室:自适应|单栏|简洁zblog主题 安装后启用主题报错!11-16
- 请问首页调用指定栏目名和链接的代码是多少啊?11-01
欢迎 你 发表评论: 取消回复
- 最新文章
- 热文排行
- 最多评论
- 1天兴工作室官网购物活动:全场8折优惠券 不限次数不限金额04-17
- 2天兴工作室zblog纯博客主题 vue3+小程序双版本03-19
- 3vue3项目引入vant报错的错误原因和解决办法03-12
- 4天兴工作室zblog百科主题 可搭配会员插件实现知识付费盈利03-06
- 5zblog怎么截取指定字数的摘要?zblog摘要自定义截取方法介绍02-29
- 6天兴工作室2023双11活动:五折优惠券大放送11-05
- 7腾讯云2023双11活动:2H2G3M轻量服务器88一年限新用户11-05
- 8新老同享 阿里云2023双11活动:2核2G3M带宽云服务器99元/年!10-31
- 9天兴工作室zblog免登录付费阅读插件 支持支付宝微信支付虎皮椒支付10-09
- 标签聚合
- ×1腾讯云2019×1指定分类×1zblog时间戳×1顶踩×1阳新×12015国庆节×1zblog后台打不开×1黑链×1本地安装zblog×1二级域名×1科技博客×1春节放假通知×1网格×1响应式导航栏×1产品营销主题×1emlog搬家×1收款×1获取分类ID×1zblog三级分类×1分类别名
最新评论
-
天兴工作室
07-05可以看下更新记录,上个月29日才更新的 -
访客
07-05现在这个主题还更新吗 -
天兴工作室
06-15打开编辑文字,选中代码语言,然后不管是回车断行还是复制粘贴,都不会被分为一行一框啊,所以没理解你是咋办到的 -
访客
06-14zblog文章中发多行代码,被分成一行一个框,一行一个框,如何调整成和你的一样的一段代码在一个框中 -
天兴工作室
06-13这个功能本来就有
有 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.