PHPBB Using Custom Field External
- by moustafa
Basically I'm using phpbb as a forum of the main site and for images there are captions and in the Control Panel of the forum I added a custom profile field asking if the user if he/she wants amusing or descriptive captions.
The below is something i came up with, but it is horrible, i know, and I'm stuck.
The default captions should be descriptive, so
if ($user->data['is_registered']){
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$user->get_profile_fields( $user->data['user_id'] );
$user->profile_fields['pf_captions'];
if (pf_captions_value == descriptive)
echo "Lassoed, Hogtied, and Captured...";
else {
echo "Not your typical $18...";
}
}
There is also code for connecting to phpbb so ask me if you want it.