From c410c9013c062a9a4fce1f887572a1b1c951afbe Mon Sep 17 00:00:00 2001 From: Friendika Date: Sun, 26 Jun 2011 22:57:08 -0700 Subject: friend suggestions --- mod/contacts.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/contacts.php') diff --git a/mod/contacts.php b/mod/contacts.php index e7a800500..444e6dec4 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -268,6 +268,10 @@ function contacts_content(&$a) { if($r[0]['last-update'] !== '0000-00-00 00:00:00') $last_update .= ' ' . (($r[0]['last-update'] == $r[0]['success_update']) ? t("\x28Update was successful\x29") : t("\x28Update was not successful\x29")); + $lblsuggest = (($r[0]['network'] === NETWORK_DFRN) + ? '
' . t('Suggest friends') . '
' : ''); + + $o .= replace_macros($tpl,array( '$header' => t('Contact Editor'), '$submit' => t('Submit'), @@ -284,6 +288,7 @@ function contacts_content(&$a) { '$altcrepair' => t('Repair contact URL settings'), '$lblcrepair' => t("Repair contact URL settings \x28WARNING: Advanced\x29"), '$lblrecent' => t('View conversations'), + '$lblsuggest' => $lblsuggest, '$grps' => $grps, '$delete' => t('Delete contact'), '$poll_interval' => contact_poll_interval($r[0]['priority']), -- cgit v1.2.3 From e6aaa8b59b138f4195fb7f1e93b9b14980c309c3 Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 2 Jul 2011 01:21:56 -0700 Subject: use local 'match people with my interests' if global directory is not configured --- mod/contacts.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mod/contacts.php') diff --git a/mod/contacts.php b/mod/contacts.php index 444e6dec4..7a97b53d2 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -11,8 +11,9 @@ function contacts_init(&$a) { if($a->config['register_policy'] != REGISTER_CLOSED) $a->page['aside'] .= ''; - if(strlen(get_config('system','directory_submit_url'))) - $a->page['aside'] .= ''; + + $a->page['aside'] .= ''; $tpl = get_markup_template('follow.tpl'); $a->page['aside'] .= replace_macros($tpl,array( -- cgit v1.2.3