MyBB Community Forums

Full Version: Hide user details for 1.User (Template Conditionals)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello I want to hide the details of the 1st party using the "if" values. I want your rank, messages, topics, stars to be visible only to your avatar. But I do not know how to do it. Could you help ?
I want it to be this way.
[Image: ZM0p4a.png]
Try this..

(12-10-2015, 03:19 PM)Wage Wrote: [ -> ]In postbit_classic you can do something like

<if ($post['uid']) == 1 then>
<else>
<div class="author_statistics">
    {$post['user_details']}
</div>
</if>
Or try:

<if ($post['uid']) != 1 then>
<div class="author_statistics">
   {$post['user_details']}
</div>
</if>
(02-01-2017, 11:50 AM)SvePu Wrote: [ -> ]Or try:

<if ($post['uid']) != 1 then>
<div class="author_statistics">
   {$post['user_details']}
</div>
</if>

This is reverse.Is showing if you add "<else>" hiding

True;
@dead-i;
<if ($post['uid']) == 1 then>
<else>
{$post['user_details']}
</if>
Go to template -> post not template -> postbit

Find

{$post['user_details']}

Replace with.

<if $postcounter = 1 then>
<else>
{$post['user_details']} </if>
You can also achieve this using CSS, it's a bit more difficult to do it by those means.