MyBB Hacks

Full Version: [How To] Hidden Custom Profile Field Location on Postbit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
with a little coding, I have successfully made the postbit appropriate alternative as I want  Biggrin

insert this code to :
Home » Template Sets » Your Template
Edit Template: postbit

add the following after the code

Code:
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}


Code:
<a href="{$post['fidX']}"><img src="url_images" alt="facebook"/></a>


and the results are as follows

[attachment=849]

Now the question is, how to hide Custom Profile Field Location on Postbit of the guests with Template Conditionals?

I want only registered members can see it. Winktongue

Something like this:

Code:
<if $mybb->user['uid'] then>
Your code
</if>

successful. thanks for the reply. Biggrin

plus 1 for you Yes

then, how to hide from a particular group?

group such as banned / Awaiting Activation (etc)
based on this thread, this is my code Biggrin

Code:
<if in_array($GLOBALS['mybb']->user['usergroup'], array(2,3,4,6,8,9,11,12,13,14,15,16)) then>
<a href="{$post['fid4']}" title="Kunjungi Facebook pengguna ini" target=_"blank"><img src="images/user-network/facebook-user.png" alt="facebook"/></a>
<a href="{$post['fid5']}" title="Kunjungi Twitter pengguna ini" target=_"blank"><img src="images/user-network/twitter-user.png" alt="twitter"/></a>
<a href="{$post['fid6']}" title="Kunjungi Google+ pengguna ini" target=_"blank"><img src="images/user-network/google-user.png" alt="googleplus"/></a>
</if> 


and work for me Biggrin

btw, thanks for feedback RateU Smile

Reference URL's