2,676

(3 replies, posted in Juicebox-Lite Support)

You're welcome!

2,677

(3 replies, posted in Juicebox-Pro Support)

Please see this FAQ:
When I view my gallery I see the message 'Config XML file not found'. How do I fix this?

Currently, your paths (the path to the 'juicebox.js' file and the baseUrl) are relative to the web page containing the embedding code.
I do not know the structure of your web site so I do not know if these paths are correct.
However, knowing that your 'Gallery' folder is in your root directory ('public_html'), you could use leading slashes in your paths to make the paths are relative to your root directory (rather than the current directory).

<!--START JUICEBOX EMBED-->
<script src="/Gallery/jbcore/juicebox.js"></script>
<script>
  new juicebox({
    baseUrl : '/Gallery/',
    containerId : 'juicebox-container',
    galleryWidth : '800',
    galleryHeight : '600',
    backgroundColor: '#222222'
  });
  </script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Also, please check the following:
(1) Make sure that the gallery's XML file is named 'config.xml'. (If you rename the file, you will need to use the configUrl configuration option to point towards it.)
(2) Make sure that the gallery's XML file is directly inside the 'Gallery' gallery folder (and not in a subfolder or elsewhere).
(3) Make sure that the permissions of the gallery's XML file on your web server are not too restrictive. Default permissions of 644 should be fine. You can check and change file permissions using an FTP program (such as Filezilla) or via the File Manager in your web hosting account's online cPanel.

I hope these tips help. However, if you continue to experience difficulties, then please post the URL to your gallery's web page so that I can see the problem for myself and hopefully help further. Thank you.

You're welcome.

2,679

(1 replies, posted in Juicebox-Lite Support)

I would recommend that you save each gallery to a separate folder.
This helps to keep things organized and prevents files and folders from one gallery being overwritten by those of another.
It also makes editing a gallery much easier in the future as all the files for each gallery will be in their own folders.

You can even upload the complete gallery folders to your web server (rather than just the contents) and then embed the galleries in your web pages using the baseUrl method of embedding documented here. (The baseUrl configuration option points towards a complete gallery folder.)

2,680

(7 replies, posted in Juicebox-Pro Support)

So is there another way to accomplish the same that considering I am using Muse and Business Catalyst?

You would really need to use a server-side script to build a dynamic XML file on-the-fly when the gallery is displayed. It cannot be done client side (for example with JavaScript).
The only other method of uploading images and having them included in a gallery without the need to modify any gallery files would be to use a Flickr account as a source of images.
If you use a Flickr account as a source of images, you could upload new images to the Flickr account and they would automatically be included in the gallery.
Certain Flickr configuration options are available to Juicebox-Lite (the free version) and others are available to Juicebox-Pro only so you can find descriptions of all Flickr options in these two section.
Lite: http://www.juicebox.net/support/config_ … te-options
Flickr Pro: http://www.juicebox.net/support/config_ … kr-options

The thumbs are loading up slowly, and some of them do not seem to load at all.

