MyBB Community Forums

Full Version: How do I update custom profile fields in code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to write a plugin for my forum about an MMO that gets information about my users' main character and puts them in some hidden custom profile fields.

I'm merrily chugging along on this project but hit a surprising roadblock: I can't find any way to actually update the custom fields themselves from PHP code! Am I missing something obvious, or is it even possible?
Which part are you wanting to update? Adding them, or just changing the data?

Custom Profile Fields' information is stored in the mybb_userfields table. ufid is the user's user ID. fid(x) is the corresponding id to the field in the mybb_profilefields table.
So I have to directly update the database myself? There isn't a built in method to do that?