Live links uitschakelen

Hulp nodig bij een modificaties of op zoek naar een MOD? Bekijk ons archief. Support wordt helaas niet meer verleend.
Forumregels

Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
phpBB2.0.x
Gesloten
Sevy
Berichten: 72
Lid geworden op: 08 feb 2005, 16:54

Live links uitschakelen

Bericht door Sevy » 30 jan 2006, 19:19

Hoe doe ik dat?

Gebruikersavatar
Stef
Berichten: 9080
Lid geworden op: 04 jun 2003, 20:47

Bericht door Stef » 30 jan 2006, 19:22

Ik heb geen flauw idee wat je bedoelt.

Gebruikersavatar
-=|Rik|=-
Berichten: 815
Lid geworden op: 02 jan 2004, 19:49
Locatie: Eindhoven

Bericht door -=|Rik|=- » 30 jan 2006, 19:31

Gewoon vragen of ze ze tussen codetags zetten :)
-=|Rik|=- kan schadelijk zijn voor de gezondheid.
Krijg toch allemaal de kolere, val voor mijn part allemaal dood.

Sevy
Berichten: 72
Lid geworden op: 08 feb 2005, 16:54

Bericht door Sevy » 31 jan 2006, 07:53

-=|Rik|=- schreef:Gewoon vragen of ze ze tussen codetags zetten :)
Het is om te voorkomen dat als de mensen dit vergeten mijn site niet gelinkt wordt ;)

Ik weet dat het bestaat, ik heb er ooit eens een scriptje voor gevonden maar ik ben het kwijt :/

ik ben gek
Berichten: 1496
Lid geworden op: 25 mei 2005, 14:09

Bericht door ik ben gek » 31 jan 2006, 12:33

jij bedoelt dit he:
als ik een link plaats.
zoals


http://www.rollercoasterparks.nl

dat ie niet aanklikbaar is?

Sevy
Berichten: 72
Lid geworden op: 08 feb 2005, 16:54

Bericht door Sevy » 31 jan 2006, 15:19

ik ben gek schreef:jij bedoelt dit he:
als ik een link plaats.
zoals


http://www.rollercoasterparks.nl

dat ie niet aanklikbaar is?
Inderdaad!

Sevy
Berichten: 72
Lid geworden op: 08 feb 2005, 16:54

Bericht door Sevy » 03 feb 2006, 11:02

Code: Selecteer alles

##############################################################
## MOD Title: No Live Links!!!
## MOD Author: coolyou007 <coolyou007@gmail.com> dev.coolyou.org 
## MOD Description: This will disable live links
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 2 Minutes
## Files To Edit: 2
##   includes/bbcode.php
##   templates/Subsilver/bbcode.tpl
## Included Files: N/A
##############################################################
## Author Notes:
## This is for kwaksalver
##############################################################
## This MOD is released under the GPL License.
## Intellectual Property is retained by the MOD Author(s) listed above
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#

includes/bbcode.php

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

function make_clickable($text)
{

   // pad it with a space so we can match things at the start of the 1st line.
   $ret = ' ' . $text;

   // matches an "xxxx://yyyy" URL at the start of a line, or after a space.
   // xxxx can only be alpha characters.
   // yyyy is anything up to the first space, newline, comma, double quote or <
   $ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);

   // matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
   // Must contain at least 2 dots. xxxx contains either alphanum, or "-"
   // zzzz is optional.. will contain everything up to the first space, newline,
   // comma, double quote or <.
   $ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);

   // matches an email@domain type address at the start of a line, or after a space.
   // Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
   $ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);

   // Remove our padding..
   $ret = substr($ret, 1);

   return($ret);
}

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

function make_clickable($text)
{

   // pad it with a space so we can match things at the start of the 1st line.
   $ret = ' ' . $text;
/*
   // matches an "xxxx://yyyy" URL at the start of a line, or after a space.
   // xxxx can only be alpha characters.
   // yyyy is anything up to the first space, newline, comma, double quote or <
   $ret = preg_replace("#(^|[\n ])([\w]+?://[^ \"\n\r\t<]*)#is", "\\1<a href=\"\\2\" target=\"_blank\">\\2</a>", $ret);

   // matches a "www|ftp.xxxx.yyyy[/zzzz]" kinda lazy URL thing
   // Must contain at least 2 dots. xxxx contains either alphanum, or "-"
   // zzzz is optional.. will contain everything up to the first space, newline,
   // comma, double quote or <.
   $ret = preg_replace("#(^|[\n ])((www|ftp)\.[^ \"\t\n\r<]*)#is", "\\1<a href=\"http://\\2\" target=\"_blank\">\\2</a>", $ret);
*/
   // matches an email@domain type address at the start of a line, or after a space.
   // Note: Only the followed chars are valid; alphanums, "-", "_" and or ".".
   $ret = preg_replace("#(^|[\n ])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)#i", "\\1<a href=\"mailto:\\2@\\3\">\\2@\\3</a>", $ret);

   // Remove our padding..
   $ret = substr($ret, 1);

   return($ret);
}

#
#-----[ OPEN ]------------------------------------------
#
templates/Subsilver/bbcode.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->
#
#-----[ REPLACE WITH ]------------------------------------
#
<!-- BEGIN url -->{URL}<!-- END url -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM

Gesloten