i have a website like forum not exactly forum but similar. honestly, i bought it cos i didnt have any idea for php. but something about linking is not as i want. for example:
when i link some webpage it shows the link
but i want a system to show link link
here hello is just an example. it must depend whatever a user writes.
i want exactly in textbox to choose a word by mouse and when i click link button to write the link and in message when i send it will show me "the word" which i wrote and chose before link box for linking. otherwise, if i dont choose a word before link button, it will show me the link orginally.
here are my codes about linking in system:
if ($string) $mesaj = preg_replace("'$string'Ui","<SPAN class=marker>$string</SPAN>",$mesaj); $mesaj = preg_replace("'\(http://(.*)\)'Ui","<a target=blank_ href=\"http\\3://\\1\">http\\3://\\1</a>",$mesaj);
and for link box:
<input type="button" class="but" onclick="var a=prompt('<?=$language[link_adress]?>', 'http://');if(a.length>0&&a!='<?=$language[picture]?>: http://')hen('d', '(' + a + '', ')', '');" value="http://" title="link" />
if i need to write something other code please tell me...