2,551

(10 replies, posted in Juicebox-Pro Support)

@kilooloogung

As you are aware, your suggestion does not allow for zooming within the gallery itself (it uses a link in a caption to navigate away from the gallery and towards an external page loading the image and the Zoomify JavaScript library) but it certainly might be an acceptable solution for the original poster (or any other users reading this thread who want to include the ability to zoom into gallery images, although not necessarily inside the gallery) so thank you for sharing.

The only drawback is that the button won't stay on the same line as the Caption: it appears on the line below.

Try moving your opening <form> tag to before your "7,004 x 2,774 pixels" text:

<caption><![CDATA[<form>7,004 x 2,774 pixels<button type="submit" formaction='z/tyneglow8938.html' formmethod='post'>Zoom…</button></form>]]></caption>

You're welcome!
I'm glad you've got it working. Thank you for posting back to let me know.

Many thanks for posting your suggestions in the Feature Requests thread.

When I do that, the gallery doesn't show at all. What am I not getting?

When using relative paths, they should be relative to the page containing the gallery's embedding code so the paths you suggested should work fine:

<script src="galleries/american2/jbcore/juicebox.js"></script>
<script>
    new juicebox({
        containerId: "juicebox-container",
        baseUrl: "galleries/american2/",
        galleryWidth: "816",
        galleryHeight: "575",
        backgroundColor: "rgba(92,92,92,1)"
    });
</script>

You could also use a leading slash in your paths to denote that the paths start at the root directory so the following should also work fine:

<script src="/galleries/american2/jbcore/juicebox.js"></script>
<script>
    new juicebox({
        containerId: "juicebox-container",
        baseUrl: "/galleries/american2/",
        galleryWidth: "816",
        galleryHeight: "575",
        backgroundColor: "rgba(92,92,92,1)"
    });
</script>

Is this article saying that all the Juicebox gallery files should be in the root folder?

When using a baseUrl, it does not matter where on your web server you upload your gallery folder to (it does not need to be uploaded to the root directory) as long as the two paths in the embedding code (the path to the 'juicebox.js' file and the baseUrl itself, pointing towards the gallery folder) are correct. Your current web site structure is fine.

Please try either of the embedding code <script> sections above. Both should work fine.

Please see this FAQ which holds the key to solving your problem:
My gallery works on 'www.example.com' but not on 'example.com' (or vice versa). Why?

2,556

(1 replies, posted in Juicebox-Pro Support)

Please see this forum post regarding making galleries responsive.

Your gallery is already responsive. Its dimensions change when the browser window is made narrower and the gallery elements adjust correspondingly (for example, fewer thumbnails are displayed in a narrow browser window).

Please note that the gallery's height does not change when you change the width of the browser window.
It is not standard behavior for a div's height and width to both change when a browser window is resized in only one dimension.
If you want your gallery's aspect ratio to always remain constant, then you would have to implement a solution such as the one in this forum post.

I would like to ask you if there is a way to have the frame margin option, this way the frame doesn't touch the image.

This is not something that Juicebox was designed to do and I do not think that there is likely to be an easy solution. Even if you were to create the border effect you are looking for via CSS on the correct Juicebox class, it would increase the total size of the image slightly and Juicebox would not know about this. The size reserved for the image in the gallery would need to be increased and it may cause issues with the positioning of other gallery elements such as the caption area.

I appreciate you taking the time to post your ideas here but I would encourage you to post them in the Feature Requests forum thread. This is the best place for them to ensure that they are not overlooked by the developers. Thank you.

I also would like to know if there is a way to use a background image in a repeat mode instead of stretch/fill.

