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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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