Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Meta albums from idex.php to take the actual image not the thumbs  (Read 3575 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362

I want to have big thumbnails (300px width) only for the meta albums on the index.php but the thumbnails are just 128px width.I don't won't to crop all the thumbs at 300px because I am on a shared host.

Can coppermine have a condition to use the actual image not the thumbnails for the meta albums only on the index.php?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Meta albums from idex.php to take the actual image not the thumbs
« Reply #1 on: March 20, 2014, 04:02:55 pm »

Copy the function theme_display_thumbnails from themes/sample/theme.php to your theme's theme.php file, if it doesn't exist.

Find
Code: [Select]
$superCage = Inspekt::makeSuperCage();and below, add
Code: [Select]
    global $CPG_PHP_SELF;
    if (!is_numeric($aid) && $CPG_PHP_SELF == 'index.php' && $cat == 0) {
        foreach($thumb_list as $key => $value) {
            $thumb_list[$key]['image'] = str_replace('/'.$CONFIG['thumb_pfx'], '/', $value['image']);
        }
    }
« Last Edit: March 20, 2014, 04:24:47 pm by Αndré »
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Meta albums from idex.php to take the actual image not the thumbs
« Reply #2 on: March 20, 2014, 04:08:35 pm »

It shows only the filename,no image

src="albums/userpics/10001Charlize_Theron_photoshoot_028.jpg.

and it shows on category pages too.
« Last Edit: March 20, 2014, 04:15:26 pm by allvip »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Meta albums from idex.php to take the actual image not the thumbs
« Reply #3 on: March 20, 2014, 04:25:01 pm »

Above code updated.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Meta albums from idex.php to take the actual image not the thumbs
« Reply #4 on: March 20, 2014, 04:28:44 pm »

Thanks.It worked.

If someone needs this for all the pages just delete  && $cat == 0 from Andre's code.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.