Merge pull request #2105 from rabuzarus/2811_forums_contact_pages
add missing info about if contact is forum to contact related pages
This commit is contained in:
commit
9df70a6eed
4 changed files with 10 additions and 6 deletions
|
@ -205,6 +205,7 @@ function dirfind_content(&$a, $prefix = "") {
|
||||||
'details' => $contact_details['location'],
|
'details' => $contact_details['location'],
|
||||||
'tags' => $contact_details['keywords'],
|
'tags' => $contact_details['keywords'],
|
||||||
'about' => $contact_details['about'],
|
'about' => $contact_details['about'],
|
||||||
|
'account_type' => (($contact_details['community']) ? t('Forum') : ''),
|
||||||
'network' => network_to_name($jj->network, $jj->url),
|
'network' => network_to_name($jj->network, $jj->url),
|
||||||
'id' => ++$id,
|
'id' => ++$id,
|
||||||
);
|
);
|
||||||
|
|
|
@ -79,6 +79,7 @@ function match_content(&$a) {
|
||||||
'details' => $contact_details['location'],
|
'details' => $contact_details['location'],
|
||||||
'tags' => $contact_details['keywords'],
|
'tags' => $contact_details['keywords'],
|
||||||
'about' => $contact_details['about'],
|
'about' => $contact_details['about'],
|
||||||
|
'account_type' => (($contact_details['community']) ? t('Forum') : ''),
|
||||||
'thumb' => proxy_url($jj->photo, false, PROXY_SIZE_THUMB),
|
'thumb' => proxy_url($jj->photo, false, PROXY_SIZE_THUMB),
|
||||||
'inttxt' => ' ' . t('is interested in:'),
|
'inttxt' => ' ' . t('is interested in:'),
|
||||||
'conntxt' => t('Connect'),
|
'conntxt' => t('Connect'),
|
||||||
|
|
|
@ -36,7 +36,7 @@ function suggest_init(&$a) {
|
||||||
}
|
}
|
||||||
// Now check how the user responded to the confirmation query
|
// Now check how the user responded to the confirmation query
|
||||||
if(!$_REQUEST['canceled']) {
|
if(!$_REQUEST['canceled']) {
|
||||||
q("insert into gcign ( uid, gcid ) values ( %d, %d ) ",
|
q("INSERT INTO `gcign` ( `uid`, `gcid` ) VALUES ( %d, %d ) ",
|
||||||
intval(local_user()),
|
intval(local_user()),
|
||||||
intval($_GET['ignore'])
|
intval($_GET['ignore'])
|
||||||
);
|
);
|
||||||
|
@ -92,6 +92,7 @@ function suggest_content(&$a) {
|
||||||
'details' => $contact_details['location'],
|
'details' => $contact_details['location'],
|
||||||
'tags' => $contact_details['keywords'],
|
'tags' => $contact_details['keywords'],
|
||||||
'about' => $contact_details['about'],
|
'about' => $contact_details['about'],
|
||||||
|
'account_type' => (($contact_details['community']) ? t('Forum') : ''),
|
||||||
'ignlnk' => $ignlnk,
|
'ignlnk' => $ignlnk,
|
||||||
'ignid' => $rr['id'],
|
'ignid' => $rr['id'],
|
||||||
'conntxt' => t('Connect'),
|
'conntxt' => t('Connect'),
|
||||||
|
|
|
@ -26,7 +26,7 @@ function viewcontacts_content(&$a) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$r = q("SELECT COUNT(*) as `total` FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0 ",
|
$r = q("SELECT COUNT(*) AS `total` FROM `contact` WHERE `uid` = %d AND `blocked` = 0 AND `pending` = 0 AND `hidden` = 0 AND `archive` = 0 ",
|
||||||
intval($a->profile['uid'])
|
intval($a->profile['uid'])
|
||||||
);
|
);
|
||||||
if(count($r))
|
if(count($r))
|
||||||
|
@ -70,6 +70,7 @@ function viewcontacts_content(&$a) {
|
||||||
'details' => $contact_details['location'],
|
'details' => $contact_details['location'],
|
||||||
'tags' => $contact_details['keywords'],
|
'tags' => $contact_details['keywords'],
|
||||||
'about' => $contact_details['about'],
|
'about' => $contact_details['about'],
|
||||||
|
'account_type' => (($contact_details['community']) ? t('Forum') : ''),
|
||||||
'url' => $url,
|
'url' => $url,
|
||||||
'sparkle' => '',
|
'sparkle' => '',
|
||||||
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
|
'itemurl' => (($contact_details['addr'] != "") ? $contact_details['addr'] : $rr['url']),
|
||||||
|
|
Loading…
Reference in a new issue