- Forums
- »
- Slate Theme
- »
- Photo gallery problems
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!
re: Photo gallery problems
I am going to add this to my to do list for the next update of Slate.

apellow
re: Photo gallery problems
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?