tag 页找不到标签的问题解决 (推荐学习:织梦CMS)
当我们点击 tags.php 页的某个标签的时候,有时会提示:“系统无此标签,可 能已经移除!”
但是我们检查程序后台,以及前台显示页面。这个标签确实存在,如果解决这个问题那?
解决方法:
打开这个文件:
找到 $tag = FilterSearch(URLdecode($tag));
即可解决这个问题。
1.在 /include/common.func.php 中加入如下函数
function getTagStyle() { $minFontSize=8; //最小字体大小,可根据需要自行更改 $maxFontSize=18; //最大字体大小,可根据需要自行更改 return 'font-size:'.($minFontSize+lcg_valUE()*(abs($maxFontSize-$minFontSize))).'px; color:#'.dechex(rand(0,255)).dechex(rand(0,196)).dechex(rand(0,255)); }登录后复制
{dede:tag row='45' getall='1' sort='hot'} <a gstyle>[Field:tag /]</a> {/Dede:tag}登录后复制