add zrl stuff - still a lot of new stuff missing but I'm not going to do it all.
This commit is contained in:
parent
d84f03d59b
commit
6e2208394a
@ -281,6 +281,14 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
|
|||||||
$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '', $Text);
|
$Text = preg_replace("/\[img\](.*?)\[\/img\]/", '', $Text);
|
||||||
$Text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/", '', $Text);
|
$Text = preg_replace("/\[img\=(.*?)\](.*?)\[\/img\]/", '', $Text);
|
||||||
|
|
||||||
|
$Text = preg_replace("/\[zrl\]([$URLSearchString]*)\[\/zrl\]/ism", '[$1]($1)', $Text);
|
||||||
|
$Text = preg_replace("/\#\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '[#$2]($1)', $Text);
|
||||||
|
$Text = preg_replace("/\[zrl\=([$URLSearchString]*)\](.*?)\[\/zrl\]/ism", '[$2]($1)', $Text);
|
||||||
|
|
||||||
|
|
||||||
|
$Text = preg_replace("/\[zmg\](.*?)\[\/zmg\]/", '', $Text);
|
||||||
|
$Text = preg_replace("/\[zmg\=(.*?)\](.*?)\[\/zmg\]/", '', $Text);
|
||||||
|
|
||||||
// Perform MAIL Search
|
// Perform MAIL Search
|
||||||
$Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text);
|
$Text = preg_replace("(\[mail\]([$MAILSearchString]*)\[/mail\])", '[$1](mailto:$1)', $Text);
|
||||||
$Text = preg_replace("/\[mail\=([$MAILSearchString]*)\](.*?)\[\/mail\]/", '[$2](mailto:$1)', $Text);
|
$Text = preg_replace("/\[mail\=([$MAILSearchString]*)\](.*?)\[\/mail\]/", '[$2](mailto:$1)', $Text);
|
||||||
|
Reference in New Issue
Block a user