hey all… i have 1 script which has similarities forums but more like urbandictionary…
anyway i need some codes to name hypelinks automatically which are added by users. shortly, i want script to show it in texts
“example” ==> it must redirect me a website when i click on it… (this is only example word, it must depend according to the writings of users)
instead of:
the codes which the script already includes about hyperlink:
[php]if ($string)
$mesaj = preg_replace("’$string’Ui","$string",$mesaj);
$mesaj = preg_replace("’(http://(.*))'Ui","<a target=blank_ href=“http\3://\1”>http\3://\1",$mesaj);[/php]
and about link button which is located next to text box (opens another input box):
<input type="button" class="but" onclick="var a=prompt('<?=$language[link_adress]?>', 'http://');if(a.length>0&&a!='<?=$language[link]?>: http://')hen('d', '(' + a + '', ')', '');" value="http://" title="link" />