| |
discuzcode.func.php里面



$urllink = "<a href=\"".(substr(strtolower($url), 0, 4) == 'www.' ? "http://$url" : $url).'" target="_blank">';


改链接无效
改为

$urllink = "<a href=\"".(substr(strtolower($url), 0, 4) == 'www.' ? "http://$url" : $url).'" target="_blank" rel="nofollow">';


改颜色
改为

$urllink = "<a href=\"".(substr(strtolower($url), 0, 4) == 'www.' ? "http://$url" : $url).'" target="_blank" style="color: red">';

6.1的找到这段自己改覆盖掉吧



function parseurl($url, $text) {
  if(!$url && preg_match("/((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k|thunder|synacast){1}:\/\/|www\.)[^\[\"']+/i", trim($text), $matches)) {
    $url = $matches[0];
    $length = 65;
    if(strlen($url) > $length) {
      $text = substr($url, 0, intval($length * 0.5)).' ... '.substr($url, - intval($length * 0.3));
    }
    return '<a href="'.(substr(strtolower($url), 0, 4) == 'www.' ? 'http://'.$url : $url).'" target="_blank" rel="nofollow">'.$text.'</a>';
  } else {
    $url = substr($url, 1);
    if(substr(strtolower($url), 0, 4) == 'www.') {
      $url = 'http://'.$url;
    }
    return '<a href="'.$url.'" target="_blank" rel="nofollow">'.$text.'</a>';
  }
}
不指定 2008年6月25日 20:04, Marshal, seo, 评论(3), 阅读(6516)
maxgo
2008年6月27日 10:59
呵呵,原来是改错了 zan
maxgo Email
2008年6月27日 10:35
如果Marshal老兄知道请告知cry
MaxGO Email
2008年6月27日 10:26
这个改了好像只能替换直接输入http地址的,而使用UBB的不能替换cry
分页: 1/1 第一页 1 最后页
发表评论
开启/隐藏 高级扩展
昵称
密码  游客无需密码
网址
电邮   [注册]