Perhaps the best way to achieve this would be to give your gallery a transparent background and set your repeating background image on the gallery container via CSS. (The gallery's own backgroundScale configuration option does not support 'repeat'.)

2,558

(1 replies, posted in Juicebox-Pro Support)

A Juicebox-Pro gallery uses the same set of configuration options for both Small Screen Mode (SSM) and Large Screen Mode (LSM). It is not possible to have two different sets of values and switch between them and it is not possible to change configuration option values once a gallery has been loaded. The gallery would need to be reloaded with new values.
Technically, you could load the gallery, check whether SSM or LSM is being used (via the Juicebox-Pro API getScreenMode() method) and then reload the gallery using a specifc XML file corresponding to the screen mode being used. However, this is not an ideal solution.

There are some configuration options which are specific to the different screen modes (e.g. showThumbsOnLoad is for LSM only whereas showSmallThumbsOnLoad is for SSM only) but other options such as buttonBarIconSize apply equally to both SSM and LSM.

If you want to configure Juicebox-Pro beyond what can be achieved with the available configuration options, you can certainly try modifying the 'jbcore/classic/theme.css' file. However, knowledge of CSS would be required and such modifications would not be officially supported. Also, you might find that you run into unforeseen problems as Juicebox will not know of any modifications made to this file and if any changes that you make alter the size or position of any gallery elements, there may be unwanted knock-on effects with regard to the gallery layout.

Here are a few other notes which may help.

For example rounding image corners with using a a border (frame) will generate a borderless yet rounded image in small-screen mode.

Unfortunately, the frameWidth configuration option is LSM only.

Another question I would like to have button size at 20 px while in large-screen mode and 16px when seen on a smartphone...

Please see this forum thread.

And the app must have a switch that changes the preview from large screen to small screen.

You can check how your gallery looks in SSM by setting screenMode="SMALL" in JuiceboxBuilder-Pro's 'Customize -> General' section.

If you find there are things that you would like to do that currently cannot be done (or at least not easily), then please post your suggestions in the Feature Requests forum thread. This keeps all the ideas together and ensures that they are not overlooked by the developers. Thank you.

2,559

(1 replies, posted in Juicebox-Pro Support)

If it not possible to change the functionality of the Close Button but you could use the Juicebox-Pro API to run some custom JavaScript (to do whatever you like, such as open a new tab with a specific URL using window.open()) when the gallery is closed.
Listen for the onExpand(expanded) event to be fired (which happens when the gallery is expanded and closed) and run your JavaScript code only when the gallery is closed.
For example:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Juicebox-Pro Gallery</title>
    <meta charset="utf-8" />
    <style type="text/css">
    body {
        margin: 0px;
    }
    </style>
</head>
<body>
    <!--START JUICEBOX EMBED-->
    <script src="jbcore/juicebox.js"></script>
    <script>
    var jb = new juicebox({
        containerId: 'juicebox-container',
        galleryHeight: '600',
        galleryWidth: '800'
    });
    jb.onExpand = function(expanded) {
        if (!expanded) {
            window.open('http://www.juicebox.net/', '_self');
        }
    };
    </script>
    <div id="juicebox-container"></div>
    <!--END JUICEBOX EMBED-->
</body>
</html>

This would be much easier to do (as above) than trying to hide the Close Button which would involve hiding the Expand/Close Button only in fullscreen mode using CSS on internal Juicebox classes. There would also be the added complication that Juicebox would expect the Close Button to be there which may affect Button Bar sizing and spacing.

OK. I'm glad everything is fine. Thank you for letting me know.

For others reading this thread, it sounds like the original poster may be referring to the Splash Page which is used by default when the gallery is embedded in a page alongside other content and displayed in Small Screen Mode.
For more information on the Splash Page and Screen Modes, please see here.

2,561

(1 replies, posted in Juicebox-Pro Support)

A Juicebox-Pro gallery uses the same set of configuration options for both normal and fullscreen modes and it is not possible to set different values for each mode.
However, there are different options to set the background color for normal and fullscreen modes, namely backgroundColor (in JuiceboxBuilder-Pro's 'Customize -> Lite' section) and expandedBackgroundColor (at the foot of the 'Customize -> Color' section).
You can set the color and opacity for expandedBackgroundColor just as you can for backgroundColor.

For reference, a complete list of all configuration options can be found here.

2,562

(6 replies, posted in Juicebox-Pro Support)

You're welcome! I'm glad my suggestion worked.
(Hopefully this should only be a temporary measure until the bug is fixed although it will do no harm to leave the CSS code in place.)

2,563

(6 replies, posted in Juicebox-Pro Support)

Instead of my original suggestion above, try adding the following to any of your CSS files:

.jcbx-glry-classic {
    direction: ltr;
}

This should hopefully work for both normal and fullscreen modes.

I have logged this issue as a bug with the developers and it should hopefully be fixed in a future version of Juicebox.
Thank you for reporting it.

2,564

(6 replies, posted in Juicebox-Pro Support)

It looks like some custom CSS code on your web page which handles the right-to-left aspect of your web page is switching the left and right hit-areas of the gallery.
I suspect it is the following code from your 'rtl.css' file (specifically the 'direction' property).

#page {
    text-align: right;
    direction: rtl;
}

This code sets the direction for everything within the #page container including your Juicebox gallery (which is nested within the #page container).
You could either modify your CSS so that it applies to only those elements on your web page which require the 'direction' property (through use of further CSS selectors) or you could explicitly set direction: rtl; for the Juicebox gallery container by editing the WP-Juicebox plugin's 'wp-juicebox.php' file in a plain text editor and changing line 287 from:

$string_builder .= '<div id="juicebox-container-' . $clean_gallery_id . '"></div>' . PHP_EOL;

... to:

$string_builder .= '<div id="juicebox-container-' . $clean_gallery_id . '" style="direction: ltr;"></div>' . PHP_EOL;

Please note that the line number above refers to the current version of WP-Juicebox (v1.4.4.1).

2,565

(4 replies, posted in Juicebox-Pro Support)

I'm glad you've been able to resolve your problem.
Thank you for posting back to let me know.

I tried this and it worked perfectly, but the client really didn't like it as the button bar appears about the same time was the image and he didn't like the delay.

If you are referring to the delay between the Button Bar background and the Button Bar icons being displayed, then you could ensure that they are displayed together by hiding and showing the .jb-bb-bar class as well as the .jb-bb-button class.

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Juicebox-Pro Gallery</title>
    <meta charset="utf-8" />
    <style type="text/css">
    body {
        margin: 0px;
    }
    .jb-bb-bar, .jb-bb-button {
        visibility: hidden;
    }
    </style>
</head>
<body>
    <!--START JUICEBOX EMBED-->
    <script src="jbcore/juicebox.js"></script>
    <script>
    var jb = new juicebox({
        containerId: 'juicebox-container'
    });
    jb.onInitComplete = function (e) {
        var mode = jb.getScreenMode();
        if (mode == 'SMALL') {
            $('.jb-bb-button').css('font-size', '16px');
        }
        $('.jb-bb-bar, .jb-bb-button').css('visibility', 'visible');
    };
    </script>
    <div id="juicebox-container"></div>
    <!--END JUICEBOX EMBED-->
</body>
</html>

I thought I would let the client see what small screen mode is like.

If you want to have your gallery displayed in Small Screen Mode in all browsers and on all mobile devices (rather than just when Juicebox-Pro detects a small-screen device), then set screenMode="SMALL" in JuiceboxBuilder-Pro's 'Customize -> General' section.

2,567

(4 replies, posted in Juicebox-Pro Support)

As far as I can remember, I have not encountered such a problem before and, unfortunately, a screenshot would not help me troubleshoot it.
I would really need to see the gallery live on your web server (so that I can check the code on the web page and the gallery's configuration options).
If possible, please post the URL to your gallery's web page so that I can take a look and the problem for myself and hopefully help further.
Otherwise, please post your gallery's configuration options so that I can try to replicate the problem in a test gallery of my own.

Also, if you are not already using the latest version of Juicebox-Pro (v1.4.4.1), then please try upgrading your gallery to see if this helps. (Your problem may be caused by a bug in a previous version which has since been fixed.)
Full instructions for downloading the latest version and upgrading existing galleries can be found here.

No problem!
Glad it was an easy fix.

2,569

(2 replies, posted in Juicebox-Pro Support)

I'm glad you've been able to resolve your problem.
Thank you for posting back to let me know.

For others experiencing similar issues, here's a link to a support page detailing the <a> tag's 'target' attribute with its possible values.

It sounds like you might have AdBlock installed as a browser extension in Chrome.
The first two images in your gallery have the text 'ad1' and 'ad2' in their filenames and AdBlock may be seeing these as advertisements and blocking them.
Try changing the filenames so that they do not contain the text 'ad'.
This should hopefully solve your problem.

2,571

(496 replies, posted in Juicebox-Pro Support)

@junebugweddings

You could set an image title and/or caption for the last image in your gallery and have it include links (<a> tags) using HTML formatting as noted in this FAQ:
How do I add HTML formatting to image captions and titles?

Alternatively, you could use the Juicebox-Pro API to check whether the last image in the gallery is currently being displayed and run some custom JavaScript code (to do whatever you like) if it is.
For example:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
var jb = new juicebox({
    containerId: 'juicebox-container'
});
jb.onImageChange = function(e) {
    if (e.id === jb.getImageCount()) {
        alert('Last image in gallery!');
    }
};
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

You could maybe hide the .jb-bb-button class as soon as the page loads and make it visible only after you have changed the font size. Try something like this:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Juicebox-Pro Gallery</title>
    <meta charset="utf-8" />
    <style type="text/css">
    body {
        margin: 0px;
    }
    .jb-bb-button {
        visibility: hidden;
    }
    </style>
</head>
<body>
    <!--START JUICEBOX EMBED-->
    <script src="jbcore/juicebox.js"></script>
    <script>
    var jb = new juicebox({
        containerId: 'juicebox-container'
    });
    jb.onInitComplete = function (e) {
        var mode = jb.getScreenMode();
        if (mode == 'SMALL') {
            $('.jb-bb-button').css('font-size', '16px');
        }
        $('.jb-bb-button').css('visibility', 'visible');
    };
    </script>
    <div id="juicebox-container"></div>
    <!--END JUICEBOX EMBED-->
</body>
</html>

2,573

(1 replies, posted in Juicebox-Pro Support)

Set showSmallBackButton="TRUE" (in JuiceboxBuilder-Pro's 'Customize -> Back Button' section). (The default value for this configuration option is FALSE.)

2,574

(2 replies, posted in Juicebox-Pro Support)

I'm glad you've been able to resolve your problem.
Thank you for posting back to let me know.

For any other users trying to embed a Juicebox gallery using Abode Muse, the following links might be useful.
Embedding With Adobe Muse: http://www.juicebox.net/support/embeddi … adobe-muse
Alternate Adobe Muse Embedding Instructions: http://www.muse-themes.com/blogs/news/6 … adobe-muse

2,575

(12 replies, posted in Juicebox-Pro Support)

Your two suggestions seem to be based around dynamically creating a new page for each image with the required og:image tag. This might work to ensure that the corresponding thumbnail is displayed each time an image in the gallery is shared but then the page that is shared will no longer be the page containing the Juicebox gallery. It will be your custom page with the required og:image. I'm not sure if this is a drawback or something that is intended. (Maybe you could redirect back to the gallery page from the page containing the og:image.) Just thinking out loud...