News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

how to hide post count on message index only

Started by sharks, October 21, 2010, 09:06:47 AM

Previous topic - Next topic

sharks

hi

i am using SMF 2.0 RC3 with default theme and i want to hide the post count info only (found under all users' avatars). I know there is some manual code edit involved. Possibly in the Display.template.php file? (like for the similar SMF 1.1.x edit) but the code isn't the same as for the SMF 1.1.x edit, so i am hoping someone would tell what exactly to change in the code for SMF 2.0 RC3? Thanks! :)

IchBin™

This is the code you can comment or remove from the Display.template.php file.
            // Show how many posts they have made.
            if (!isset($context['disabled_fields']['posts']))
                echo '
                                <li class="postcount">', $txt['member_postcount'], ': ', $message['member']['posts'], '</li>';
IchBin™        TinyPortal

sharks

It worked flawlessly!

Thanks, IchBin™.

I had tried to remove that code before, but then i left this:  // Show how many posts they have made.
And then whenever someone viewed a post, there would be an error in the error log. But after i removed that title as well, no more errors! :D

Advertisement: