$author_panel = '';
 $postrow[$i]['user_friend'] = $buddys[$postrow[$i]['user_id']]['buddy_friend'];
 $postrow[$i]['user_visible'] = $buddys[$postrow[$i]['user_id']]['buddy_visible'];
 $postrow[$i]['user_my_friend'] = $buddys[$postrow[$i]['user_id']]['buddy_my_friend'];
 $postrow[$i]['user_my_ignore'] = $buddys[$postrow[$i]['user_id']]['buddy_my_ignore'];
 $postrow[$i]['user_online'] = $postrow[$i]['user_session_time'] >= time() - 300;
 $postrow[$i]['user_pm'] = 1;
 // sig
 if (!$userdata['user_viewsig'] || !$postrow[$i]['user_allow_sig']) {
     $postrow[$i]['user_sig'] = '';
 }
 // get the panels
 $author_panel = pcp_output_panel('PHPBB.viewtopic.left', $postrow[$i]);
 $buttons_panel = pcp_output_panel('PHPBB.viewtopic.buttons', $postrow[$i]);
 $ignore_panel = pcp_output_panel('PHPBB.viewtopic.left.ignore', $postrow[$i]);
 $ignore_buttons = pcp_output_panel('PHPBB.viewtopic.buttons.ignore', $postrow[$i]);
 //-- fin mod : profile cp --------------------------------------------------------------------------
 $poster_id = $postrow[$i]['user_id'];
 $poster = $poster_id == ANONYMOUS ? $lang['Guest'] : $postrow[$i]['username'];
 $post_date = create_date($board_config['default_dateformat'], $postrow[$i]['post_time'], $board_config['board_timezone']);
 //-- mod : profile cp ------------------------------------------------------------------------------
 //-- delete
 //-- No	sure if	I got this part	of the mod correct,	if there are problem they might	be here!
 /*
 	$poster_posts =	( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] .	': ' . $postrow[$i]['user_posts'] :	'';
 
 	$poster_from = ( $postrow[$i]['user_from'] && $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Location'] . ': '	. $postrow[$i]['user_from']	: '';
 
 	$poster_joined = ( $postrow[$i]['user_id'] != ANONYMOUS	) ?	$lang['Joined']	. ': ' . create_date($lang['DATE_FORMAT'], $postrow[$i]['user_regdate'],	$board_config['board_timezone']) : '';
 
 	$poster_avatar = '';
 @reset($user_maps[$maps[$i]]['fields']);
 while (list($field_name, $field_data) = @each($user_maps[$maps[$i]]['fields'])) {
     if ($field_data['leg'] && ($field_data['img'] || $field_data['txt'])) {
         $col++;
         $col++;
         break;
     }
 }
 // panel title
 $title = '';
 if (is_string($user_maps[$maps[$i]]['title'])) {
     $title = mods_settings_get_lang($user_maps[$maps[$i]]['title']);
 } else {
     $user_maps['_temp'] = array();
     $user_maps['_temp']['fields'] = $user_maps[$maps[$i]]['title'];
     $title .= pcp_output_panel('_temp', $view_userdata);
 }
 $template->assign_block_vars('col.panel', array('SPAN' => $col, 'TITLE' => $title));
 if (!$split) {
     $template->assign_block_vars('col.panel.linefeed', array());
 }
 // panel field
 @reset($user_maps[$maps[$i]]['fields']);
 while (list($field_name, $field_data) = @each($user_maps[$maps[$i]]['fields'])) {
     if (substr($field_name, 0, 4) == '[lf]') {
         $template->assign_block_vars('col.panel.row', array());
         $template->assign_block_vars('col.panel.row.linefeed', array());
     } else {
         $is_leg = $col > 1;
         $leg = pcp_output($field_name, $view_userdata, $maps[$i], true);
         // forget the legend
     $privmsg['user_ignore'] = $buddys['buddy_ignore'];
     $privmsg['user_my_friend'] = isset($my_buddys['buddy_ignore']) ? !$my_buddys['buddy_ignore'] : false;
     $privmsg['user_my_visible'] = $my_buddys['buddy_visible'];
     $privmsg['user_my_ignore'] = $my_buddys['buddy_ignore'];
     $privmsg['user_online'] = $privmsg['user_session_time'] >= time() - 300;
     $privmsg['user_pm'] = 1;
     // sig
     if (!$userdata['user_viewsig'] || !$privmsg['user_allow_sig']) {
         $privmsg['user_sig'] = '';
     }
     // get the from panels
     $privmsg['privmsgs_id'] = $privmsg_recip_id;
     $from_panel = pcp_output_panel('PHPBB.privmsgs.left', $privmsg);
     $buttons_panel = pcp_output_panel('PHPBB.privmsgs.buttons', $privmsg);
     $from_ignore_panel = pcp_output_panel('PHPBB.privmsgs.left.ignore', $privmsg);
     $ignore_buttons = pcp_output_panel('PHPBB.privmsgs.buttons.ignore', $privmsg);
     //
     // Dump it to the templating engine
     //
     $template->assign_vars(array('AUTHOR_PANEL' => !$privmsg['user_my_ignore'] ? $from_panel : $from_ignore_panel, 'DEST_PANEL' => !$privmsg['user_my_ignore'] ? $to_panel : $to_ignore_panel, 'BUTTONS_PANEL' => !$privmsg['user_my_ignore'] ? $buttons_panel : $ignore_buttons));
 }
 // post icons mod installed
 $post_icon = '';
 if ($mod_post_icon) {
     $topic_type = POST_NORMAL;
     $post_icon = get_icon_title($privmsg['privmsg_icon'], 1, $topic_type);
     $post_subject = $post_icon . ' ' . $post_subject;
 }
 //
 // Dump it to the templating engine
 //