visit "random profile" feature
This commit is contained in:
parent
0fa932853c
commit
b02a671494
5 changed files with 22 additions and 1 deletions
|
|
@ -158,3 +158,11 @@ function contact_photo_menu($contact) {
|
|||
}
|
||||
return $o;
|
||||
}}
|
||||
|
||||
|
||||
function random_profile() {
|
||||
$r = q("select url from gcontact where url like '%%://%%/profile/%%' order by rand() limit 1");
|
||||
if(count($r))
|
||||
return dirname($r[0]['url']);
|
||||
return '';
|
||||
}
|
||||
|
|
@ -12,6 +12,7 @@ function follow_widget() {
|
|||
}
|
||||
|
||||
function findpeople_widget() {
|
||||
require_once('include/Contact.php');
|
||||
|
||||
$a = get_app();
|
||||
|
||||
|
|
@ -32,6 +33,7 @@ function findpeople_widget() {
|
|||
'$findthem' => t('Find'),
|
||||
'$suggest' => t('Friend Suggestions'),
|
||||
'$similar' => t('Similar Interests'),
|
||||
'$random' => t('Random Profile'),
|
||||
'$inv' => t('Invite Friends')
|
||||
));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue