From 77984d4af2aef96e38aa0154cda5e65ce7d0574e Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 12 Jun 2024 14:36:30 +0700 Subject: [PATCH] Update modcp.php --- modcp.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modcp.php b/modcp.php index 2eefea4f..3729d04d 100644 --- a/modcp.php +++ b/modcp.php @@ -596,7 +596,7 @@ switch ($mode) } else { - $sql = "SELECT u.username, p.*, pt.post_text, p.post_username + $sql = "SELECT u.username, u.user_rank, p.*, pt.post_text, p.post_username FROM " . BB_POSTS . " p, " . BB_USERS . " u, " . BB_POSTS_TEXT . " pt WHERE p.topic_id = $topic_id AND p.poster_id = u.user_id @@ -627,6 +627,7 @@ switch ($mode) $post_id = $postrow[$i]['post_id']; $poster_id = $postrow[$i]['poster_id']; $poster = $postrow[$i]['username']; + $poster_rank = $postrow[$i]['user_rank']; $post_date = bb_date($postrow[$i]['post_time'], $bb_cfg['post_date_format']); @@ -642,7 +643,7 @@ switch ($mode) $template->assign_block_vars('postrow', array( 'ROW_CLASS' => $row_class, - 'POSTER_NAME' => wbr($poster), + 'POSTER_NAME' => profile_url(array('username' => $poster, 'user_id' => $poster_id, 'user_rank' => $poster_rank)), 'POST_DATE' => $post_date, 'MESSAGE' => $message, 'CHECKBOX' => (defined('BEGIN_CHECKBOX')) ? TRUE : FALSE,