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.
相关推荐
- 直接在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
取消回复欢迎 你 发表评论:
- 最新文章
- 热文排行
- 最多评论
- 1主题的暗黑模式是什么?怎么设置和使用暗黑模式?01-19
- 2zblog判断插件是否安装或者启用的代码介绍01-16
- 3translate3d和z-index冲突导致z-inde值无效的解决办法01-10
- 4zblogphp提示“ Call to undefined function openssl_pkey_get_public()”的原因和解决办法12-25
- 5zblogphp1.6版本报错“非法访问”的原因和解决办法12-23
- 6wordpress导航栏自定义添加class和rel="nofollow"的步骤12-13
- 7swiper做导航栏时自动跳转至对应分类的代码12-07
- 8zblogphp自带js框架评论接口大全12-04
- 9wordpress提示"Error establishing a database connection"的解决办法11-10
- 标签聚合
- ×1zblogcsm模板×146元C×1天兴工作室会员×1SuperSlide×1导航栏固定×1短信签名×1校庆×1红色企业模板×1扁平化×1流量超出×1滚动条美化×110658888×1飞Young学子包×1联通商城×1仿聚划算×1免费体验×1XML-RPC协议地址×1会员注册×1校园大V网×1在线QQ客服
最新评论
-
中加达移民
个人买过这个网站的主题,可以付责任的说,主题很好好用。另外我不是托! -
吸料机
已经解决 -
xinling2020.com
我今天在路上还在想我的个人博客要是写到1W文章数量会不会崩,看到这几十万我就放心了。这辈子也不可能有这样的数据~!哈哈 -
访客
不知道百度**收录怎么样 -
天兴工作室
这玩意你看下php手册啊https://www.php.net/manual/zh/function.date.php,m就是星期几
有 2 位网友评论:
涂涂研版 5年前 (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}
天兴工作室 5年前 (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.