MyBB Community Forums

Full Version: View/Update User Profile (Custom) Fields
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am creating a separate part of my site which integrates with mybb, login with mybb details to view the site etc.

What I am struggling to do is to find a way to echo/print custom fields.
I am using mybb integrator, and can bring through basic fields such as username and email fields using:
<input type="text" value="<?php echo $MyBBI->mybb->user['email']; ?>" disabled>

But I can't figure out Custom Fields.

On a side note, i'm trying to find out if it's possible to also update these fields on the frontend?

Thanks
Dan
$MyBBI->mybb->user['fidX'] should work, where X is your field number.

(2016-04-10, 09:54 PM)dhod Wrote: [ -> ]On a side note, i'm trying to find out if it's possible to also update these fields on the frontend?

Well, you need to update the entries in the database: http://docs.mybb.com/1.8/development/plu...e-methods/
thanks a lot. this was super helpful!