![]() |
![]() |
|
|
|||||||
| Programmierung Rat & Tat für Programmierer |
|
|
Themen-Optionen | Ansicht |
|
|
#9 | |
|
Inventar
![]() |
Zitat:
ich posten den code nochmal: if(substr_count(strtolower($text),"[url]") >= 1) { if(!substr_count(strtolower($text),"[url]http://www.") >= 1){ $text = str_replace("[url]www.","[url]http://www.",$text); } $text = preg_replace("/\[url\](.*?)\[\/url\]/i","<a href=\"$1\">$1</a>", $text); } if(substr_count(strtolower($text),"[url=") >=1){ $text = str_replace("[url=www.","[url=http://www.",$text); $text = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/i","<a href=\"$1\">$2</a>", $text); } |
|
|
|
|
| Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1) | |
|
|