From 2a7b7bfe9606d5c64ace7949ad7769a3617adf95 Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Thu, 25 Jul 2024 14:07:40 +0200 Subject: [PATCH] Remove the posts count / postgroup from an user details --- Display.template.php | 13 ------------- PersonalMessage.template.php | 14 -------------- 2 files changed, 27 deletions(-) diff --git a/Display.template.php b/Display.template.php index 9e113bf..ddd3a35 100644 --- a/Display.template.php +++ b/Display.template.php @@ -539,19 +539,6 @@ function template_single_post($message) echo '
  • ', $message['member']['group'], '
  • '; - // Show the post group icons - //echo '
  • ', $message['member']['group_icons'], '
  • '; - - // Show the post group if and only if they have no other group or the option is on, and they are in a post group. - if ((empty($modSettings['hide_post_group']) || empty($message['member']['group'])) && !empty($message['member']['post_group'])) - echo ' -
  • ', $message['member']['post_group'], '
  • '; - - // Show how many posts they have made. - //if (!isset($context['disabled_fields']['posts'])) - // echo ' - //
  • ', $txt['member_postcount'], ': ', $message['member']['posts'], '
  • '; - // Show the user's avatar. if (!empty($modSettings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image'])) echo ' diff --git a/PersonalMessage.template.php b/PersonalMessage.template.php index 675fda2..c6749d9 100644 --- a/PersonalMessage.template.php +++ b/PersonalMessage.template.php @@ -354,20 +354,6 @@ function template_single_pm($message) // Don't show these things for guests. if (!$message['member']['is_guest']) { - // Show the post group icons - echo ' -
  • ', $message['member']['group_icons'], '
  • '; - - // Show the post group if and only if they have no other group or the option is on, and they are in a post group. - if ((empty($modSettings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '') - echo ' -
  • ', $message['member']['post_group'], '
  • '; - - // Show how many posts they have made. - if (!isset($context['disabled_fields']['posts'])) - echo ' -
  • ', $txt['member_postcount'], ': ', $message['member']['posts'], '
  • '; - // Show their personal text? if (!empty($modSettings['show_blurb']) && $message['member']['blurb'] != '') echo '