Home > Backend Development > PHP Tutorial > 去掉destoon资讯内容页keywords关键字自带的文章标题的方法_PHP

去掉destoon资讯内容页keywords关键字自带的文章标题的方法_PHP

WBOY
Release: 2016-05-31 19:30:08
Original
910 people have browsed it

本文实例讲述了去掉destoon资讯内容页keywords关键字自带的文章标题的方法,具体实现方法如下:

\module\article目录下的article.class.php文件中的大约158行找到:

$keyword = $item['title'].','.($item['tag'] ? str_replace(' ', ',', trim($item['tag'])).',' : '').strip_tags(cat_pos(get_cat($item['catid']), ','));

Copy after login

改为:

$keyword = str_replace(' ', ',', trim($item['tag']));

Copy after login

即可。

希望本文所述方法对大家destoon开发有所帮助。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template