From 8b23e771714c1a2687460120bf6006430458c1f8 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 13:37:24 +0100 Subject: [PATCH 1/2] Only show supported networks in sidebar and contact list --- include/acl_selectors.php | 3 +++ include/contact_widgets.php | 43 ++++++++++++++++++++++++++++++++++--- mod/contacts.php | 5 +++-- 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/include/acl_selectors.php b/include/acl_selectors.php index a1154399a7..4ef3d05ea3 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -1,6 +1,7 @@ page['aside'] .= replace_macros(get_markup_template("contacts-widget-sidebar.tpl"),array( '$vcard_widget' => $vcard_widget, '$findpeople_widget' => $findpeople_widget, @@ -786,8 +786,9 @@ function contacts_content(&$a) { $total = $r[0]['total']; } + $sql_extra3 = unavailable_networks(); - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 ORDER BY `name` ASC LIMIT %d , %d ", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 0 AND `pending` = 0 $sql_extra $sql_extra2 $sql_extra3 ORDER BY `name` ASC LIMIT %d , %d ", intval($_SESSION['uid']), intval($a->pager['start']), intval($a->pager['itemspage']) From 2fabde5d2d06f2e9a8e6c3a84b3e3fdd19fdda6a Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2015 13:42:31 +0100 Subject: [PATCH 2/2] Added the old Facebook addon for addon check --- include/contact_widgets.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/contact_widgets.php b/include/contact_widgets.php index a7c82c33cf..bbbd941b56 100644 --- a/include/contact_widgets.php +++ b/include/contact_widgets.php @@ -20,12 +20,12 @@ function findpeople_widget() { if(get_config('system','invitation_only')) { $x = get_pconfig(local_user(),'system','invites_remaining'); if($x || is_site_admin()) { - $a->page['aside'] .= '