News:

Wondering if this will always be free?  See why free is better.

Main Menu

Post Counts disable

Started by Pinto, June 16, 2005, 05:00:37 PM

Previous topic - Next topic

Pinto

Does anyone know of a way to completely get rid of post count from showing up on the profiles and the memberlist? I've looked around hard and all I could find is how to get rid of it when it is on their post.

codenaught

#1
Sources/Memberlist.php

Find and Remove:
),
'posts' => array(
'label' => $txt[21],
'width' => '115',
'colspan' => '2'


Themes/themename/Memberlist.template.php (In each theme you use)

Find and Remove:
<td class="windowbg2" width="15">', $member['posts'], '</td>
<td class="windowbg" width="100" align="left">
', $member['posts'] > 0 ? '<img src="' . $settings['images_url'] . '/bar.gif" width="' . $member['post_percent'] . '" height="15" alt="" border="0" />' : '', '
</td>


Themes/themename/Profile.template.php (In the themes you want to remove it)

Find and Remove:
<td><b>', $txt[86], ': </b></td>
<td>', $context['member']['posts'], ' (', $context['member']['posts_per_day'], ' ', $txt['posts_per_day'], ')</td>


There is no way I that I could see not editing the the source file Memberlist.php. Unfortunatly this also means you HAVE to have every theme not be able to see it. So hopefully you don't mind that otherwise maybe someone with actual coding skills can help. :P

Dev Consultant
Former SMF Doc Coordinator

JustJa

And how to disable just the ones related to administrators/moderators?

xenovanis

"Insanity: doing the same thing over and over again and expecting different results."

JustJa


Advertisement: