Hide post count

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
User avatar
JimA
Former Team Member
Posts: 7833
Joined: Thu Jul 31, 2008 5:54 am
Location: The Netherlands
Name: Jim Mossing Holsteyn
Contact:

Re: Hide post count

Post by JimA »

I think James made a small mistake with which part to delete from the viewtopic_body.html file.
Try removing this, and don't forget to purge the cache afterwards. :)

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' --><dd class="profile-posts"><strong>{L_POSTS}{L_COLON}</strong> <!-- IF postrow.U_SEARCH !== '' --><a href="{postrow.U_SEARCH}"><!-- ENDIF -->{postrow.POSTER_POSTS}<!-- IF postrow.U_SEARCH !== '' --></a><!-- ENDIF --></dd><!-- ENDIF -->
Jim Mossing Holsteyn - Former Community Team Leader
Knowledge Base | Documentation | Board rules

If you're having any questions about the rules/customs of this website, feel free to drop me a PM.
thom_forum
Registered User
Posts: 19
Joined: Thu Aug 09, 2018 2:06 pm

Re: Hide post count

Post by thom_forum »

JimA wrote: Sun Feb 10, 2019 8:47 pm I think James made a small mistake with which part to delete from the viewtopic_body.html file.
Try removing this, and don't forget to purge the cache afterwards. :)

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' --><dd class="profile-posts"><strong>{L_POSTS}{L_COLON}</strong> <!-- IF postrow.U_SEARCH !== '' --><a href="{postrow.U_SEARCH}"><!-- ENDIF -->{postrow.POSTER_POSTS}<!-- IF postrow.U_SEARCH !== '' --></a><!-- ENDIF --></dd><!-- ENDIF -->
THAT's it, now the post count is gone.
Awesome. Thanks so much folks. :)
User avatar
pierredu
Registered User
Posts: 1256
Joined: Thu Nov 01, 2012 8:04 am
Location: Paris (France)

Re: Hide post count

Post by pierredu »

thom_forum wrote: Sun Feb 10, 2019 8:30 pm I'm unable to install that. After copying it to /ext/lmdi it doesn't show up in the disabled addons. I run 3.2.3, is that compatible with this version?
It works on my board. Just enable it and the line 'Beiträge: 1' disappears.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 6675
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Hide post count

Post by HiFiKabin »

JimA wrote: Sun Feb 10, 2019 8:47 pm I think James made a small mistake with which part to delete from the viewtopic_body.html file.
Try removing this, and don't forget to purge the cache afterwards. :)

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' --><dd class="profile-posts"><strong>{L_POSTS}{L_COLON}</strong> <!-- IF postrow.U_SEARCH !== '' --><a href="{postrow.U_SEARCH}"><!-- ENDIF -->{postrow.POSTER_POSTS}<!-- IF postrow.U_SEARCH !== '' --></a><!-- ENDIF --></dd><!-- ENDIF -->
:oops: copy/paste error. Thats what it was supposed to be.
Post Reply

Return to “phpBB Custom Coding”