Show more information when following a new contact
This commit is contained in:
parent
be70dde61f
commit
d0ae5ce326
12
mod/follow.php
Executable file → Normal file
12
mod/follow.php
Executable file → Normal file
|
@ -61,6 +61,9 @@ function follow_content(&$a) {
|
||||||
// Makes the connection request for friendica contacts easier
|
// Makes the connection request for friendica contacts easier
|
||||||
$_SESSION["fastlane"] = $ret["url"];
|
$_SESSION["fastlane"] = $ret["url"];
|
||||||
|
|
||||||
|
$r = q("SELECT `location`, `about`, `keywords` FROM `gcontact` WHERE `nurl` = '%s'",
|
||||||
|
normalise_link($ret["url"]));
|
||||||
|
|
||||||
$header = $ret["name"];
|
$header = $ret["name"];
|
||||||
|
|
||||||
if ($ret["addr"] != "")
|
if ($ret["addr"] != "")
|
||||||
|
@ -88,8 +91,15 @@ function follow_content(&$a) {
|
||||||
'$nickname' => "",
|
'$nickname' => "",
|
||||||
'$name' => $ret["name"],
|
'$name' => $ret["name"],
|
||||||
'$url' => $ret["url"],
|
'$url' => $ret["url"],
|
||||||
|
'$url_label' => t("Profile URL"),
|
||||||
'$myaddr' => $myaddr,
|
'$myaddr' => $myaddr,
|
||||||
'$request' => $request
|
'$request' => $request,
|
||||||
|
'$location' => bbcode($r[0]["location"]),
|
||||||
|
'$location_label' => t("Location:"),
|
||||||
|
'$about' => bbcode($r[0]["about"]),
|
||||||
|
'$about_label' => t("About:"),
|
||||||
|
'$keywords' => bbcode($r[0]["keywords"]),
|
||||||
|
'$keywords_label' => t("Tags:")
|
||||||
));
|
));
|
||||||
return $o;
|
return $o;
|
||||||
}
|
}
|
||||||
|
|
|
@ -216,7 +216,6 @@ function notifications_content(&$a) {
|
||||||
'$contact_id' => $rr['contact-id'],
|
'$contact_id' => $rr['contact-id'],
|
||||||
'$photo' => ((x($rr,'photo')) ? proxy_url($rr['photo']) : "images/person-175.jpg"),
|
'$photo' => ((x($rr,'photo')) ? proxy_url($rr['photo']) : "images/person-175.jpg"),
|
||||||
'$fullname' => $rr['name'],
|
'$fullname' => $rr['name'],
|
||||||
'$location_label' => t('Location:'),
|
|
||||||
'$location' => $rr['glocation'],
|
'$location' => $rr['glocation'],
|
||||||
'$location_label' => t('Location:'),
|
'$location_label' => t('Location:'),
|
||||||
'$about' => proxy_parse_html(bbcode($rr['gabout'], false, false)),
|
'$about' => proxy_parse_html(bbcode($rr['gabout'], false, false)),
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
<h1>{{$header}}</h1>
|
<h1>{{$header}}</h1>
|
||||||
|
|
||||||
{{if $myaddr == ""}}
|
{{if $myaddr == ""}}
|
||||||
|
@ -30,6 +28,11 @@
|
||||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$url}}">{{$url}}</a></dd></dl>{{/if}}
|
||||||
|
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||||
|
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||||
|
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about}}</dd></dl>{{/if}}
|
||||||
|
|
||||||
<div id="dfrn-request-url-wrapper" >
|
<div id="dfrn-request-url-wrapper" >
|
||||||
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
||||||
{{if $myaddr}}
|
{{if $myaddr}}
|
||||||
|
|
|
@ -27,6 +27,11 @@
|
||||||
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
<img src="{{$photo}}" alt="" id="dfrn-request-photo">
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
{{if $url}}<dl><dt>{{$url_label}}</dt><dd><a target="blank" href="{{$url}}">{{$url}}</a></dd></dl>{{/if}}
|
||||||
|
{{if $location}}<dl><dt>{{$location_label}}</dt><dd>{{$location}}</dd></dl>{{/if}}
|
||||||
|
{{if $keywords}}<dl><dt>{{$keywords_label}}</dt><dd>{{$keywords}}</dd></dl>{{/if}}
|
||||||
|
{{if $about}}<dl><dt>{{$about_label}}</dt><dd>{{$about}}</dd></dl>{{/if}}
|
||||||
|
|
||||||
<div id="dfrn-request-url-wrapper" >
|
<div id="dfrn-request-url-wrapper" >
|
||||||
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
<label id="dfrn-url-label" for="dfrn-url" >{{$your_address}}</label>
|
||||||
{{if $myaddr}}
|
{{if $myaddr}}
|
||||||
|
|
Loading…
Reference in a new issue