Automatyczne rel="nofollow" w linkach wychodzących

25 lut 2008, 17:51

Otwórz: sources/classes/bbcode/class_bbcode_core.php


Znajdź:


return ( isset($url['st']) ? $url['st'] : '' ) . "<a href="".$url['html']."" target="_blank">".$show."</a>" . $url['end'];


Zamień na:



/**
* 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'];


Zapisz zmiany i wgraj na serwer.


Kategoria artykułu: IP.Board