Automatic rel="nofollow" in outgoing links
25 Feb 2008, 17:51
Article category: IP.Board
Open: sources/classes/bbcode/class_bbcode_core.php
Find:
return ( isset($url['st']) ? $url['st'] : '' ) . "<a href="".$url['html']."" target="_blank">".$show."</a>" . $url['end'];
Replace to:
/**
* Spanner DEV MOD URL
*/
$find = "{$this->ipsclass->vars['board_url']}";
$pos = strpos($url['html'], $find);
if ($pos === false) {
$link = ' rel="nofollow"';
}
else {
$link = '';
}
return ( isset($url['st']) ? $url['st'] : '' ) . "<a href="".$url['html']."" target="_blank"" .$link. ">".$show."</a>" .$url['end'];
Save changes and upload file.
Article category: IP.Board


Facebook
Google+
Twitter
Digg
Blip
