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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

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.