I have checked out your gallery (the static version without the 'config.php' file) and all thumbnails load OK.
However, you have set maxThumbRows="4" and thumbsPosition="BOTTOM" (default value). On my screen, 40 thumbnails are displayed. In your gallery, this totals approximately 42MB of data. Also, your gallery uses imagePreloading="PAGE" (default value) so the user's browser will be preloading and caching all images on the current thumbnail page which amounts to even more data for the browser to initially load when the gallery is first displayed.
I would recommend using smaller images for your thumnails (some are currently over 3MB each and a couple are over 4MB) and you could set imagePrelaoding="NEXT" (in JuiceboxBuilder-Pro's 'Customize -> Main Image' section) to preload only the next image rather than all images on the current thumbnail page. This would significantly reduce the load on the browser when the gallery is first displayed.

Does Juicebox automatically crop the thumbs?

Juicebox scales the thumbURL images to fill the thumbWidth and thumbHeight dimensions. If the aspect ratio of the thumbURL image does not exactly match the thumbWidth x thumbHeight aspect ratio, cropping will occur.

Should we be clicking Crop to Fit?

'Crop to fit' will crop images (if necessary) to fill the specified image dimensions. If you do not set 'Crop to fit', then JuiceboxBuilder will respect the aspect ratio of the source image and will resize it using the specified image dimensions as maximum bounds.
'Crop to fit' affects only the main images in a gallery, not the thumbnails. (Thumbnails are always 'cropped to fit' to ensure that all thumbnail images match the specified thumbnail dimensions.)

Can one add more than one gallery to a web page?

Yes. Theoretically, there is no limit to the number of galleries you can have on a single page. Please see the Embedding Multiple Galleries support section for online examples.'
Just remember to embed each gallery into a <div> container with a unique 'id' and load the 'juicebox.js' file only once per web page (not once per gallery).

What's the maximum amount of pictures recommended for each gallery?

There is no real maximum to the number of images you can have in a gallery. As long as your images are of a reasonable file size and you set imagePreloading to an appropriate value for your gallery, everything should be fine.

Thank you for reporting this problem.
I have been able to replicate the problem in a test case and have logged a bug report with the developers.

Until the bug is fixed, the only workaround I have discovered so far is to stagger the start of each gallery's AutoPlay by using the Juicebox-Pro API toggleAutoPlay() method instead of setting autoPlayOnLoad="TRUE" and then delaying the firing of this method for each gallery with setTimeout functions of increasing values.
Here is what the embedding code might look like for three galleries on the same page:

<script>
    var jb1 = new juicebox({
        baseUrl: 'g1/',
        showAutoPlayButton: 'TRUE',
        containerId: 'juicebox-container-1',
        galleryWidth: '400',
        galleryHeight: '600',
        backgroundColor: '#222222'
    });
    jb1.onInitComplete = function() {
        window.setTimeout(function() {
            jb1.toggleAutoPlay();
        }, 200);
    };
</script>
<div id="juicebox-container-1"></div>

<script>
    var jb2 = new juicebox({
        baseUrl: 'g2/',
        showAutoPlayButton: 'TRUE',
        containerId: 'juicebox-container-2',
        galleryWidth: '400',
        galleryHeight: '600',
        backgroundColor: '#222222'
    });
    jb2.onInitComplete = function() {
        window.setTimeout(function() {
            jb2.toggleAutoPlay();
        }, 400);
    };
</script>
<div id="juicebox-container-2"></div>

<script>
    var jb3 = new juicebox({
        baseUrl: 'g3/',
        showAutoPlayButton: 'TRUE',
        containerId: 'juicebox-container-3',
        galleryWidth: '400',
        galleryHeight: '600',
        backgroundColor: '#222222'
    });
    jb3.onInitComplete = function() {
        window.setTimeout(function() {
            jb3.toggleAutoPlay();
        }, 800);
    };
</script>
<div id="juicebox-container-3"></div>

2,682

(1 replies, posted in Juicebox-Lite Support)

When using WP-Juicebox (the Juicebox plugin for WordPress) and selecting the Media Library as the source of images, a gallery created by the plugin will display all images attached to the page or post containing the gallery.

Instructuctions for installing and using WP-Juicebox can be found on the plugin's support page here.

Essentially, to create a new gallery with WP-Juicebox sourced by the Media Library, following the instructions below.

(1) Create a new page or post.
(2) Click the 'Add Juicebox Gallery' button.
(3) Configure the gallery in the settings window and click 'Add Gallery'. (A Juicebox gallery shortcode will be added to the page or post.)
(4) Click the 'Add Media' button above the toolbar.
(5) Drag and drop images from a folder on your computer into the media window and wait for them to finish uploading.
(6) Close the media window (with the cross at the top right corner).  Do not click the 'Insert Into Post' button. This will display the individual images in the page or post. Also, do not go to the 'Create Gallery' tab. This will create a WordPress gallery (not connected to Juicebox). WP-Juicebox just needs the images to be attached to the page or post. (You can change the order of the images by selecting 'Uploaded to this post' in the media window and then dragging and dropping the thumbnails.)
(7) Publish the page or post.

Please note that WordPress allows each Media Library image to be attached to only one post so it is not possible to include images from the Media Library which are already attached to other posts.

2,683

(7 replies, posted in Juicebox-Pro Support)

If you created the 'config.php' file in a text editor, please make sure that it is named 'config.php' and that it does not have a different file extension such as 'config.php.txt'.

Also, please check that your web server has PHP installed on it. (Most web servers have PHP installed by default but it would be worth checking to be sure.)

If you continue to experience difficulties, please post the URL to your gallery's web page so that I can see the problem for myself and hopefully help further.
It might also help if you could zip your complete gallery folder and upload it somewhere (and provide a download link) so that I can take a look at all your files together and figure out what the problem is. Thank you.

2,684

(7 replies, posted in Juicebox-Pro Support)

Do PHP files work with Muse?

PHP is a server-side scripting language. All PHP code is processed on the web server and, as such, you will not be able to preview your dynamically-generated gallery locally in Muse but it will work fine when you upload it to your web server.

Does this mean that I delete the confi.xml file?

That is correct. You would not need to use the 'config.xml' file created by JuiceboxBuilder-Pro. This is a static file which will only ever display the images listed in it. If you added images to a designated folder and wanted them to be displayed inthe gallery, then you would need to either:
(1) Manually edit the 'config.xml' file to include the new images.
... or:
(2) Use the 'config.php' file (from the forum post I linked to above) to dynamically generate a fresh XML file each time the gallery is displayed (listing all images in the designated folder at the time the gallery is displayed ).

And where exactly do I copy this: configUrl : 'config.php' in the embedding code?

Your embedding code might look something like this:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
    configUrl: "config.php",
    containerId: "juicebox-container",
    galleryWidth: "100%",
    galleryHeight: "100%",
    backgroundColor: "#222222"
});
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

