Тема: [Релиз] noindex и nofollow ссылки.
Предназначение - закрытие индекса на все ссылки с вашего форума (нефиг распылять тИЦ и ПР) :
1. Открываем : /include/parser.php и ищем :
else
return '<a href="'.$full_url.'">'.$link.'</a>';vЗаменяем на :
else
return '<noindex><a href="/go.php?'.$full_url.'" target="_blank" rel="nofollow">'.$link.'</a></noindex>';Ищем :
if ($alt == null)
$alt = $url;
$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';Заменяем на :
if ($alt == null)
$alt = $url;
$img_tag = '<noindex><a target="_blank" href="/go.php?'.$url.'"><'.$lang_common['Image link'].'></a></noindex>';2. В корне вашего фтп (тобиш в корне форума) создаем файл go.php , в него тыкаем :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Подождите.</title>
<meta http-equiv="refresh" content="5; url=<?=$_SERVER['QUERY_STRING']?>">
<script type="text/javascript">
//<![CDATA[
// Fix Mozilla bug: 209020
if ( navigator.product == 'Gecko' )
{
navstring = navigator.userAgent.toLowerCase();
geckonum = navstring.replace( /.*gecko\/(\d+)/, "$1" );
setTimeout("moz_redirect()",1500);
}
function moz_redirect()
{
var url_bit = "<?=$_SERVER['QUERY_STRING']?>";
window.location = url_bit.replace( new RegExp( "&", "g" ) , '&' );
}
//>
</script>
</head><body>
<div id="redirectwrap">
<h4><b>Forum say : </b></h4>
<p>You go out from our board ... wait plz .. 5 second</p>
<p class="redirectfoot">(<a href="<?=$_SERVER['QUERY_STRING']?>">Or put here if you don`t gone wait ... </a>)</p>
</div>
</body></html>И о чудо, у вас ноиндекс ссылки.
Поглядеть как работает, можете на моём форуме - board.100nt.ru .
Соответственно, афтор zenn (c):D:D