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: Thumbnail Statistics in thumbnails.php... ...please help.  (Read 3695 times)

0 Members and 1 Guest are viewing this topic.

jedi

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Thumbnail Statistics in thumbnails.php... ...please help.
« 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!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #1 on: November 03, 2004, 07:59:28 am »

coppermine config, set "Display number of views below the thumbnail" to "no".

Joachim
Logged

jedi

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #2 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #3 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
Logged

jedi

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #4 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #5 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
Logged

jedi

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #6 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...
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Thumbnail Statistics in thumbnails.php... ...please help.
« Reply #7 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' => '',
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.