2,685

(7 replies, posted in Juicebox-Pro Support)

Since I would like to be able to just add images to the "images" folder via ftp, what are the steps that I need to follow?

If you want to be able to upload images to a designated folder and have them displayed in your gallery without the need to modify any gallery files, then please see the example in this forum post.

Will the config file change based on the images folder?

Yes. Using the method in the forum post, when the gallery is viewed, the 'config.xml' file will be built dynamically (on the web server by the PHP script) using the image data from the designated folder.

Juicebox-Pro (the gallery itself) has no limit to the number of image that can be included.
However, if you try to add many images at once to JuiceboxBuilder-Pro (the desktop application which creates the Juicebox-Pro gallery), Adobe AIR (the platform on which JuiceboxBuilder-Pro runs) may not be able to allocate enough memory for the task at hand. Even if your computer has plenty of free RAM, Adobe AIR applications are limited to around 1GB of memory allocation. A workaround would be to add your images in smaller batches.

2,687

(3 replies, posted in Juicebox-Pro Support)

@marathonmax

The bugfix you quoted ensures that images are scaled to fill the thumbnail dimensions. (Images were previously only cropped.)

For example, prior to the bugfix, if you had a thumbURL image which had dimensions of 1024 x 768 and your thumbWidth and thumbHeight were both 85 (default values), then the actual thumbnail displayed in the gallery would be just the centre 85 x 85 of the original image.
However, now (post-bugfix), the 1024 x 768 image will be scaled to fill the thumbnail dimensions so the height of the original image will be scaled down (from 768 to 85) to fill the thumbnail height and the width will be cropped (losing 256 pixels).

Basically, pre-bugfix, the images used for the thumbnails really had to be the same dimensions as the thumbWidth and thumbHeight (although this would not have been a problem when using JuiceboxBuilder-Pro to build a gallery). Now though, it is possible to use images of any dimensions for the thumbnails (although cropping will occur if the aspect ratios of the source images and thumbnail dimensions do not match exactly). This would be useful if someone wanted to use a single folder of images for both the main images and the thumbnails in a gallery.

Thumbnails do not need to be square (you can set thumbWidth and thumbHeight independently of each other) but all thumbnails in a gallery will have the same dimensions.

Please note that thumbWidth and thumbHeight are Pro-only options which are not available in Juicebox-Lite, the free version.

