//-- add $u_from_user_profile = $get->url('userlist', array('mode' => 'viewprofile', POST_USERS_URL => $msg_userid), true); //-- fin mod : rank color system ----------------------------------------------- $msg_subject = $row['privmsgs_subject']; if (count($orig_word)) { $msg_subject = preg_replace($orig_word, $replacement_word, $msg_subject); } $u_subject = append_sid("privmsg.{$phpEx}?folder={$folder}&mode=read&" . POST_POST_URL . "={$privmsg_id}"); $msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']); if ($flag == PRIVMSGS_NEW_MAIL && $folder == 'inbox') { $msg_subject = '<b>' . $msg_subject . '</b>'; $msg_date = '<b>' . $msg_date . '</b>'; $msg_username = '******' . $msg_username . '</b>'; } $row_color = !($i % 2) ? $theme['td_color1'] : $theme['td_color2']; $row_class = !($i % 2) ? $theme['td_class1'] : $theme['td_class2']; $i++; // Start Smilies Invasion Mod if ($board_config['allow_smilies']) { $msg_subject = smilies_pass($msg_subject); } // End Smilies Invasion Mod $template->assign_block_vars('listrow', array('ROW_COLOR' => '#' . $row_color, 'ROW_CLASS' => $row_class, 'STYLE' => $rcs->get_colors($row), 'FROM' => $msg_username, 'SUBJECT' => $msg_subject, 'DATE' => $msg_date, 'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id), 'PRIVMSG_FOLDER_IMG' => $icon_flag, 'L_PRIVMSG_FOLDER_ALT' => $icon_flag_alt, 'S_MARK_ID' => $privmsg_id, 'U_READ' => $u_subject, 'U_FROM_USER_PROFILE' => $u_from_user_profile)); } while ($row = $db->sql_fetchrow($result)); $template->assign_vars(array('PAGINATION' => generate_pagination("privmsg.{$phpEx}?folder={$folder}", $pm_total, $board_config['topics_per_page'], $start), 'PAGE_NUMBER' => sprintf($lang['Page_of'], floor($start / $board_config['topics_per_page']) + 1, ceil($pm_total / $board_config['topics_per_page'])), 'L_GOTO_PAGE' => $lang['Goto_page'])); } else { $template->assign_vars(array('L_NO_MESSAGES' => $lang['No_messages_folder'])); $template->assign_block_vars("switch_no_messages", array()); } $template->pparse('body'); include $phpbb_root_path . 'includes/page_tail.' . $phpEx;
if (($flag == PRIVMSGS_NEW_MAIL) && ($folder == 'inbox')) { $msg_subject = '<b>' . $msg_subject . '</b>'; $msg_date = '<b>' . $msg_date . '</b>'; $msg_username = '******' . $msg_username . '</b>'; } $row_class = (!($i % 2)) ? $theme['td_class1'] : $theme['td_class2']; $i++; $template->assign_block_vars('listrow', array( 'ROW_CLASS' => $row_class, 'FROM' => $msg_username, 'SUBJECT' => $msg_subject, 'DATE' => $msg_date, 'PRIVMSG_ATTACHMENTS_IMG' => privmsgs_attachment_image($privmsg_id), 'PRIVMSG_FOLDER_IMG' => $icon_flag, 'L_PRIVMSG_FOLDER_ALT' => $icon_flag_alt, 'S_MARK_ID' => $privmsg_id, 'U_READ' => $u_subject, 'U_FROM_USER_PROFILE' => $u_from_user_profile ) ); } while($row = $db->sql_fetchrow($result)); $search_pagination = $search_type ? ('&searchvar=' . $search_type . '&searchvalue=' . urlencode($search_value)) : '';