MyBB Community Forums

Full Version: Add banned to profile status?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
It is activated.

<html>
<head>
<title>{$mybb->settings['bbname']} - {$lang->profile}</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="trow1">
<table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="trow1" width="75%">
<span class="largetext"><strong>{$formattedname}</strong></span><span class="profile_box">{$usertitle}</span><span class="profile_box">User ID: {$useridmember}</span><br />
<span class="smalltext">
<br />
{$groupimage}
<br />
<strong>{$lang->registration_date}</strong> {$memregdate}<br />
<strong>{$lang->date_of_birth}</strong> {$membday} {$membdayage}<br />
<strong>{$lang->local_time}</strong> {$localtime}<br />
<strong>{$username_changes}: </strong> {$username_history}
</span><br /><br />
<span class="largetext">

<if $post['usergroup'] != 7 then>

{$online_status}

<else>

<font color="#FE2E2E">Banned</font>

</if>
</span>
</td><td width="25%" align="right" valign="middle">{$avatar}</td></tr></table>
</td>
</tr>
{$awaybit}
</table>
<br />
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="center">
<tr>
<td width="50%" valign="top">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_forum_info}</strong></td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->joined}</strong></td>
<td class="trow1">{$memregdate}</td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->lastvisit}</strong></td>
<td class="trow2">{$memlastvisitdate} {$memlastvisittime}</td>
</tr>
<tr>
<td class="trow1"><strong>{$lang->total_posts}</strong></td>
<td class="trow1">{$memprofile['postnum']} ({$lang->ppd_percent_total})<br /><span class="smalltext">(<a href="search.php?action=finduserthreads&amp;uid={$uid}">{$lang->find_threads}</a> &mdash; <a href="search.php?action=finduser&amp;uid={$uid}">{$lang->find_posts}</a> &mdash; <a href="post_activity.php?uid={$memprofile['uid']}">Post Activity</a>)</span></td>
</tr>
<tr>
<td class="trow2"><strong>{$lang->timeonline}</strong></td>
<td class="trow2">{$timeonline}</td>
</tr>
{$referrals}
{$reputation}
{$myawards}

{$warning_level}{$post_activity_link}{$post_activity_link}
</table>
<br />
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td colspan="2" class="thead"><strong>{$lang->users_contact_details}</strong></td>
</tr>
{$sendemail}
<tr>
<td class="{$bgcolors['pm']}"><strong>{$lang->pm}</strong></td>
<td class="{$bgcolors['pm']}"><a href="private.php?action=send&amp;uid={$memprofile['uid']}">{$lang->send_pm}</a></td>
</tr>
</table>
</td>
<td><img src="{$theme['imgdir']}/pixel.gif" height="1" width="8" alt=""/></td>
<td width="50%" valign="top">
{$profilefields}
{$signature}
{$modoptions}
{$adminoptions}
{$buddy_options}
</td>
</tr>
</table>
{$footer}
</body>
</html>
As I said:
(2014-06-22, 04:19 PM)Destroy666 Wrote: [ -> ]Your code is incorrect. For member_profile template it should be:
<if $memprofile['usergroup'] != 7  then>
{$online_status}
<else>
Banned
</if>

You copied the one for postbit with $post variables...
(2014-06-24, 09:17 AM)Destroy666 Wrote: [ -> ]As I said:
(2014-06-22, 04:19 PM)Destroy666 Wrote: [ -> ]Your code is incorrect. For member_profile template it should be:
<if $memprofile['usergroup'] != 7  then>
{$online_status}
<else>
Banned
</if>

You copied the one for postbit with $post variables...

Oh my god how could I not see that ._. Thanks, lol
Pages: 1 2