Hey Whiskey,
Try something like this...
In profilcp/def/def_userfields.php add this to the generic informations.
'user_metiers' => array( 'lang_key' => 'Metiers', 'class' => 'generic', 'type' => 'VARCHAR', 'dsp_func' => 'pcp_output_metiers', ),
Then open profilcp/def/def_usermaps.php.
FIND
), ), 'PHPBB.viewtopic.left.ignore' => array(
BEFORE ADD
'user_metiers' => array( 'txt' => true, 'style' => '<div>%s</div>', ),
In def_userfields.php we have user_metiers calling to a display functions. I don't know the specifics of what you need, so I'll try to do something that can help you write one. Here's a basic outline of a display function that should be placed in profilcp/def/def_userfuncs_custom.php.
//-----------------------------------//// metiers output function////-----------------------------------function pcp_output_metiers($field_name, $view_userdata, $map_name=''){ global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $view_userdata; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; // don't forget to add globals for any vars not defined in this function. $txt = ''; $img = ''; $sql = 'SELECT WRFR_skill FROM ' . WOW_TABLE . WHERE wow_user_id = $view_userdata['user_id']; // The SQL query, I just made this up to guide you. if ( !$result = $db->sql_query($sql) ) { message_die(GENERAL_ERROR, 'Could not get WOW skills information', '', __LINE__, __FILE__, $sql); } $wow_row = $db->sql_fetchrow($result); // txt - this is the text that's displayed $txt = '<span>' . $wow_row['WRFR_skill'] . '</span>'; $temp_url = append_sid("./wow_char.$phpEx?mode=viewchar&" . POST_USERS_URL . '=' . $view_userdata['user_id']); // If you want to add a URL to an image or to the text above... I just made this up... // img - you can also have an image if you like, but you'll need to add it to the usermaps field as 'img' => true, to get it to display. $img = '<a><img></a>'; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); return $res; }