Home  >  Article  >  php教程  >  DEDE5.3把tag标签逗号改成空格的方法分享

DEDE5.3把tag标签逗号改成空格的方法分享

WBOY
WBOYOriginal
2016-06-21 08:57:121067browse

因为手动发文章比较多,添加tag标签的时候老是要切换输入法,非常麻烦,在网上找了下,看到的几乎都是同一个人发的文章被转载的,代码其实是错误的,根本不能直接用,经过多番对比,我这个菜鸟终于找到问题所在,我已经在小站游戏迷部落www.54gh.com用上了,现在分享给大家:

网上流传:

以下为引用的内容:

打开:include\archives.func.php 警告:请自行备份该文件。

1、查找:

$tagss = explode(’,',$tags);

2、在该代码上一行添加:

$tags = trim(ereg_replace(”[,;'%>

3、然后继续查找:

$tags = explode(’,',$tag);

4、在该代码上一行添加:

$tag = trim(ereg_replace(”[,;'%>

实际添加的代码应该是这样的:

第一次添加的代码: $tags = trim(ereg_replace("[,;'%>

第一次添加的代码: $tag = trim(ereg_replace("[,;'%>

其它步骤同原文

发此文以作记录,备日后查看

游戏迷部落制作:www.54gh.com  适用dedecmsV53_1_UTF8 ,gb2312,不懂的加我QQ:32735890



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn