forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Jeff Bailey on August 26, 2010, 12:52:34 am

Title: Fade Background Plugin for cpg1.5.x
Post by: Jeff Bailey on August 26, 2010, 12:52:34 am
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 (http://documentation.coppermine-gallery.net/en/plugins.htm#plugin_manager). 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
Title: Re: Fade Background Plugin for cpg1.5.x
Post by: Αndré on September 01, 2010, 03:12:28 pm
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.
Title: Re: Fade Background Plugin for cpg1.5.x
Post by: Jeff Bailey on September 01, 2010, 03:21:36 pm
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.
Title: Re: Fade Background Plugin for cpg1.5.x
Post by: wilk on August 26, 2014, 10:09:44 pm
Good plugin, however there's a typo which breaks i18n:

Code: [Select]
--- 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")) {
Title: Re: Fade Background Plugin for cpg1.5.x
Post by: Jeff Bailey on August 27, 2014, 12:44:17 am
Thanks for the feedback. Shouldn't have broken anything since only english.php exists. Corrected and attached in first post.