From c0b59ae36a5ef31b9071edb991f63d4800e21a9d Mon Sep 17 00:00:00 2001 From: habeascodice Date: Sun, 28 Sep 2014 19:30:47 -0700 Subject: [PATCH 1/3] Typo in regex causes runtime error --- include/identity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/identity.php b/include/identity.php index eaeb9f07f..b99bbe9c9 100644 --- a/include/identity.php +++ b/include/identity.php @@ -364,7 +364,7 @@ function create_identity($arr) { if($role_permissions) { set_pconfig($newuid,'system','permissions_role',$arr['permissions_role']); if(array_key_exists('online',$role_permissions)) - set_pconfig('system','hide_presence',1-intval($role_permissions['online'])); + set_pconfig($newuid,'system','hide_presence',1-intval($role_permissions['online'])); } // Create a group with yourself as a member. This allows somebody to use it From 5f58603158e6da52547e4ef88c38f6804917ab82 Mon Sep 17 00:00:00 2001 From: habeascodice Date: Sun, 28 Sep 2014 19:32:13 -0700 Subject: [PATCH 2/3] relevant now that site statistics are all the hotness --- doc/plugins.bb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/plugins.bb b/doc/plugins.bb index 099f9fdf4..7709976c4 100644 --- a/doc/plugins.bb +++ b/doc/plugins.bb @@ -240,6 +240,11 @@ we will create an argc/argv list for use by your module functions 3 whatever [/code] +If you want to keep your plugin hidden from the siteinfo page, simply create a file called '.hidden' in your addon directory +[code] + touch addon//.hidden +[/code] + ***Porting Friendica Plugins*** The Red Matrix uses a similar plugin architecture to the Friendica project. The authentication, identity, and permissions systems are completely different. Many Friendica can be ported reasonably easily by renaming a few functions - and then ensuring that the permissions model is adhered to. The functions which need to be renamed are: From c07643e407aab16ecabfdf5f641166583e02ec36 Mon Sep 17 00:00:00 2001 From: habeascodice Date: Sun, 28 Sep 2014 19:33:37 -0700 Subject: [PATCH 3/3] Allows extra content to be inserted at end of profile_photo page. Needed for openclipatar addon. --- mod/profile_photo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/profile_photo.php b/mod/profile_photo.php index c587b9606..aad9c9d16 100644 --- a/mod/profile_photo.php +++ b/mod/profile_photo.php @@ -364,7 +364,9 @@ function profile_photo_content(&$a) { // FIXME - yuk '$select' => sprintf('%s %s', t('or'), ($newuser) ? '' . t('skip this step') . '' : '' . t('select a photo from your photo albums') . '') )); - + + call_hooks('profile_photo_content_end', $o); + return $o; } else {