From b8d328076384ff48be47f59366aea8b1e1cc04a1 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 29 May 2015 13:08:01 +0200 Subject: some fixes to make menu sharing work and expose it in the ui. --- include/bbcode.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 1f5a65399..a766b6aea 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -193,6 +193,9 @@ function translate_design_element($type) { case 'block': $ret = t('block'); break; + case 'menu': + $ret = t('menu'); + break; } return $ret; -- cgit v1.2.3 From edd228decb5ef4c3ffa2a8be00983937680a56c2 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 30 May 2015 15:03:44 -0700 Subject: strip images from directory text entries --- include/bbcode.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 1f5a65399..9ec5ce22f 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -954,3 +954,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) { return $Text; } + + +function strip_bbimage($s) { + $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text); +} \ No newline at end of file -- cgit v1.2.3 From 5cc5e0fafdbc1795781b52124a63695ce3e2d49f Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 31 May 2015 18:35:35 -0700 Subject: some basic background work for activitystreams-json-ld-2.0 conversions --- include/bbcode.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index f4d9bb525..e2403b8eb 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -958,6 +958,14 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) { return $Text; } +/** + * This function exists as a short-term solution to folks linking to private images from their /cloud in + * their profiles, which brings up a login dialogue in the directory when that entry is viewed. + * The long term solution is to separate the web file browser from DAV so that you'll never see a + * login prompt (though the resource may return a permission denied). + */ + + function strip_bbimage($s) { $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text); -- cgit v1.2.3