Steven @ Juicebox wrote:

Is there a built-in limitation of the number of albums per one page?

No, there's no limit to the number of galleries you can have on a single web page.

Are you certain? I'm running into problems as soon as I hit 20 embedded galleries. The final one simply won't work and opens up an earlier gallery. I've been over the coding with a toothcomb and re-done it from scratch. Same problem every time.

Yeah, it seems odd. I'm out of obvious solutions. I've emailed you the two test URLs to see if you have any ideas.

OK, I've set up a test page to demonstrate the problem. If you email me, I'll send you the URLs. I have two versions of the same page, where the only difference is the version of the juicebox.js file that they point to. One works, the other doesn't.

Steven wrote:

As I mentioned earlier, Juicebox v1.4.2 is certainly able to use a PHP file to dynamically generate XML data for a gallery.
In fact, WP-Juicebox (the Juicebox plugin for WordPress) does this and works fine with Juicebox v1.4.2.

Yes, I know. This is exactly what I've been doing up until this point. What I said was that I'm questioning whether the XML that's being generated is correct for versions of Juicebox higher than 1.2 (which is why I included the text).

In order to investigate further, I would really need to see your gallery live on your web server so please post the URL to your gallery or let me know if you would rather that I contact you via email so that you can email me the URL to your gallery instead.

There's nothing for you to see, because it works flawlessly under v1.2. The only problem is when I switch to a later version of the juicebox.js file, and I can't leave my website in that state because it would be totally broken.

Steven wrote:

Juicebox v1.4.2 can use a PHP file as a configURL (just like earlier versions).
The "Juicebox Error: Config XML file not found." message suggests that either:
(1) Your 'juicebox_config.php' file cannot be found on your web server.
(2) The the format of the XML data generated by your PHP file is incorrect.
(3) The web page containing the embedding code is on a different domain to that specified in the absolute path in your configURL. (If this is the case, try using relative paths instead of absolute paths in your gallery's embedding code.)

It would certainly be easier to troubleshoot your scenario if I could see the problem for myself so if you continue to experience difficulties, please post the URL to your gallery's web page so that I can take a look and help further.

As I said, it works fine under the earlier version, and the config file is present and correct. All I'm changing on my website is the version of the juicebox.js file. As soon as I revert to the earlier version, everything works as normal.

All files are specified with absolute paths on the same domain. I'm wondering if it's an issue with the generated xml in the config file, so has something changed between versions?

The dynamically generated config file looks like this:

<?xml version="1.0" encoding="UTF-8"?><juiceboxgallery title="Juicebox Gallery"
imageShadowBlur="0"
thumbShadowBlur="0"
themeUrl="http://www.mydomain.com/gallery/jbcore/classic/theme.css"
thumbsPosition="top"
thumbWidth="75"
thumbHeight="50"
galleryWidth="100%"
galleryHeight="100%"        
frameWidth="2"
imageFrameColor="rgba(75,38,213,1)"
thumbPadding="10"
imageTransitionType="slide"
showOpenButton="false"
showImageOverlay="auto"
showAutoPlayButton="true"
showImageNav="false"
showNavButtons="true"
buttonBarPosition="overlay"
screenmode="auto"
buttonBarBackColor="rgba(75,38,213,0.5)"
imageScaleMode="SCALE_DOWN"
maxCaptionHeight="40"
showExpandButton="false"
useFullscreenExpand="false"
showImageNumber="false"
enableDirectLinks="false"
thumbCornerRadius="10"
thumbFrameWidth="2"
thumbSelectedFrameWidth="5"
showInfoButton="false"
captionPosition="NONE">
<image imageURL="http://www.mydomain.com/gallery/images/a.jpg" thumbURL="http://www.mydomain.com/gallery/thumbs/a.jpg" linkURL="" linkTarget=""><title></title><caption></caption></image><image imageURL="http://www.mydomain.com/gallery/images/b.jpg" thumbURL="http://www.mydomain.com/gallery/thumbs/b.jpg" linkURL="" linkTarget=""><title></title><caption></caption></image></juiceboxgallery>

Again, this config file works fine with version 1.2

I have a site that's using dynamically generated config. files using php. It works absolutely fine under Juicebox 1.2, but if I try replacing the jbcore file with any version above 1.3, it results in the error "Juicebox Error: Config XML file not found."

If I look at the source code, the config. url is still listed correctly, and it still loads as an xml document correctly. The source code looks like this:

<script type="text/javascript" src="http://www.mydomain.com/gallery/jbcore/juicebox.js"></script>

<script type="text/javascript">        
new juicebox({    
containerId: "gallery_image_container",
configUrl: "http://www.mydomain.com/gallery/juicebox_config.php?variable=1"});
</script>

I've tried using modrewrite and mapping so I can call juicebox_config.php via juiecobox_config.xml in case the latest version didn't accept a php document as a config. file, and that made no difference. Any thoughts?

7

(2 replies, posted in Juicebox-Pro Support)

That's perfect. I'll give it a shot. Thanks for your help :)

8

(2 replies, posted in Juicebox-Pro Support)

