{% extends 'master.twig' %}
{% set profileHidden = not profile.activated and (user.id != profile.id and not (user.perms.isMod or user.perms.isAdmin)) %}
{% set noUserpage = profile.userPage|length < 1 %}
{% set title = profileHidden ? 'User not found!' : 'Profile of ' ~ profile.username %}
{% set youtubeIsChannelId = profile.youtube|slice(0, 2) == 'UC' and profile.youtube|length == 24 %}
{% set fields = {
"website": {
"title": "Website",
"value": profile.website,
"link": "%s",
},
"twitter": {
"title": "Twitter",
"value": profile.twitter,
"link": "https://twitter.com/%s",
"disp": "@%s",
},
"github": {
"title": "GitHub",
"value": profile.github,
"link": "https://github.com/%s",
},
"skype": {
"title": "Skype",
"value": profile.skype,
"link": "skype:%s?userinfo",
},
"discord": {
"title": "Discord",
"value": profile.discord,
},
"youtube": {
"title": "YouTube",
"value": profile.youtube,
"link": "https://youtube.com/" ~ (youtubeIsChannelId ? 'channel/' : '') ~ "%s",
"disp": youtubeIsChannelId ? profile.username ~ "'s channel" : "%s",
},
"steam": {
"title": "Steam",
"value": profile.steam,
"link": "https://steamcommunity.com/id/%s",
},
"osu": {
"title": "osu!",
"value": profile.osu,
"link": "https://osu.ppy.sh/u/%s",
},
"lastfm": {
"title": "Last.fm",
"value": profile.lastfm,
"link": "http://last.fm/user/%s",
},
"email": {
"title": "E-mail address",
"value": user.perms.viewUserDetails ? profile.email : null,
"link": "mailto:%s"
},
"registerip": {
"title": "Register IP",
"value": user.perms.viewUserDetails ? profile.registerIp : null,
},
"lastip": {
"title": "Last IP",
"value": user.perms.viewUserDetails ? profile.lastIp : null,
},
} %}
{% block js %}
{% if not profileHidden %}
{% endif %}
{% endblock %}
{% block content %}
{% if profileHidden %}
The requested user does not exist!
There are a few possible reasons for this:
- They changed their username.
- They may have been restricted.
- You made a typo.
- They never existed.
{% else %}
{% if not noUserpage %}
{% endif %}
{% if (profile.isActive and profile.id == user.id) or user.perms.manageProfileImages %}
{% endif %}
{% if user.isActive %}
{% if user.id == profile.id %}
{% else %}
{% if user.isFriends(profile.id) != 0 %}
{% endif %}
{% endif %}
{% if user.perms.canRestrict %}
{% endif %}
{% endif %}
{% if profile.lastfm %}
{% endif %}
{% include 'profile/userpage.twig' %}
{% include 'profile/friends.twig' %}
{% include 'profile/groups.twig' %}
{% include 'profile/topics.twig' %}
{% include 'profile/posts.twig' %}
{% include 'profile/images.twig' %}
Topics |
{{ profile.forumStats.topics }} |
Posts |
{{ profile.forumStats.posts }} |
Friends |
{{ profile.friends(2)|length }} |
{% if user.isActive %}
{# if user.perms.viewUserLinks or user.perms.viewUserDetails #}
{% else %}
Log in to view the full profile!
{% endif %}
Account Standing
{% if not profile.activated %}
Deactivated
{% elseif profile.restricted %}
Restricted
{% elseif false %}
Bad
{% else %}
Good
{% endif %}
{% endif %}
{% endblock %}