################################################################ 
## MOD Title: RLink 
## MOD Author: Andreas http://www.2lucky.de 
##             von Dungeonwatcher W3 konform berarbeitet und
##             validiert
## Install: Enclave http://www.yourboard.ch
## MOD Description: Fgt ein Hinweis bei Links hinzu, dass das
## Board nicht verantwortlich ist!
## MOD Version: 1.0.1
## 
## Installation Level: (Easy) 
## Installation Time: 5 Minutes 
## Files To Edit: bbcode.php, bbcode.tpl, rlink/config.php
## Included Files: /rlink
################################################################ 
## For Security Purposes, Please Check: http://www.yourboard.ch/
## for the latest version of this MOD. Downloading this MOD from
## other sites could cause malicious code to enter into your
## phpBB Forum. As such, phpBB will not offer support for MOD's
## not offered in our MOD-Database,
## located at: http://www.phpbb.com/mods/ 
#################################################################
## Author Notes: 
## This Install was write from Enclave http://www.yourboard.ch  
## I give support for this Mod on http://www.yourboard.ch
## Don`t forget the Link to you Board!!!
##
#################################################################
## MOD History: 
##
##   2006-08-26 - Version 1.0.1
##      - W3C correspondent validates
## 
##   2004-08-29 - Version 1.0.0 
##      - First Release 
## 
################################################################ 
## Before Adding This MOD To Your Forum, You Should Back Up All
## Files Related To This MOD 
################################################################

# 
#-----[ OPEN ]------------------------------------------ 
#

rlink/config.php

# 
#-----[ FIND ]------------------------------------------ 
#

$website = "deinForum.ch";
$website_url = "http://www.deinforum.ch";

# 
#-----[ change and save ]-------------------------------
#

# 
#-----[ COPY ]------------------------------------------ 
# 

copy /rlink to root

# 
#-----[ OPEN ]------------------------------------------ 
# 

includes/bbcode.php

# 
#-----[ FIND ]------------------------------------------ 
#

$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);

# 
#-----[ replace with ]----------------------------------
# 

$ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"http://www.deinforum.ch/phpBB2/rlink/rlink.php?url=\\2\" target=\"_blank\">\\2</a>", $ret);

# 
#-----[ FIND ]------------------------------------------ 
#

$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);

# 
#-----[ replace with ]----------------------------------
# 

$ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://www.deinforum.ch/phpBB2/rlink/rlink.php?url=http://\\2\" target=\"_blank\">\\2</a>", $ret);


# 
#-----[ OPEN ]------------------------------------------ 
# 

templates/yourstyle/bbcode.tpl

# 
#-----[ FIND ]------------------------------------------ 
#

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->

# 
#-----[ REPLACE WITH ]----------------------------------
# 

<!-- BEGIN url --><a href="http://www.yourboard.ch/phpBB2/rlink/rlink.php?url={URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->


# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 