Forums

Photo gallery problems

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.

I can't tell if this is a general Concrete5 problem or a Slate theme problem or a my computer problem... thanks!

Updated:

I learned how to use CTRL+SHIFT+J and I see this message when I click on an image:

Uncaught TypeError: Cannot call method 'hide' of undefined
N - jquery.fancybox-1.3.4.pack.js:18
I - jquery.fancybox-1.3.4.pack.js:19
b.fn.fancybox - jquery.fancybox-1.3.4.pack.js:37
f.event.handle - jquery.js:17

Since the fancybox code is in the slate theme directory I thought this might be something you could help with.

Thanks!

Display Messages: Threaded     Flat
7 Replies

re: Photo gallery problems

Jan 01, 2012 at 10:33 AM
I got a fix from a reply on another forum.

Apparently the Slate theme already includes the fancybox lightbox in its code, so any other add-on that I try that has the fancybox will fail because the theme and the add-on's copy of fancybox will conflict with each other.

The solution for Sortable Fancybox Gallery was to modify the following file on my server:
[code]
SITEROOT/packages/sortable_fancybox_gallery/blocks/sortable_fancybox_gallery/controller.php
[/code]
... and remove the following code (should be lines #14-22):
[code]
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'));
}
}
[/code]

This worked great but shouldn't be necessary. Is there some way you can provide a warning or an option for users of this theme to turn the theme's fancybox on/off?
 

re: Photo gallery problems

Jan 05, 2012 at 3:04 PM
Yeah, your probably the third person now that's brought that to my attention and your 'fix' is what I've recommended to the others.

I am going to add this to my to do list for the next update of Slate.
 

re: Photo gallery problems

Mar 29, 2012 at 2:11 PM
I have just purchased your Bundle, specifically for Slate. It does not seem as if this update has been done yet, and I am creating some Gallery rich sites. Do you have a timescale for this fix?
 

re: Photo gallery problems

Mar 29, 2012 at 3:32 PM
This issue probably wont be fixed anytime soon. The issue is because both the Slate theme and the gallery addon mentioned above both include Fancybox and they conflict with each other. Me and JordanLev (developer of the mentioned gallery addon) are both aware of the problem and the fix mentioned above is the best solution until concrete5 core comes out with a way to check if a js library is already installed/in use.
 

re: Photo gallery problems

Apr 24, 2012 at 7:10 PM
Can you perhaps provide an option to deactivate it from the front end instead of editing the code?
 

re: Photo gallery problems

Apr 25, 2012 at 4:56 PM
Unfortunately that's the only way to fix it for now. We're waiting on a update for concrete5 that will resolve this once and for all.
 

re: Photo gallery problems

Jan 06, 2012 at 12:23 AM
Perfect. Thanks!