MyBB Hacks

Full Version: How to get Custom Profile Field in header template
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys,
I was wondering how to get a users custom profile field from the header template. I've tried $userfields but that didn't work. Any ideas?

Cheers!
Try using {$mybb->user['fidX']} for the logged in user (maybe you need to sanitize it).
(05-25-2012 02:32 AM)RateU Wrote: [ -> ]Try using {$mybb->user['fidX']} for the logged in user (maybe you need to sanitize it).

Hmm, I was sure I tried that but apparently I didn't haha. Thanks so much RateU, that worked perfectly Biggrin
Reference URL's