2,688

(3 replies, posted in Juicebox-Lite Support)

Juicebox-Pro (but not Juicebox-Lite) supports the flickrGroupId configuration option to display photos posted to a group's pool.
A list of all Flickr Pro Options can be found here.

2,689

(14 replies, posted in Juicebox-Pro Support)

You're welcome.

Just a thought which might help either yourself or anyone else reading this thread...
You could perhaps change the captionPosition. Maybe not an ideal solution but it might be a suitable workaround until the bug is fixed.

2,691

(3 replies, posted in Juicebox-Pro Support)

A Juicebox gallery container is essentially just a <div> on a web page and a Juicebox gallery will resize in exactly the same way as any other <div> with similar dimensions would.
If you want a gallery container to retain a constant aspect ratio at all times, then please see the example in this forum post.

Thank you for pointing this out. I have noted it in my bug report.
Unfortunately, the only workaround for this seems to be my second suggestion above (to make your gallery images larger so that they always fill the image area top to bottom so that the problem cannot be seen).

2,693

(4 replies, posted in Juicebox-Pro Support)

Here's an example of how you can find the actual height of the current image being displayed in the gallery (using JavaScript and the Juicebox-Pro API).
Just create a sample gallery with JuiceboxBuilder-Pro and use the following code as the gallery's 'index.html' file:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <style type="text/css">
            body {
                margin: 0px;
            }
        </style>
        <script type="text/javascript" src="jbcore/juicebox.js"></script>
        <script type="text/javascript">
            var jb = new juicebox({
                containerId: "juicebox-container"
            });
            jb.onImageChange = function(e) {
                var index = e.id;
                var info = jb.getImageInfo(index);
                var url = info.imageURL;
                var image = new Image();
                image.src = url;
                var height = image.height;
                alert('Actual height of current image is ' + height + 'px.');
            };
        </script>
        <title>Test</title>
    </head>
    <body>
        <div id="juicebox-container"></div>
    </body>
</html>

Please note that this will provide the actual height of the file in the 'images' folder (not the height at which the image is displayed in the gallery which will depend on factors such as the gallery dimensions, the browser window size and whether or not gallery elements reserve space in the gallery reducing the available image area).

If you wanted to act upon the actual height of the current image and change the gallery's height to suit the current image's height you could do something like the following:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" id="jb-viewport" content="minimal-ui" />
        <style type="text/css">
            body {
                margin: 0px;
            }
            #wrap {
                width: 100%;
            }
        </style>
        <script type="text/javascript" src="jbcore/juicebox.js"></script>
        <script type="text/javascript">
            var widthInteger = 600;
            var widthString = widthInteger.toString();
            var jb = new juicebox({
                containerId: "juicebox-container",
                galleryHeight: "400",
                galleryWidth: widthString,
                imageScaleMode: "SCALE"
            });
            jb.onImageChange = function(e) {
                var index = e.id;
                var info = jb.getImageInfo(index);
                var url = info.imageURL;
                var image = new Image();
                image.src = url;
                var height = image.height;
                var width = image.width;
                var newHeight = Math.floor((widthInteger/width)*height) + 105;
                jb.setGallerySize(widthString, newHeight);
            };
        </script>
        <title>Test</title>
    </head>
    <body>
        <div id="wrap">
            <div id="juicebox-container"></div>
        </div>
    </body>
</html>

The gallery would have a constant width (600px in the example) and its height would be dependent on the height of the current image. The '105' value adds enough height to the gallery to accommodate the thumbnails and the thumbnail padding at their default values of '85' and '10' (top and bottom).

... but nothing appears on the page itself - no image, no thumbnails, no navigation, nothing.

It sounds like there might be a problem with the actual Juicebox core files on your web server.
Try re-uploading your gallery's 'jbcore' folder to ensure that all Juicebox core are present and correct (in case something happened during the initial upload resulting in missing or corrupt files).
Also, please see this FAQ as it seems to describe your scenario and may help:
When I view my gallery, I see a blank area. Why?

If you continue to experience difficulties, please post the URL to your gallery's web page so that I can take a look at the problem for myself and hopefully help further. Thank you.

