Advanced search  

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

Pages: [1]   Go Down

Author Topic: remove comments number on main page  (Read 3623 times)

0 Members and 1 Guest are viewing this topic.

Astroman

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
remove comments number on main page
« 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.
« Last Edit: May 08, 2007, 08:36:02 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

Astroman

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: remove comments number on main page
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: remove comments number on main page
« Reply #3 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
Logged

Astroman

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: remove comments number on main page
« Reply #4 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 19 queries.