remove comments number on main page remove comments number on main page
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

remove comments number on main page

Started by Astroman, May 07, 2007, 11:02:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Astroman

How do I remove the comments counter on this line: 194 files in 22 albums and 3 categories with 0 comments viewed 333 times?

I don't want to have comments so I don't need this displayed.

Thanks.

Joachim Müller


Astroman

For anyone who doesn't want to trawl a bunch of threads that also redirect you to other threads. I have discovered the easiest way to remove one of these stats, in my case comments, is it alter your language file lang/english.php if you're using English for instance.

Joachim Müller

Best option is the one suggested by Nibbler, as it does not only hide the output, but saves resources by getting rid of some queries: http://forum.coppermine-gallery.net/index.php?topic=25060.msg115233#msg115233

Astroman

I think I tried that first then discovered that it left [comments] in there instead, which led me to the language file. It is the best way in terms of resources, but it's far easier for anyone not wanting to fiddle with code too much to simply comment it out from the language file and leave it at that. It's also easier that way to put it back in again if you change your mind in future. Language files are much easier to understand and see what's happening I think than looking at, what is to many, complicated codes.