{% extends 'master.twig' %} {% set profileHidden = profile.permission(constant('Sakura\\Perms\\Site::DEACTIVATED')) or (profile.permission(constant('Sakura\\Perms\\Site::RESTRICTED')) and (user.id != profile.id and not user.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE')))) %} {% 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 canViewSecret = user.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE')) %} {% 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": canViewSecret ? profile.email : null, "link": "mailto:%s" }, "registerip": { "title": "Register IP", "value": canViewSecret ? profile.registerIp : null, }, "lastip": { "title": "Last IP", "value": canViewSecret ? 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:
{% else %}

{{ profile.username }}

{% if profile.isPremium %}Tenshi {% endif %}{{ profile.country }} {{ profile.title }}
Joined
{% if profile.lastOnline < 1 %} {{ profile.username }} hasn't logged in yet. {% else %} Last online {% endif %} {% if profile.birthday != '0000-00-00' and profile.birthday|split('-')[0] > 0 %}
Age {{ profile.birthday(true) }} years old  {% endif %}
{% if not noUserpage %} {% endif %} {% if (profile.isActive and profile.id == user.id) or user.permission(constant('Sakura\\Perms\\Manage::CHANGE_IMAGES'), constant('Sakura\\Perms::MANAGE')) %} {% endif %}
{% if user.isActive %}
{% if user.id == profile.id %} {% else %} {% if user.isFriends(profile.id) != 0 %}{% endif %} {% endif %} {% if user.permission(constant('Sakura\\Perms\\Manage::CAN_RESTRICT_USERS'), constant('Sakura\\Perms::MANAGE')) %} {% endif %}
{% endif %}
{% if profile.lastfm %}
{% endif %}
Topics {{ profile.forumStats.topics }}
Posts {{ profile.forumStats.posts }}
Friends {{ profile.friends(2)|length }}

{% if user.isActive %} {% for id, data in fields %} {% if data.value != null %} {% endif %} {% endfor %}
{{ data.title }} {% if data.link %} {{ (data.disp ? data.disp : '%s')|format(data.value) }} {% else %} {{ (data.disp ? data.disp : '%s')|format(data.value) }} {% endif %}
{% else %} Log in to view the full profile! {% endif %} Account Standing {% if profile.permission(constant('Sakura\\Perms\\Site::DEACTIVATED')) %}

Deactivated

{% elseif profile.permission(constant('Sakura\\Perms\\Site::RESTRICTED')) %}

Restricted

{% elseif false %}

Bad

{% else %}

Good

{% endif %}
{% endif %} {% endblock %}