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.
Ok I have created a custom profile Field or to and when i put

$post[fid#] in the post bit it shows up as the profile filed but i was wondering how could i get

$post[fid#] to work on other pages such as the portal or a new page thats created.
If it's for the current user then profile fields are already assigned in $mybbuser.

If it isn't you'll have to do your own querying:

$query = $db->query("SELECT * FROM ".TABLE_PREFIX."userfields WHERE uid='1'");
$profilefields = $db->fetch_array($query);

That will fetch the custom profile fields for the user of uid 1, most likely you.
ok ill mess with it later cause im off for the night.