Topic: Relise : nofollow & noindex link.
So, i create easy hack (mod) to punbb 1.3.3 - nofollow & noindex link (it`s to seo friend). Follow my step.
1. Open /include/parser.php
Find :
else
return '<a href="'.$full_url.'">'.$link.'</a>';
Change to :
else
return '<noindex><a href="/go.php?'.$full_url.'" target="_blank" rel="nofollow">'.$link.'</a></noindex>';
Find :
if ($alt == null)
$alt = $url;
$img_tag = '<a href="'.$url.'"><'.$lang_common['Image link'].'></a>';
change to :
if ($alt == null)
$alt = $url;
$img_tag = '<noindex><a target="_blank" href="/go.php?'.$url.'"><'.$lang_common['Image link'].'></a></noindex>';
2. In general derectory (main, some "/") create file : go.php , and write to hime :
<!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>
authon hack : zenn (c) , test this : http://board.100nt.ru . senk me