您的位置:SupeSite/X-Space官方站 >> 论坛 >> 安装使用 >> 查看帖子
字体: 小 中 大
普通农民 发表于: 2008-6-10 02:11 来源: SupeSite/X-Space官方站
CODE:
if($_DCACHE['tags'][$key] && @strexists($text, $replaceword)) { $text = str_replace($replaceword, '<span href="tag.php?name='.rawurlencode($replaceword).'" onclick="tagshow(event)" class="t_tag">'.$replaceword.'</span>', $text); unset($_DCACHE['tags'][$key]); }
if($_DCACHE['tags'][$key] && @strexists($text, $replaceword)) { //$text = str_replace($replaceword, '<span href="tag.php?name='.rawurlencode($replaceword).'" onclick="tagshow(event)" class="t_tag">'.$replaceword.'</span>', $text); unset($_DCACHE['tags'][$key]); }
.postmessage span.t_tag { cursor: pointer; border-bottom: 1px solid #F00; white-space: nowrap; }
最新回复
打开 /include/discuzcode.func.php ,查找:
CODE:
if($_DCACHE['tags'][$key] && @strexists($text, $replaceword)) {改为:$text = str_replace($replaceword, '<span href="tag.php?name='.rawurlencode($replaceword).'" onclick="tagshow(event)" class="t_tag">'.$replaceword.'</span>', $text);
unset($_DCACHE['tags'][$key]);
}
CODE:
if($_DCACHE['tags'][$key] && @strexists($text, $replaceword)) {别看这么多,其实就是在“$ext =”前边加个“//”而已……//$text = str_replace($replaceword, '<span href="tag.php?name='.rawurlencode($replaceword).'" onclick="tagshow(event)" class="t_tag">'.$replaceword.'</span>', $text);
unset($_DCACHE['tags'][$key]);
}
以上方法是同时将tag链接也屏蔽掉的,如果只是不让它显示下划线,保留内部链接的话,请这样改:
打开 css.htm (6.1.0是css.common.htm),查找:
CODE:
.postmessage span.t_tag { cursor: pointer; border-bottom: 1px solid #F00; white-space: nowrap; }去掉 “border-bottom: 1px solid #F00; ”就可以了。