Skip to content

reference:U getProfilePicture

Aaron Junker edited this page Apr 24, 2021 · 4 revisions

Function $U->getProfilePicture($Username):string

Returns a HTML code snippet which contains the Profile Picture of the currently logged in user.

The profile picture will be get from www.gravatar.com.

Arguments

$Username

Name of the user which profile picture should be returned.

Return value

A HTML code like in the example below.

Example

$U->getProfilePicture("admin"); // "<img src='https://www.gravatar.com/avatar/{code}' />"
Clone this wiki locally