Legolas28 adlı üyeden alıntı: mesajı görüntüle
<?php function urlDondur($metin) { $url = '/(http|https|ftp|ftps)?(://)?(www.)?[a-zA-Z0-9-.]+.[a-zA-Z]{2,4}(/S*)?/'; return preg_replace($url, '<a href="$0" target="_blank" title="$0">$0</a>', $metin); } ?>
hocam teşekkür ederim fakat bu şekilde sonuç gelmedi
           <?php function urlDondur($metin) { $url = '/(http|https|ftp|ftps)?(://)?(www.)?[a-zA-Z0-9-.]+.[a-zA-Z]{2,4}(/S*)?/'; return preg_replace($url, '<a href="$0" target="_blank" title="$0">$0</a>', $metin); } ?>

 <?php if(!$ayarcek["ayar_duyurulink"]){}else{ ?><a><?php echo urlDondur($ayarcek['ayar_duyurulink']); ?></a><?php } ?>