Whats wrong with this code?

this somewhat with my phpbbplus board with PCP but am having problems getting this to work on IM 141. For some reason my def_userfuncs_custom.php code isn't working right and when I go to alter page display the page goes blank.
Here is the code:
def_userfields.php
Attached also is the install instructions for the original mod.
Here is the code:
- Code: Select all
//----------------------------------- // // user_repprof output function // //----------------------------------- function pcp_output_repprof($field_name, $view_userdata, $map_name='') { global $board_config, $phpbb_root_path, $phpEx, $lang, $images, $userdata, $db; global $values_list, $tables_linked, $classes_fields, $user_maps, $user_fields; $img = ''; $res = ''; $txt = ''; $img = get_reputation_medals($view_userdata['user_reputation']) . " <br><span>(<a>" . $lang['Votes'] . "</a>: " . $row_rep['count_reps'] . ")</span>"; // result $res = pcp_output_format($field_name, $txt, $img, $map_name); return $res; }
def_userfields.php
- Code: Select all
'user_repprof' => array( 'lang_key' => 'Reputation', 'class' => 'generic', 'type' => 'VARCHAR', 'dsp_func' => 'pcp_output_repprof', ),
Attached also is the install instructions for the original mod.