1 (edited by tokyo 2010-07-24 10:00)

Topic: [Solved]Redirect plugin/exten

Im looking for something that redirects all links posted at forum.


(So referrer cant be seen)

Guess it can be solved in diffrent ways

The easiest must be just do make links open a blank window with just an http url contaning the URL or something. So no referrer is shown.

Re: [Solved]Redirect plugin/exten

Study out the "handle_url_tag" function in the "<FORUM_ROOT>/include/parser.php" file, you can add something like this:

href="http://site.com/go.php?$url"

3

Re: [Solved]Redirect plugin/exten

Thank.


I will have a look. big_smile

4

Re: [Solved]Redirect plugin/exten

where in

//
// Make hyperlinks clickable
//
function do_clickable($text)
{
    $text = ' '.$text;

    $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(https?|ftp|news){1}://([\w\-]+\.([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-]?)?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5://$6\', \'$5://$6\', true).stripslashes(\'$4$10$11$12\')', $text);
    $text = preg_replace('#(?<=[\s\]\)])(<)?(\[)?(\()?([\'"]?)(www|ftp)\.(([\w\-]+\.)*[\w]+(:[0-9]+)?(/[^\s\[]*[^\s.,?!\[;:-])?)\4(?(3)(\)))(?(2)(\]))(?(1)(>))(?![^\s]*\[/(?:url|img)\])#ie', 'stripslashes(\'$1$2$3$4\').handle_url_tag(\'$5.$6\', \'$5.$6\', true).stripslashes(\'$4$10$11$12\')', $text);

    return substr($text, 1);

}

Do i add the href tag?

I simply want to stop urls to give a referer

5

Re: [Solved]Redirect plugin/exten

replace parser.php, line 632

return '<a href="'.$full_url.'">'.$link.'</a>';

with

return '<a href="http://hiderefer.com/?'.$full_url.'">'.$link.'</a>';
Eraversum - scifi browser-based online webgame

6

Re: [Solved]Redirect plugin/exten

many thanks