Meta albums from idex.php to take the actual image not the thumbs Meta albums from idex.php to take the actual image not the thumbs
 

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]

Main Menu

Meta albums from idex.php to take the actual image not the thumbs

Started by allvip, March 20, 2014, 03:38:24 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

allvip

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?

Αndré

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

Find
$superCage = Inspekt::makeSuperCage();
and below, add
    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']);
        }
    }

allvip

It shows only the filename,no image

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

and it shows on category pages too.

Αndré


allvip

Thanks.It worked.

If someone needs this for all the pages just delete  && $cat == 0 from Andre's code.