Custom Profile Field
#1
I am trying to get a custom profile field in the "usercp_avatar_start" hook.

How can I possibly do this?
Reply
#2
Do you mean the value of a custom profile field?
Try using $mybb->user['fidX'] where X is the profile field ID.
XThreads App For MyBB: Link Directory, YouTube Gallery & etc - Full List
My Demo Site
Reply
#3
Hey guys im having problems implementing this..
			Location: {$mybb->user['fid1']}<br />
			Gender: {$mybb->user['fid3']}<br />

I tried that... but ... it shows blank if not logged and shows outdated incorret information if with my current logged in account... it seems like its taking it FROM my account.. and not from the user themselves...
Reply
#4
On the profile, you want {$memprofile['fidX']}. Smile
Please don't PM me for support. Smile
Reply
#5
Didn't work Sad I put postbit_author_user and it shows nothing Sad

Ah never mind I figured it out:

http://docs.mybb.com/Help-Customizing_postbit.html

Location {$post['fid1']}
Sex {$post['fid2']}
Bio {$post['fid3']}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)