PHPBB Using Custom Field External
<p>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.</p>

<p>The below is something i came up with, but it is horrible, i know, and I'm stuck.</p>

<p>The default captions should be descriptive, so</p>

<pre><code>if ($user-&gt;data['is_registered']){
include_once($phpbb_root_path . 'includes/functions_profile_fields.' . $phpEx);
$user-&gt;get_profile_fields( $user-&gt;data['user_id'] );
$user-&gt;profile_fields['pf_captions'];
if (pf_captions_value == descriptive)
echo "Lassoed, Hogtied, and Captured...";
else {
echo "Not your typical $18...";
}
}
</code></pre>

<p>There is also code for connecting to phpbb so ask me if you want it.</p>
