Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [How To] Hidden Custom Profile Field Location on Postbit
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #1
[How To] Hidden Custom Profile Field Location on Postbit
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

   

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


Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
06-12-2012 05:36 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: [How To] Hidden Custom Profile Field Location on Postbit
Something like this:

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


06-12-2012 05:53 AM
Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #3
RE: [How To] Hidden Custom Profile Field Location on Postbit
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)

Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
06-12-2012 06:05 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: [How To] Hidden Custom Profile Field Location on Postbit
Something like this:
http://mybbhacks.zingaburga.com/showthread.php?tid=504

06-12-2012 06:22 AM
Find all posts by this user Quote this message in a reply
terzier Offline
Member
***
Posts: 91
Joined: Feb 2012
Post: #5
RE: [How To] Hidden Custom Profile Field Location on Postbit
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


Un-Official MyBB from Indonesia| Facebook Page|Twitter
GARUDA DIDADA KU
06-12-2012 07:03 AM
Visit this user's website Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: