Fancybox link not working

Permalink 1 user found helpful
I'm obviously not understanding some basics here so any help would be appreciated. I've installed at least 3 different gallery plug-ins and they all have the same behavior. Clicking on the thumbnail doesn't do anything. I can right-click and open the full size image in another tab/window but the link doesn't work.

Is this a fancybox problem since that's what's in the "rel=" attribute?

Thanks

apellow
View Replies: View Best Answer
12345j replied on at Permalink Reply
12345j
not all galleries support fancy box. However, it could be an issue with the add-on if they say they support lightbox loading. consider opening up a support request on the add ons pages.
apellow replied on at Permalink Reply
apellow
The "fancybox" reference is what the add-on generated on the page so they obviously support it. Also, all 3 add-ons are failing the same way so I'm not sure it's a problem with the add-ons.

I'll post the question to their forums as well just in case.

Thanks
pvernaglia replied on at Permalink Reply
pvernaglia
The PUG PopUp uses fancybox and pops up most anything you would want to pop:http://www.concrete5.org/marketplace/addons/pug-gallery-and-popup-u...
apellow replied on at Permalink Reply
apellow
That looks very promising and I love the thumbnail cropping feature among many others. However, I'm reluctant to buy anything until I know why clicking on thumbnails isn't working for any of the other add-ons I've tried. I'm afraid I'll have the same problem.
12345j replied on at Permalink Reply
12345j
whats the url?
apellow replied on at Permalink Reply
apellow
The link is: http://www.benjer.net/index.php?cID0...

User: test
Pass: c5test01
12345j replied on at Permalink Reply
12345j
for this page:http://www.benjer.net/index.php/photos/...
I get this error trying to do fancy box.
TypeError: 'undefined' is not an object (evaluating 't.hide')
so its a problem with fancy box, not the add-on. not sure how to fix tho.
apellow replied on at Permalink Best Answer Reply
apellow
I got a fix on another forum.

The theme I'm using ("Slate") is already including the fancybox lightbox in its code, so any other addons that I try that have the fancybox will fail because the theme and the addon's copies of fancybox will conflict with each other.

The solution for Sortable Fancybox Gallery was to modify the following file on my server:
SITEROOT/packages/sortable_fancybox_gallery/blocks/sortable_fancybox_gallery/controller.php

... and removing the following code (should be lines #14-22):
public function on_page_view() {
       if ($this->enableLightbox) {
               $html = Loader::helper('html');
               $bv = new BlockView();
               $bv->setBlockObject($this->getBlockObject());
               $this->addHeaderItem($html->css($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.css'));
               $this->addHeaderItem($html->javascript($bv->getBlockURL() . '/fancybox/jquery.fancybox-1.3.1.pack.js'));
       }
}


Worked like a champ!
CheSimpson replied on at Permalink Reply
Worked for me too. Good work.