MyBB Community Forums

Full Version: Custom field question...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to display custom field data outside of the postbit template? I've tried {$post['fid4']} and {$mybb->user['fid4']}. It works in the sense that it shows me my custom field data, but if say I wanted to add another column to the memberlist to show everyones data from that particular custom field.
you can use {$user['fidX']}
(2013-09-23, 06:39 AM).m. Wrote: [ -> ]you can use $user['fidX']

That didn't work for me. hmmm
^ {$user['fidX']} should work. I missed flower brackets !
(2013-09-23, 06:49 AM).m. Wrote: [ -> ]^ {$user['fidX']} should work. I missed flower brackets !

No I understand with curly brackets. Still doesn't display data. I just tried it by adding it in the usercp template, nothing.
^ oh! can you install php in templates plugin and then check
Edit:
where exactly you are adding the custom field - can you post relevant code
Putting:
{$user['fid4']}
or field with any other number to memberlist_user template surely works.

Make sure the field is filled for the user whom you are checking.
(2013-09-23, 04:49 PM).m. Wrote: [ -> ]^ oh! can you install php in templates plugin and then check
Edit:
where exactly you are adding the custom field - can you post relevant code

No where specific atm, just thinking about potential uses. I'm guessing unless it's in postbit template, it's not something easy to deploy. It needs php and has to be sanitizes, right? Sad