Hi.

I currently have Juicebox serving various galleries on one domain. What I want is to set up a sub-domain for a mobile version of my website. If I'm understanding it correctly, it's impossible for me to load files from the main domain on the sub-domain. Does that mean that the only way I can achieve this is to physically copy all my image files to the sub-domain?

Thanks.

Steven wrote:

@mustard

For a drop-shadow to the right and bottom of the main image in your gallery, try adding the following code to the end of your gallery's 'jbcore/classic/theme.css' file:

.jb-dt-main-frame .jb-dt-main-image {
    -moz-box-shadow: 10px 10px 10px rgba(0, 0, 0, .4) !important;
    -webkit-box-shadow: 10px 10px 10px rgba(0, 0, 0, .4) !important;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .4) !important;
}

You may also wish to increase the imagePadding configuration option in your gallery's XML file from the default value of 0 to something like 20 to accommodate the drop-shadow at the bottom of the main image.

That worked absolutely perfectly. Thanks :)

10

(17 replies, posted in Juicebox-Pro Support)

Any suggestions? It's not really practical for me to resize thumbs for 200 galleries. I can't even batch resize them, because the images aren't all the same ratio.

Any chance that future versions will scale the thumbs to fit, like Simpleviewer?

I realise that the config file now includes a shadow option, but I want a drop-shadow effect that looks like this:

Link removed.

The config file just seems to add a blurred shadow around the entire image. I've tried applying the correct parameters to just about every element I can think of in the CSS file, and it has no effect. Am I missing something?

12

(17 replies, posted in Juicebox-Pro Support)

Felix wrote:

the issue arises when the actual thumbnails are larger than the parameters set in the config. options.

ok yes that would cause the issue. Not sure this is a use-case that occurs very often. Any reason why you need to scale the thumbs?

The site I intend to use Juicebox on (well, the second site...) has 200 existing Simpleviewer galleries. The thumbs for those galleries aren't all the same size, because the site has evolved over the years.

What that means in practice is that if I can't utilise the existing thumbs, then I'll need to rebuild thumbnails for 200 galleries.

13

(17 replies, posted in Juicebox-Pro Support)

I've sort of figured out the problem. It's the scaling (or rather the lack of scaling). If I make the thumbnail height and width parameters the same as the actual dimensions of the thumbnails, the problem disappears. So the issue arises when the actual thumbnails are larger than the parameters set in the config. options.

Is there any way of making the thumbs scale to the defined area?

14

(7 replies, posted in Juicebox-Pro Support)

I'm using 1.2. Can't provide a gallery link as it's still testing and isn't live yet. I'll do a bit more digging and make sure that the issue isn't on my side. I wouldn't describe it as a "problem" as such - I just want to tighten up the space between the two elements.

15

(17 replies, posted in Juicebox-Pro Support)

Chrome is up-to-date. Testing on Win 7, 64 bit. Can't provide gallery URL as I'm just testing at the moment and it's not live. The border is being rounded off, but the image isn't. Firefox is fine.

16

(7 replies, posted in Juicebox-Pro Support)

There seems to be surplus padding in the element div.jb-idx-show-area. Is there any way to remove this, reducing the space between the thumbs (when displayed on top) and the main image?

17

(17 replies, posted in Juicebox-Pro Support)

While it's nice to see that you've added support for a thumbnail border-radius in the config file, it still isn't working properly in Chrome. Same issue as before - works fine on square thumbs, doesn't work on rectangular thumbs.

18

(17 replies, posted in Juicebox-Pro Support)

Thanks Steven. Nice to know it's not just me!

19

(5 replies, posted in Juicebox-Pro Support)

Cheers. I was just confused by the "you can transfer a single license between domains" bit. :)

20

(5 replies, posted in Juicebox-Pro Support)

How do you assign a license to a domain?

21

(17 replies, posted in Juicebox-Pro Support)

Right, I've figured out why you're not seeing the same issue. I'm using rectangular thumbs - 75px by 50px. If I set the width to 50px as well, then the border-radius is applied correctly.

Any ideas how I can set the border-radius on rectangular thumbs? Not sure why this should make a difference.

OK, I gather this is a bug, but in the meantime is there any workaround via CSS? Can I add padding below the main image in the mobile view?

23

(17 replies, posted in Juicebox-Pro Support)

Thanks Steven. Unfortunately, it doesn't work. That just affects the corners of the active/hover thumb border. The underlying thumb remains unchanged.

However, this:

.jb-idx-thumb {
    -moz-border-radius: 15px;
    -webkit-border-radius: 15px;
    border-radius: 15px;
}

... works in FF and IE, but not Chrome.

24

(17 replies, posted in Juicebox-Pro Support)

No, not border-width - border-radius. Used to add rounded borders to elements. As I said, I have it successfully working in IE and FF, but not in Chrome.

25

(17 replies, posted in Juicebox-Pro Support)

Has anyone managed to successfully specify this in CSS for the thumbs? I thought I'd cracked it, but it's not working in Chrome. Any ideas would be gratefully received.