forum.coppermine-gallery.net

Support => cpg1.6.x Support => cpg1.6 plugins => Topic started by: altenae on October 01, 2021, 06:12:09 pm

Title: Fade in plugin (Adds a fade-in effect on each intermediate-sized picture load)
Post by: altenae on October 01, 2021, 06:12:09 pm
Hi All,

The Fade in plugin is not working anymore with PHP 8.0
I can't figure out how to fix this.

I hope someone can help me out.
See attachment fadein.zip

Edward
Title: Re: Fade in plugin (Adds a fade-in effect on each intermediate-sized picture load)
Post by: ron4mac on October 02, 2021, 01:55:31 pm
There is one coding error in the plugin (double quotes "" where it should only be one ").
That coding error would only be impactful if you are using the transparent overlay.
But, regardless, it seems to function for me.
PHP 8.0.11, CPG 1.6.13, Chrome 92.0.4515.131 or Safari 14.1
Title: Re: Fade in plugin (Adds a fade-in effect on each intermediate-sized picture load)
Post by: altenae on October 03, 2021, 01:53:11 pm
There is one coding error in the plugin (double quotes "" where it should only be one ").
That coding error would only be impactful if you are using the transparent overlay.
But, regardless, it seems to function for me.
PHP 8.0.11, CPG 1.6.13, Chrome 92.0.4515.131 or Safari 14.1

Where do you see the double quotes ?
Sorry for asking....
Title: Re: Fade in plugin (Adds a fade-in effect on each intermediate-sized picture load)
Post by: ron4mac on October 03, 2021, 03:16:39 pm
Where do you see the double quotes ?

codebase.php, line 25, after background_picture
Code: [Select]
        $CURRENT_PIC_DATA['html'] = str_replace('<td ', '<td style="opacity: 0;" id="background_picture"" ', $CURRENT_PIC_DATA['html']);
IMHO, fade in would be better implemented via CSS in the theme.