forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: jedi on November 03, 2004, 07:15:53 am

Title: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: jedi on November 03, 2004, 07:15:53 am
Hello again,

I sincerely apologize if this has been posted before.  I did a search, and I couldn't, for the life of me, find something that exactly matched my problem.

I need to remove the statistics on the album thumbnail page.  Not the main page, I've already done that thanks to a successful search of the archives.  I'm talking about "thumbnails.php", where the pictures in the individual albums are shown.

Once I get this done, I'll finally be able to launch the site, and it will be in very large part due to the experts here at the coppermine's technical support team!

Thank you!
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: Joachim Müller on November 03, 2004, 07:59:28 am
coppermine config, set "Display number of views below the thumbnail" to "no".

Joachim
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: jedi on November 03, 2004, 08:01:36 am
That's not quite what I was looking for..

I'm looking to remove the statistics regarding number of images on number of pages at the bottom of the page.

I tried looking for something similar to the fix for removing the main page's statistics, but I couldn't find anything.
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: Joachim Müller on November 03, 2004, 08:06:34 am
edit themes/yourtheme/theme.php, find
Code: [Select]
$theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => $lang_thumb_view['pic_on_page']));and replace with
Code: [Select]
$theme_thumb_tab_tmpl['left_text'] = strtr($theme_thumb_tab_tmpl['left_text'], array('{LEFT_TEXT}' => ''));Joachim
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: jedi on November 03, 2004, 08:11:12 am
I did that, and it returned this error:


Parse error: parse error in /usr/home/angeles/htdocs/ussangeles.org/Awaymissions/themes/lcars/theme.php on line 1258
Template error
Failed to find block 'c_album_cell'(#(<!-- BEGIN c_album_cell -->)(.*?)(<!-- END c_album_cell -->)#s) in :

What happened?
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: Joachim Müller on November 03, 2004, 08:21:06 am
oops, sorry - wrong place to edit. Undo above modifications, instead: find
Code: [Select]
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b>{LEFT_TEXT}</b></td>' . "\n",and replace
Code: [Select]
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1_compact" style="white-space: nowrap"><b><!--{LEFT_TEXT}--></b></td>' . "\n",
Joachim
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: jedi on November 03, 2004, 08:24:51 am
Nope, it didn't quite remove what I'm looking to make disappear...

Here's the part on thumbnails.php I'm talking about...
Title: Re: Thumbnail Statistics in thumbnails.php... ...please help.
Post by: Casper on November 03, 2004, 11:16:13 am
The easy way is to open your language file, i.e., english.php, and find;

Code: [Select]
'pic_on_page' => '%d files on %d page(s)',
Change it to;

Code: [Select]
'pic_on_page' => '',