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: Removing statistics from index.php display  (Read 4073 times)

0 Members and 1 Guest are viewing this topic.

sownman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Removing statistics from index.php display
« on: May 08, 2010, 01:46:10 am »

I'm been looking for a thread on this and although I'm sure there must be one I'm not finding
it. Perhaps my terminology is wrong. I want to remove the staistics "39 files in 3 albums with 0 comments viewed 154 times"
from the header. In fact removing the header would be fine also. I'm using the igames theme and 1.4.26
Can anyone point me in the right direction.

http://www.michaelahartphotography.com/cprgallery/index.php

Note to Joachim. You moved my last thread with the admonishment to pay attention to board rules.
I was trying to pay attention. I see many admonishments about not adding on to someone elses thread
hence I thought the proper approach was to start a new one. Didn't intend to err.



Thanks for any help

Steve
Logged

onthepike

  • Guest
Re: Removing statistics from index.php display
« Reply #1 on: May 08, 2010, 06:52:24 am »

That's in two files: index.php and (language).php, in your case, english.php. I think the easiest way to remove the line would be to edit the stat1 display in lang/english.php by simply deleting everything between the single quotes.

Line 1283, find 'stat1' => '<b>[pictures]</b> files in <b>[albums]</b> albums and <b>[cat]</b> categories with <b>[comments]</b> comments viewed <b>[views]</b> times', and remove everything on the line, leaving only '',

So, your line should read: 'stat1' => '',

There may be another (simpler) way to accomplish this, but I'm not familiar.
Logged

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1545
  • aka 'i-imagine'
    • Home Page
Re: Removing statistics from index.php display
« Reply #2 on: May 08, 2010, 11:50:21 am »

This can be done with theming.

In file themes/sample/theme.php find this function and copy it into themes/your_custom_theme/theme.php.
Copy + paste the complete, entire function.   function theme_display_album_list

Code: [Select]
function theme_display_album_list(&$alb_list, $nbAlb, $cat, $page, $total_pages)

CODE CODE CODE
CODE CODE CODE

    echo $spacer;
}

Then find:
Code: [Select]
   starttable('100%');
Add below it this:
Code: [Select]
$statistics = '';
EDITED for clarity
« Last Edit: May 08, 2010, 06:20:25 pm by Joe Carver »
Logged

sownman

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Removing statistics from index.php display
« Reply #3 on: May 08, 2010, 10:47:21 pm »

Thanks for both responses. Tried 2nd one and it worked. Learning more all the time.

Steve
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.