PHPBB Using Custom Field External
Posted
by moustafa
on Stack Overflow
See other posts from Stack Overflow
or by moustafa
Published on 2010-06-12T15:52:30Z
Indexed on
2010/06/12
16:32 UTC
Read the original article
Hit count: 333
php
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.
© Stack Overflow or respective owner