I'm trying to get the juicebox module to show an image gallery, but it's not working. I've tried deinstalling it, clearing the cache and reinstalling it (I have the required modules/libs installed).

For a look, go to this page (under development) http://bit.ly/1JVtlFu

Comments

b0red created an issue. See original summary.

rjacobs’s picture

Component: Views Integration » Miscellaneous
Category: Bug report » Support request
Issue tags: -juicebox, -images, -Gallery view

Hi,

Thanks for passing on an example link. As far as I can see the module is working fine, and I believe the display problems you are seeing are simply related to the way your theme handles image fields. Specifically, your theme's templates/css appear to be floating all image fields left, which creates a dimensionless container that the juicebox javascript cannot properly be rendered within. You could probably verify this be adding some css to selectively override that behavior like:

.field-name-field-image-new figure {
  float: none !important;
}

Of course the specific css you use would probably need to be more tuned than that, but I hope it gets you going in the right direction.

Other related issues for reference include: #2469329: Juicebox conflict with Zircon theme and #1997476: Gallery does not display with OpenFolio theme.

b0red’s picture

Thanx a lot!! That solved it. Now it works, some finetuning as You proposed might come in handy, but for now it's great,
You're my hero right now :)

rjacobs’s picture

Status: Active » Fixed

Sounds good. Note that the example css only selects your "image new" fields, so if you use a Juicebox field formatter in another field (with this same theme) it may still show the problem. Of course you could select all .field-type-image, but that would also impact all image fields that aren't Juicebox galleries. This is why some tuning may be needed. Either way, since it's theme-specific formatting on the container, it's something that the module can't really control directly.

Status: Fixed » Closed (fixed)

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

crispiatico’s picture

I had the same problem with the theme Zircon.
The related issue #2469329: Juicebox conflict with Zircon theme not work for me.
I solved with #2. Thank you
My css are

.node-content .field-type-image{
  float: none !important;
}
justdrupal7’s picture

i installed a fresh copy of drupal on my website to test this module as i was wondering to buy the pro version of it..it worked fine for one day but after that suddenly i dont know what happen seems like images are not loading
itsyourwebsite.ca/node/5
i tried everything i could at my end,
checked out library and javascript libraries.
but could not find where the error is

Can someone help me here

paku’s picture

Hi,

I play with Juicebox for few days now and what I have found is that it's state depends on the other jQuery versions you may have shipped with your Drupal installation.

You may install the jQuery update module and test JuiceBox against various JQuery versions.

Have in mind that JuiceBox has it's own jQuery bundled!

My particular case is that I can not have Boostrap3 theme and logged in user JuiceBox gallery displayed together ... while it's ok if user is not logged in ...

rjacobs’s picture

Please note that this issue thread is currently closed, and that it related to a very specific issue with certain themes. If anyone is having any issues that they think are related to this module you will be best served to open-up a new support request.

impara’s picture

The "return $prefix . $dom->saveXML() . $suffix;" version can be fixed by:
return $prefix . $dom->saveXML($dom->documentElement) . $suffix;

hibou_drupal’s picture

Priority: Normal » Major

Hello, I've exactly the same issue, but this doesn't fix it for me