coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Astroman on May 07, 2007, 11:02:21 AM

Title: remove comments number on main page
Post by: Astroman on May 07, 2007, 11:02:21 AM
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.
Title: Re: remove comments number on main page
Post by: Joachim Müller on May 07, 2007, 12:45:45 PM
Search phrase: "remove files in albums and categories with comments viewed times" (http://forum.coppermine-gallery.net/index.php?action=search2;search=remove%20files%20in%20albums%20and%20categories%20with%20comments%20viewed%20times)
Title: Re: remove comments number on main page
Post by: Astroman on May 08, 2007, 07:40:41 PM
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.
Title: Re: remove comments number on main page
Post by: Joachim Müller on May 09, 2007, 07:28:29 AM
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
Title: Re: remove comments number on main page
Post by: Astroman on May 09, 2007, 02:03:08 PM
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.