Project

General

Profile

Feature #1764

Add "Profile link" extra user field type

Added by Yannick Warnier over 9 years ago. Updated over 9 years ago.

Status:
Bug resolved
Priority:
Normal
Category:
-
Target version:
Start date:
26/07/2010
Due date:
% Done:

100%

Estimated time:
3.00 h
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

Description

Make a new type of extra user field available, "Profile link", which allows any user to put an URL and this URL to be marked directly as a clickable URL. The URL itself could be followed or preceeded by a short "type" value (or maybe we should detect the URL automatically). The idea is to show the favicon of the site as a kind of icon in front of the link (for example: facebook, linkedin, etc).

Julio, if you feel you can do it in the next hours, or so, I think it would represent great value for 1.8.7.1. If not, just leave it for 1.8.8.

To be clear:

  • the admin adds a field "My Facebook" of type "Profile link" inside the extra user fields, viewable and editable by users
  • instead of "default value", this field type takes a base URL (for example http://www.facebook.com/profile.php?id= )
  • from there, the user can edit his "Facebook" field in his profile page and put his facebook ID (703054738 for example)
  • when another user comes and sees the field, it shows a link called "My Facebook", which has http://www.facebook.com/profile.php?id=703054738 under it (<a href="http://...">My Facebook</a>)
  • in front of that link, you put an icon <img src="http://www.facebook.com/favicon.ico" />. You can get the basis URL with:

$icon_link = '';
$pieces = parse_url($link);
if ($pieces !== false) {
$icon_link = '<img src="'.$pieces['scheme'].'://'.$pieces['host'].'/favicon.ico" />';
}

That's it. The only real work is to modify the profile page a bit (in viewing mode) so that it forms the href and all that.
That would make social network integration quite easy for us...

History

#1

Updated by Yannick Warnier over 9 years ago

  • Subject changed from Add "link" extra user field type to Add "Profile link" extra user field type
#2

Updated by Yannick Warnier over 9 years ago

  • Status changed from Assigned to Bug resolved
  • Assignee changed from Julio Montoya to Yannick Warnier
  • % Done changed from 0 to 100

Also available in: Atom PDF