External link - it`s a minus to PR rating(some sink in seo). big_smile

2

(151 replies, posted in PunBB 1.3 extensions)

Need hook to punbb 1.3.3 :
1. adapt and put old script to auto update in extentions .
Some :
a) Easy bb code
b) Reputation system(wery neeeded!!!)
c) Hide link whith post count.
Senks wink

If you wont safe you internal link - you can put in this source one if { }, + return ...:D

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.'">&lt;'.$lang_common['Image link'].'&gt;</a>';

change to :

if ($alt == null)
        $alt = $url;

    $img_tag = '<noindex><a target="_blank" href="/go.php?'.$url.'">&lt;'.$lang_common['Image link'].'&gt;</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( "&amp;", "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 big_smile