MyBB Community Forums

Full Version: Custom Profile Field
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I've made a number of custom profile fields and I wish to call them in my custom profile page.

Currently, I've tried {$post['fid4']} where I wish to display the data but it comes up blank.

Any help is appreciated!

Regards,
Adams
Don't think {$post['fid4']} is needed, make sure you have Display on postbit ticked yes, and go to postbit_author_user make sure you have the variable {$post['profilefield']}
This is the entire contents of that template:

{$lang->postbit_posts} {$post['postnum']}<br />
{$lang->postbit_threads} {$post['threadnum']}<br />
{$lang->postbit_joined} {$post['userregdate']}
{$post['replink']}{$post['profilefield']}{$post['warninglevel']}

Do I need to put in {$post['fidX'] in there for each custom field?
{$post['fidX']} can be used in the postbit templates & each custom field requires separate variable listing. [related guidance]

if your custom profile page is based on member.php file related hooks then
{$userfields['fidX']} might work in member profile related templates

(edited)
Ah I get you. So if I go to postbit_author_user and create my layout for the custom fields and then in my main profile template I put {$customfields} (or whatever it is) in its place, it should work?

I essentially edited the member_profile template to get my result and in my layout I have a table cell where I tried {$userfields['fidX']} but to no avail
^ are you using latest available version of MyBB (version 1.8.12) ?
I am yes