forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: sownman on May 08, 2010, 01:46:10 am

Title: Removing statistics from index.php display
Post by: sownman 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
Title: Re: Removing statistics from index.php display
Post by: onthepike 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.
Title: Re: Removing statistics from index.php display
Post by: Joe Carver 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
Title: Re: Removing statistics from index.php display
Post by: sownman on May 08, 2010, 10:47:21 pm
Thanks for both responses. Tried 2nd one and it worked. Learning more all the time.

Steve