Fade Background Plugin for cpg1.5.x Fade Background Plugin for cpg1.5.x
 

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

Fade Background Plugin for cpg1.5.x

Started by Jeff Bailey, August 26, 2010, 12:52:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jeff Bailey

Fade Background Plugin for cpg1.5.x

This plugin fades everything in cpg except for the intermediate photo. It adds its own navigation when faded then hides it while not faded. This allows you to have a similar experience as a light box only in the intermediate view. There is no configuration needed simply follow the instructions to upload a plugin. The "Fade Background" button will appear under the intermediate photo.

Tested in IE8, Opera 10.61, Chrome 5.0.375.126, and Firefox 3.6.8.

Updates:
Corrected Validation errors. v1.1 attached
Corrected Lang typo. v1.2 attached
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

ΑndrĂ©

Nice plugin :)

Is it possible to enable the overlay immediately if setFade=1 is submitted via the prev/next button?

If you view the first/last file, the next/prev button should disappear imo.

Jeff Bailey

Thanks.

Won't be able to do anything until later today but I can look into taking the buttons out, it shouldn't be difficult.

As for the fade when viewing the next/previous photo, an immediate fade looks choppy because its loaded with javascript but I'll look into it more.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

wilk

Good plugin, however there's a typo which breaks i18n:


--- org/plugins/fade_background/codebase.php Wed Aug 25 19:24:22 2010
+++ mod/plugins/fade_background/codebase.php Tue Aug 26 21:59:59 2014
@@ -23 +23 @@
-if ($CONFIG['lang'] != 'english' && file_exists("./plugins/fad_background/lang/{$CONFIG['lang']}.php")) {
+if ($CONFIG['lang'] != 'english' && file_exists("./plugins/fade_background/lang/{$CONFIG['lang']}.php")) {

PM me for Polish translations (new/update)

Jeff Bailey

Thanks for the feedback. Shouldn't have broken anything since only english.php exists. Corrected and attached in first post.
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford