MyBB Community Forums

Full Version: Add custom fields to postbit_author_user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi !

I installed MyBB quite recently and I manage to add a custom field for users which is display on profile pages. Is it possible to add this custom field in each message ?

I already checked the template "postbit_author_user" but I don't know the name of the variable I need to add.


If I'm not clear enough just ask me,
Pallanas
You need to use the variable {$post['fidX']} where X is the ID of the profile field. To find the ID of the profile field, go to the ACP > Custom profile Fields and hover over the link to one of them - the ID is shown in the URL as below:

http://i.imgur.com/t1Dsg.png
The ID is already on the list of the custom profile fields (just beside the Name).
(2012-08-13, 05:00 PM)RateU Wrote: [ -> ]The ID is already on the list of the custom profile fields (just beside the Name).

Well darn, I completely missed that. It's likely been there for years and yet I've always resorted to looking at the URL...
Thanks for the quick answer, it works like a charm Smile