Now part of fancyapps...

What's new

Version 2 is completely rewritten with new features and updated graphics.

Notable changes

  • Extendable using helpers
  • Responsive (try resizing window while fancyBox is open)
  • Integrated slideshow
  • New gallery transitions
  • Uses CSS3 (shadows, round corners)
  • Updated plugin options (not compatible with previous versions)
  • Now licensed under Creative Commons Attribution-NonCommercial 3.0

Comments

dddbbb’s picture

I would also love to see this implemented. I have a great need for a responsive modal box system in Drupal, fancyBox 2 would be a great solution.

jcisio’s picture

Fancybox 2.x requires jQuery 1.6+. Even with Drupal 7 + jQuery Update, you only get jQuery 1.5.x. So it is not evident...

klonos’s picture

dddbbb’s picture

Looks like #1386294: Fix jQuery 1.7 for Drupal 7 is pretty much there now.

dddbbb’s picture

we have now jQuery 1.7 in 7.x-2.x-dev

#1386294: Fix jQuery 1.7 for Drupal 7 is now fixed.

bas.hr’s picture

Status: Active » Postponed

I'll postpone it until we find someone who is willing to work on this task

yannickoo’s picture

I love the fancybox and I'm the maintainer of the Gallery Link module but I don't fancybox 2 cause of the new license.

fancyBox licensed under Creative Commons Attribution-NonCommercial 3.0 license.
You are free to use fancyBox for your personal or non-profit website projects.
You can get the author's permission to use fancyBox for commercial websites by paying a fee.

Should we really support that?

jcisio’s picture

Why not? Fancybox is still open source. We even support close source solution (MS SQL driver for Drupal is an example).

joelpittet’s picture

Yes we should. Dude has done a great job, made improvements and sells a good product. The licence for commercial sites is very reasonable as well.

yannickoo’s picture

Okay that's true. But how should we implement this? The code you need to trigger the fancybox and the options are different. Should the fancybox module detect which version of fancybox is installed (in libraries directory) and display the suitable options?

dddbbb’s picture

Detection sounds good to me but I'd go a step further and add some help text to the admin page explaining that the settings displayed are as a result of library version detection (hopefully that'll save a few support issues).

kingfisher64’s picture

It's the responsive bit i'm interested in. Tried the demos and loved it.

How's the progress going on upgrading fancybox to fancybox2?

CinemaSaville’s picture

Any updates on this? Also very interested.

bas.hr’s picture

@yannickoo:
Code/options to trigger different minor versions (1.3.1 vs 1.3.4) was also different, thats why I lost interest in supporting such an unstable JS. Version 1.3 is buggy and it makes no sense to support it when there are better replacements such as Colorbox.

Anyway, fancybox2 should be different branch 7-2.x. I wouldn't mix both codes.

@kingfisher64 & @CinemaSaville:
No updates, everyone is waiting for magic to happen :) Are you willing to fund development?

kingfisher64’s picture

I'm using colorbox. There's a licence fee associated with fancybox. Although it's great and the creator deserves to receieve funding, to pay for a lightbox solution everytime it's used, to me is not plausable. sorry.

dwieeb’s picture

I will be working on getting a stable branch for fancyBox 2 up. As bas.hr mentioned, it will be on the 2.x branch.

As of now, since this is a fairly simple module and the differences between version 1 and 2 of FancyBox are so extreme, I doubt the module will be upgradable from 1.x to 2.x. You'll just have to uninstall and reinstall the stable 2.x version.

Development is underway...

klonos’s picture

Assigned: Unassigned » dwieeb
Status: Postponed » Active

Great news! Let us know when there's something available for testing Daniel ;)

dwieeb’s picture

Status: Active » Postponed

This is postponed again as fancyBox2 requires at least jQuery 1.7 (as mentioned earlier in this topic), and Drupal core provides 1.4.4 and the jQuery Update module provides 1.5.2. There's talk of 1.7, but there's still some work to do.

For 2.x jQuery Update will have to be a dependency (once they update to 1.7).

jcisio’s picture

Status: Postponed » Active

FYI jQuery Update provides 1.7.x in the latest development snapshot (there is an option to chose 1.5/1.7).

klonos’s picture

...you got me to it Hai-Nam ;)

dwieeb’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev

Okay, please test 7.x-2.x-dev. You can find the download on the project page. See the readme for installation and usage instructions. You will need the dev version of jQuery Update.

The functionality is largely inspired by the Colorbox module, so it should be easy to switch between the two. Let me hear your thoughts about it. Feel free to create a new issue.

These features are planned:

  • Insert module integration
  • Views integration

Any requests or comments?

dwieeb’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

...h2 instead of h1.