From 9112dec6edb58bd2ed9b200d141a5a37c309c28c Mon Sep 17 00:00:00 2001 From: Antoine Le Gonidec Date: Tue, 30 Jul 2024 12:33:40 +0200 Subject: [PATCH] Do not display members post count, even for admins --- Memberlist.template.php | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/Memberlist.template.php b/Memberlist.template.php index 881ef87..1f29740 100644 --- a/Memberlist.template.php +++ b/Memberlist.template.php @@ -43,6 +43,10 @@ function template_main() // Display each of the column headers of the table. foreach ($context['columns'] as $key => $column) { + // Do not display the messages count column + if ( $key == 'post_count' ) + continue; + // @TODO maybe find something nicer? if ($key == 'email_address' && !$context['can_send_email']) continue; @@ -92,22 +96,6 @@ function template_main() ', empty($member['group']) ? $member['post_group'] : $member['group'], ' ', $member['registered_date'], ''; - if (!isset($context['disabled_fields']['posts'])) - { - echo ' - '; - - if (!empty($member['posts'])) - echo ' -
-
- ', $member['posts'], ' -
'; - - echo ' - '; - } - // Show custom fields marked to be shown here if (!empty($context['custom_profile_fields']['columns'])) foreach ($context['custom_profile_fields']['columns'] as $key => $column)