2,695

(1 replies, posted in Juicebox-Pro Support)

Thank you for reporting this issue.
I have logged a bug report with the developers and hopefully it will be fixed in a future version of Juicebox.
In the meantime, you could perhaps tweak the position of the Button Bar using code such as the following in the <head> section of your gallery's web page:

<style type="text/css">
    .jb-bb-bar {
        margin-left: -2px !important;
    }
</style>

2,696

(7 replies, posted in Juicebox-Pro Support)

I'm glad it worked. Thank you for letting me know.

2,697

(7 replies, posted in Juicebox-Pro Support)

It worked for me (with your menu covering both the gallery's Button Bar and caption area) when I dynamically added the code to your web page locally using the developer tools in Firefox.

Please try changing lines 2704-2712 in your bootstrap.min.css file from:

.collapse {
    position: relative;
    height: 0;
    overflow: hidden;
    -webkit-transition: height .35s ease;
    -moz-transition: height .35s ease;
    -o-transition: height .35s ease;
    transition: height .35s ease
}

... to:

.collapse {
    z-index: 9999;
    position: relative;
    height: 0;
    overflow: hidden;
    -webkit-transition: height .35s ease;
    -moz-transition: height .35s ease;
    -o-transition: height .35s ease;
    transition: height .35s ease;
}

... and clear your browser's cache before reloading your web page to ensure that your browser is using the new version of the CSS file.

If this still does not work, then please let me know and I'll take another look.

Also, the link I posted above (regarding UberMenu and 'z-index' values) should help.
http://sevenspark.com/diagnosis/z-index … rm_ref=877

2,698

(14 replies, posted in Juicebox-Pro Support)

If you do not set playAudioOnLoad="TRUE" or showAudioButton="TRUE" (to allow audio functionality), then audioUrlMp3 will not actually be used and its entry in the gallery's 'config.xml' file will just be redundant.
If you wanted to prevent audioUrlMp3 from being written to the gallery's 'config.xml' file, then you could change line 42 of the plugin's 'config.xml' file from:

if (value ~= tostring(model.default[key])) then

... to:

if (value ~= tostring(model.default[key]) and key ~= "audioUrlMp3") then

2,699

(14 replies, posted in Juicebox-Pro Support)

As the new Lightoom plugin no longer has a Pro Option text area, you would need to use one of the available configuration options to enter your custom data.
I would recommend using an input field which accepts text and will not actually be used in your own gallery. For example, if you are not using audio in your gallery, you could use the audioUrlMp3 field.

Add the following to the plugin's 'config.xml' file (on line 48 which is currently blank):

<% local dir = ""
if mode ~= "preview" then
    dir = model.juicebox.audioUrlMp3
end %>

... and change line 54 from:

<image imageURL="images/<%= getImage(index).exportFilename %>.jpg" thumbURL="thumbs/<%= getImage(index).exportFilename %>.jpg" linkURL="<%= getImage(index).metadata.linkURL %>" linkTarget="_blank">

... to:

<image imageURL="<%= dir %>images/<%= getImage(index).exportFilename %>.jpg" thumbURL="thumbs/<%= getImage(index).exportFilename %>.jpg" linkURL="<%= getImage(index).metadata.linkURL %>" linkTarget="_blank">

You can then enter something like the following into the audioUrlMp3 field:

http://www.example.com/juicebox/gallery/

... and the imageURL entries will look like this:

imageURL="http://www.example.com/juicebox/gallery/images/image.jpg"

Please note that the line numbers refer to the current version of the plugin (v1.4.4.0).

2,700

(7 replies, posted in Juicebox-Pro Support)

Thank you for the additional information.
I now see the problem in your sidebar gallery when the menu is not fixed to the top of the page.

It looks like it might be enough to just add the following to your web page's CSS:

.collapse {
    z-index: 9999;
}

Add this to the existing .collapse code in your 'bootstrap.min.css' file (on line 2704) and it will be included in all of your web pages that load the CSS file.

Hopefully this will solve your problem.

For reference, further information about UberMenu and 'z-index' issues can be found here.