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: Fade in plugin (Adds a fade-in effect on each intermediate-sized picture load)  (Read 302 times)

0 Members and 1 Guest are viewing this topic.

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254

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
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1740

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
Logged

altenae

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 254

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....
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1740

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 21 queries.