1
0
Fork 0

profile match

This commit is contained in:
Friendika 2011-03-21 21:43:22 -07:00
parent c74367e4c2
commit ee11a74d0b
4 changed files with 15 additions and 4 deletions

View file

@ -9,7 +9,10 @@ function contacts_init(&$a) {
$a->page['aside'] .= group_side(); $a->page['aside'] .= group_side();
if($a->config['register_policy'] != REGISTER_CLOSED) if($a->config['register_policy'] != REGISTER_CLOSED)
$a->page['aside'] .= '<div class="side-invite-link-wrapper" id="side-invite-link-wrapper" ><a href="invite" class="side-invite-link" id="side-invite-link">' . t("Invite Friends") . '</a></div>'; $a->page['aside'] .= '<div class="side-link" id="side-invite-link" ><a href="invite" >' . t("Invite Friends") . '</a></div>';
if(strlen(get_config('system','directory_submit_url')))
$a->page['aside'] .= '<div class="side-link" id="side-match-link"><a href="match" >' . t('Find People With Shared Interests') . '</a></div>';
$tpl = load_view_file('view/follow.tpl'); $tpl = load_view_file('view/follow.tpl');
$a->page['aside'] .= replace_macros($tpl,array( $a->page['aside'] .= replace_macros($tpl,array(
@ -18,6 +21,8 @@ function contacts_init(&$a) {
'$follow' => t('Follow') '$follow' => t('Follow')
)); ));
} }
function contacts_post(&$a) { function contacts_post(&$a) {

View file

@ -7,7 +7,7 @@ function match_content(&$a) {
if(! local_user()) if(! local_user())
return; return;
$o .= '<h2>' . t('Profile Keyword Match') . '</h2>'; $o .= '<h2>' . t('Profile Match') . '</h2>';
$r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1", $r = q("SELECT `pub_keywords`, `prv_keywords` FROM `profile` WHERE `is-default` = 1 AND `uid` = %d LIMIT 1",
intval(local_user()) intval(local_user())

View file

@ -2154,7 +2154,7 @@ a.mail-list-link {
float: left; float: left;
text-align: center; text-align: center;
width: 120px; width: 120px;
overflow: clip; overflow: hidden;
} }
.profile-match-break, .profile-match-break,
@ -2162,3 +2162,6 @@ a.mail-list-link {
clear: both; clear: both;
} }
.side-link {
margin-bottom: 15px;
}

View file

@ -2180,7 +2180,7 @@ a.mail-list-link {
float: left; float: left;
text-align: center; text-align: center;
width: 120px; width: 120px;
overflow: clip; overflow: hidden;
} }
.profile-match-break, .profile-match-break,
@ -2188,3 +2188,6 @@ a.mail-list-link {
clear: both; clear: both;
} }
.side-link {
margin-bottom: 15px;
}