2015-09-05 16:11:04 +00:00
{ % extends 'global/master.tpl' % }
2015-09-07 20:53:47 +00:00
{ % set profileHidden = profile . checkPermission ( 'SITE' , 'DEACTIVATED' ) or profile . data . password_algo = = 'nologin' or ( profile . checkPermission ( 'SITE' , 'RESTRICTED' ) and ( user . data . id ! = profile . data . id and not user . checkPermission ( 'MANAGE' , 'USE_MANAGE' ) ) ) % }
{ % block title % } { % if profileHidden % } User not found! { % else % } Profile of { { profile . data . username } } { % endif % } { % endblock % }
2015-09-05 16:11:04 +00:00
{ % block content % }
2015-09-07 20:53:47 +00:00
{ % if profileHidden % }
2015-04-26 16:01:28 +00:00
<div class="content standalone" style="padding: 20px;">
<h1>The requested user does not exist!</h1>
There are a few possible reasons for this:
<ul style="padding-left: 40px;">
<li>They changed their username.</li>
2015-09-05 16:11:04 +00:00
<li>They may have been <a href=" { { urls . format ( 'SITE_FAQ' ) } } #abyss" class="default">abyss'd</a>.</li>
2015-04-26 16:01:28 +00:00
<li>You made a typo.</li>
<li>They never existed.</li>
</ul>
</div>
{ % else % }
2015-08-28 20:32:31 +00:00
<div class="content profile">
2015-08-19 02:37:45 +00:00
<div class=" { % if profile . userPage | length > 1 % } content-right { % endif % } content-column">
<div style="text-align: center;">
2015-09-05 16:11:04 +00:00
<img src=" { { urls . format ( 'IMAGE_AVATAR' , [ profile . data . id ] ) } } " alt=" { { profile . data . username } } 's Avatar" class="default-avatar-setting" style="box-shadow: 0 3px 7px # { % if profile . checkOnline % } 484 { % else % } 844 { % endif % } ;" /><br />
2015-08-19 12:13:38 +00:00
{ % if profile . data . rank_main > 1 and profile . checkBan | length < 1 % }
2015-08-19 02:37:45 +00:00
<span style="font-size: .8em;"> { { profile . userTitle } } </span>
<h1 style="color: { { profile . colour } } ; text-shadow: 0 0 7px { % if profile . colour ! = 'inherit' % } { { profile . colour } } { % else % } #222 { % endif % } ; padding: 0 0 2px;"> { { profile . data . username } } </h1>
2015-09-05 16:11:04 +00:00
{ % if profile . checkPremium [ 0 ] % } <img src=" { { sakura . contentPath } } /images/tenshi.png" alt="Tenshi" /> { % endif % } <img src=" { { sakura . contentPath } } /images/flags/ { { profile . country . short | lower } } .png" alt=" { { profile . country . short } } " /> <span style="font-size: .9em; line-height: 11px;"> { { profile . country . long } } </span>
2015-08-19 19:44:01 +00:00
{ % if session . checkLogin % }
2015-08-19 02:37:45 +00:00
<div class="user-actions">
{ % if user . data . id = = profile . data . id % }
2015-09-05 16:11:04 +00:00
<a class="fa fa-pencil-square-o" title="Edit your profile" href=" { { urls . format ( 'SETTING_MODE' , [ 'general' , 'profile' ] ) } } "></a>
2015-08-19 02:37:45 +00:00
{ % else % }
2015-08-19 12:13:38 +00:00
{ % if profile . checkFriends ( user . data . id ) ! = 0 % } <a class="fa fa- { % if profile . checkFriends ( user . data . id ) = = 2 % } heart { % else % } star { % endif % } " title="You are friends"></a> { % endif % }
2015-09-05 16:11:04 +00:00
<a class="fa fa-user- { % if profile . checkFriends ( user . data . id ) = = 0 % } plus { % else % } times { % endif % } " title=" { % if profile . checkFriends ( user . data . id ) = = 0 % } Add { { legacyprofile . data . username } } as a friend { % else % } Remove friend { % endif % } " href=" { % if profile . checkFriends ( user . data . id ) = = 0 % } { { urls . format ( 'FRIEND_ADD' , [ profile . data . id , php . sessionid , php . time , sakura . currentPage ] ) } } { % else % } { { urls . format ( 'FRIEND_REMOVE' , [ profile . data . id , php . sessionid , php . time , sakura . currentPage ] ) } } { % endif % } " id="profileFriendToggle"></a>
2015-09-18 21:56:54 +00:00
<a class="fa fa-exclamation-circle" title="Report { { profile . data . username } } " href=" { { urls . format ( 'USER_REPORT' , [ profile . data . id ] ) } } "></a>
2015-04-27 00:41:59 +00:00
{ % endif % }
2015-08-19 02:37:45 +00:00
</div>
{ % endif % }
<hr class="default" />
2015-09-08 21:57:33 +00:00
<b>Joined</b> <span title=" { { profile . data . regdate | date ( sakura . dateFormat ) } } "> { { profile . elapsed . joined } } </span>
2015-08-19 02:37:45 +00:00
<br />
{ % if profile . data . lastdate < 1 % }
<b> { { profile . data . username } } hasn't logged in yet.</b>
{ % else % }
2015-09-08 21:57:33 +00:00
<b>Last online</b> <span title=" { { profile . data . lastdate | date ( sakura . dateFormat ) } } "> { { profile . elapsed . lastOnline } } </span>
2015-08-19 02:37:45 +00:00
{ % endif % }
<br />
2015-08-19 12:13:38 +00:00
<b> { { profile . data . username } } has { % if not profile . forumStats . posts % } no { % else % } { { profile . forumStats . posts } } { % endif % } forum post { % if profile . forumStats . posts ! = 1 % } s { % endif % } .</b>
2015-09-08 21:57:33 +00:00
{ % if profile . data . birthday ! = '0000-00-00' % }
<br /><b>Age</b> <span title=" { { profile . data . birthday } } "> { { profile . elapsed ( ' old' ) . birth } } </span>
{ % endif % }
2015-08-19 02:37:45 +00:00
{ % if profile . profileFields % }
<hr class="default" />
2015-08-19 19:44:01 +00:00
{ % if session . checkLogin % }
2015-08-19 02:37:45 +00:00
<table style="width: 100%;">
{ % for name , field in profile . profileFields % }
<tr>
<td style="text-align: left; font-weight: bold;">
{ { field . name } }
</td>
<td style="text-align: right;">
{ % if name = = 'youtube' % }
2015-09-08 21:57:33 +00:00
<a href="https://youtube.com/ { % if field . youtubetype = = true % } channel { % else % } user { % endif % } / { { field . value } } " class="default"> { % if field . youtubetype = = true % } { { profile . data . username } } 's Channel { % else % } { { field . value } } { % endif % } </a>
2015-08-19 02:37:45 +00:00
{ % else % }
{ % if field . islink % }
<a href=" { { field . link } } " class="default">
{ % endif % }
{ { field . value } }
{ % if field . islink % }
</a>
{ % endif % }
{ % endif % }
</td>
</tr>
{ % endfor % }
</table>
{ % else % }
<b>Log in to view the full profile!</b>
2015-04-27 00:41:59 +00:00
{ % endif % }
{ % endif % }
2015-05-04 20:08:53 +00:00
{ % else % }
2015-08-19 02:37:45 +00:00
<h1 style="color: #222; text-shadow: 0 0 7px #888; padding: 0 0 2px;"> { { profile . data . username } } </h1>
{ % endif % }
<hr class="default" />
<b>Account Standing</b>
2015-08-23 22:08:36 +00:00
{ % if profile . checkPermission ( 'SITE' , 'DEACTIVATED' ) % }
<h2 style="color: #888; text-shadow: 0 0 7px #888; margin-top: 0;">Deactivated</h2>
2015-08-19 12:13:38 +00:00
{ % elseif profile . checkBan % }
2015-08-23 22:08:36 +00:00
<h2 style="color: #222; text-shadow: 0 0 7px #222; margin-top: 0;">Banned</h2>
{ % elseif profile . checkPermission ( 'SITE' , 'RESTRICTED' ) % }
<h2 style="color: #800; text-shadow: 0 0 7px #800; margin-top: 0;">Restricted</h2>
2015-08-19 02:37:45 +00:00
{ % else % }
2015-08-19 12:13:38 +00:00
{ % if profile . getWarnings % }
2015-08-23 22:08:36 +00:00
<h2 style="color: #A00; text-shadow: 0 0 7px #A00; margin-top: 0;">Bad</h2>
2015-08-19 12:13:38 +00:00
<span style="font-size: 10px; line-height: 10px;">This user has <b> { { profile . getWarnings | length } } warning { % if profile . getWarnings | length ! = 1 % } s { % endif % } </b>.<br />After 5 to 10 warnings (depending on what they are for) this user may be permanently banned.</span>
2015-08-19 02:37:45 +00:00
{ % else % }
2015-08-28 20:32:31 +00:00
<h2 style="color: #080; text-shadow: 0 0 7px #080; margin-top: 0;">Good</h2>
2015-08-19 02:37:45 +00:00
{ % endif % }
2015-05-04 20:08:53 +00:00
{ % endif % }
2015-08-19 02:37:45 +00:00
</div>
2015-04-26 16:01:28 +00:00
</div>
2015-08-19 02:37:45 +00:00
<div class="content-left content-column markdown { % if profile . userPage | length < 1 % } hidden { % endif % } ">
{ { profile . userPage | raw } }
</div>
<div class="clear"></div>
2015-04-26 16:01:28 +00:00
</div>
{ % endif % }
2015-09-05 16:11:04 +00:00
{ % endblock % }