UBB.Dev
Posted By: Kronic Inactive Links - 11/16/2002 10:01 PM
Was just wondering if there was a mod or hack to disable links from being active on a board.
Posted By: Charles Capps Re: Inactive Links - 11/17/2002 2:56 AM
Uh, can you rephrase the question?
Posted By: jordo Re: Inactive Links - 11/17/2002 4:42 AM
He wants to make [ URL ] type (or any other I suppose) links not have the a href tag inserted.

in ubb_lib.cgi:
delete:
Quote
code:
Code
	$check =~ s/(^|s)(http://S+)(.|,|))?/$1<a href="$2" target="_blank">$2</a>$3/isg;
$check =~ s/(^|s)(https://S+)(.|,|))?/$1<a href="$2" target="_blank">$2</a>$3/isg;
$check =~ s/(^|s)(ftp://S+)(.|,|))?/$1<a href="$2" target="_blank">$2</a>$3/isg;
$check =~ s/(^|s)(www.S+)(.|,|))?/$1<a href="http://$2" target="_blank">$2</a>$3/isg;

replace:
code:
[qb]
Code
	if($string) {
$returner = qq~<a href="$orig"$target>$wording</a>~;
} else {
$returner = q! ! . $orig . q!!;
} # end if
[/qb]
with:
Code
	$returner = q! ! . $orig . q!!;
That should do it, but it's not tested so backup first.
© UBB.Developers