Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Fade Background Plugin for cpg1.5.x  (Read 7114 times)

0 Members and 1 Guest are viewing this topic.

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Fade Background Plugin for cpg1.5.x
« 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. 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
« Last Edit: August 27, 2014, 12:43:00 am by Jeff Bailey »
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Fade Background Plugin for cpg1.5.x
« Reply #1 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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Fade Background Plugin for cpg1.5.x
« Reply #2 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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

wilk

  • Translator
  • Coppermine novice
  • **
  • Country: pl
  • Offline Offline
  • Gender: Male
  • Posts: 46
  • Wilk Wilkowy
    • #QuizPL @ IRCnet
Re: Fade Background Plugin for cpg1.5.x
« Reply #3 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")) {
Logged
PM me for Polish translations (new/update)

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1323
  • Fishing relaxes me.
    • Bailey Family Co.
Re: Fade Background Plugin for cpg1.5.x
« Reply #4 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.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford
Pages: [1]   Go Up
 

Page created in 0.08 seconds with 21 queries.