<dd>{#$userProfile->activityPoints}</dd>
{/if}
{event name='userCredits'}
- {if MESSAGE_SIDEBAR_USER_OPTIONS}
+ {if MESSAGE_SIDEBAR_USER_OPTIONS && $userProfile->isAccessible('canViewProfile')}
{assign var='__sidebarUserOptions' value=','|explode:MESSAGE_SIDEBAR_USER_OPTIONS}
{foreach from=$__sidebarUserOptions item='__sidebarUserOption'}
{if $userProfile->getUserOption($__sidebarUserOption)}
<h3><a href="{link controller='User' object=$user}{/link}">{$user->username}</a>{if MODULE_USER_RANK && $user->getUserTitle()} <span class="badge userTitleBadge{if $user->getRank() && $user->getRank()->cssClassName} {@$user->getRank()->cssClassName}{/if}">{$user->getUserTitle()}</span>{/if}</h3>
</div>
<ul class="dataList userFacts">
- {if $user->gender}<li>{lang}wcf.user.gender.{if $user->gender == 1}male{else}female{/if}{/lang}</li>{/if}
- {if $user->getAge()}<li>{@$user->getAge()}</li>{/if}
- {if $user->location}<li>{lang}wcf.user.membersList.location{/lang}</li>{/if}
+ {if $user->isAccessible('canViewProfile')}
+ {if $user->gender}<li>{lang}wcf.user.gender.{if $user->gender == 1}male{else}female{/if}{/lang}</li>{/if}
+ {if $user->getAge()}<li>{@$user->getAge()}</li>{/if}
+ {if $user->location}<li>{lang}wcf.user.membersList.location{/lang}</li>{/if}
+ {/if}
<li>{lang}wcf.user.membersList.registrationDate{/lang}</li>
{event name='userData'}
{hascontent}
<dl class="plain inlineDataList userFields">
{content}
- {if $user->occupation}
- <dt>{lang}wcf.user.option.occupation{/lang}</dt>
- <dd>{$user->occupation}</dd>
- {/if}
- {if $user->hobbies}
- <dt>{lang}wcf.user.option.hobbies{/lang}</dt>
- <dd>{$user->hobbies}</dd>
+ {if $user->isAccessible('canViewProfile')}
+ {if $user->occupation}
+ <dt>{lang}wcf.user.option.occupation{/lang}</dt>
+ <dd>{$user->occupation}</dd>
+ {/if}
+ {if $user->hobbies}
+ <dt>{lang}wcf.user.option.hobbies{/lang}</dt>
+ <dd>{$user->hobbies}</dd>
+ {/if}
{/if}
{event name='userFields'}
{/content}