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:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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 1 Guest 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.