*[[PukiWiki 外部リンクのrel=nofollowをはずす方法:http://www.cycleof5th.com/tips/index.php?date=2007-05-14/1]] [#s5491a80] lib/make_link.phpは、PukiWikiでリンクのHTMLコードを生成し、この中のクラスLink_urlにて通常のハイパーリンクを生成しているようです。このクラスのtoStringメソッドを修正します。 lib/make_link.phpは、PukiWikiでリンクのHTMLコードを生成し、この中のクラスLink_urlにて通常のハイパーリンクを生成しているようです。 このクラスのtoStringメソッドを修正します。 > function toString() { // if (FALSE) { if( preg_match( '/example.com/', $this->name ) ) { $rel = ''; } else { $rel = ' rel="nofollow"'; } return '<a href="' . $this->name . '"' . $rel . '>' . $this->alias . '</a>'; } [[PHP/PukiWiki]]