Page 1 of 1

Make custom profile field available globally?

Posted: Fri May 18, 2018 1:43 pm
by FDMK
I'd like to make a custom profile field available to every page of the forum. It was easy in phpbb2, but I'm new to phpbb3 and not sure how to go about doing that.

Thanks

Re: Make custom profile field available globally?

Posted: Fri May 18, 2018 2:24 pm
by FDMK
Nevermind, I figured it out.

In the page_header function in functions.php, I added:

$user->get_profile_fields( $user->data['user_id'] );

'USER_FIELD' => $user->profile_fields['pf_fieldname']