怎样实现织梦Dedecms5.7 TAG标签支持大写字母


使用织梦建站的朋友有使用tag标签吗,遇到过点击无效原因吗,我今天就是遇到这问题了,下面是我的解决办法,跟大家分享下:

原因分析 :因为dedecms5.7版本tag标签不支持大写字母

解决方法:打开网站根目录的tags.php文件
把下面一行代码
$tag = trim($_SERVER[‘QUERY_STRING’]);
换成
$tag = strtolower(trim($_SERVER[‘QUERY_STRING’]));
注释:PHP strtolower() 函数

定义和用法

strtolower() 函数把字符串转换为小写。

语法

strtolower(string)
参数    描述
string    必需。规定要转换的字符串。

例子

<?phpecho strtolower(“Hello WORLD!”);?>
输出:hello world!

大家按照上面方法去实现,肯定可以的