FGallery 2.3 with Lightbox is up and running

Apparently a lot of people are having a problem getting FGallery with Lightbox to run when using the Foliage Mod Theme by Derek Punsalan. I too had the problem since I based my theme off of that one, but I found a simple solution.

To get fgallery working along with the Folliage Mod theme you’ll need to edit the fgallery-plugin.php file. Lightbox and the Folliage Mod theme both use the script.aculo.us framework. So you’ll need to remove the links to these two javascript files in the fgallery-plugin.php file to prevent a javascript conflict:

wp-content/plugins/fgallery/lightbox/js/prototype.js wp-content/plugins/fgallery/lightbox/js/scriptaculous.js

The Folliage Mod theme already loads them, so you won’t need to load them again via fGallery.

Note: Make sure you remember that you removed those links. If you switch to a theme that doesn’t load scriptaculous by default you’ll have to go back and add the links back to the fgallery-plugin.php in order to make Lightbox work again.

Update:

As of August 2007 I am not longer running fGallery, the scriptaculous framework, or Lightbox on this site. I am now using the Wildbits myGallery wordpress plugin to handle my image gallery duties. I’ve replaced Scriptaculous with the lighter weight Mootools framework. Lightbox is not compatible with Mootools so I also had to replace it. Slimbox is the perfect replacement. It runs smoother, and is much smaller than Lightbox. It even uses the same rel=”lightbox” attribute; so there is no need to change any links.

6 Responses to “FGallery 2.3 with Lightbox is up and running”

  1. Cato Says:

    Hi.

    I see you have managed to get the fgallery to work with the theme and the pull tab. In what file did you remove the link to effects.js? I’m been stugling with this for a while now. Do you mind giving me some details on how to fix this?

    Thanks in advance.

  2. Oseary Says:

    I’m writing regarding the “Old” version of “fgallery.” I use the foliagemod theme, and cannot get it to use the lightbox functionality properly.

    Can you email me the “old” version?

  3. Eric Parks Says:

    Here’s a link to the version of fgallery 2.2 I was running on my site:

    ***Link has been removed***

    I preferred to have light box outside of the actual fgallery folder myself. So I moved the entire “lightbox” folder from inside the fgallery folder to the root of my server. So in this fgallery-plugin.php the lightbox links are set up like this:

    src=”/lightbox/js/lightbox.js”
    xhref=”/lightbox/css/lightbox.css”

    You’ll need to change those links back to the following if you prefer lightbox to remain inside of the fgallery directory.

    src=”lightbox/js/lightbox.js”
    xhref=”lightbox/css/lightbox.css”

  4. Daniel Burns Says:

    Do you know of a way to get Lightbox to work with the entire site and not just fgallery?

    For instance, if I embed an image in a post, can I get it to present within Lightbox?

    Thanks,

    Dan

  5. Eric Parks Says:

    Yeah that’s easy enough to do. Here are the full instructions for it:

    http://www.huddletogether.com/projects/lightbox2/#how

    As far as the short answer; just add the following in your anchor tag:

    rel=”lightbox”

    Here’s a sample of it working:
    Click Here

  6. Joey Says:

    :=)

Leave a Reply