1,901

(8 replies, posted in Juicebox-Pro Support)

... the only way that works is the first part your solution 3

I cannot explain why dynamically adding a link to one container on your page works fine whereas using the same technique to add exactly the same HTML link code to a different container on the same page fails.

1- the backButton / backButtonText be invisible on computers, and be visible on the iphone & tablet.
2- the link#2 be visible on computers and be invisible on tablet and iPhone.

You can use the Juicebox-Pro API method getScreenMode() to determine the Screen Mode being used (SMALL vs LARGE) and then run custom JavaScript code accordingly. This example removes the Back Button from the DOM in Large Screen Mode and adds a custom link which is overlaid on top of the gallery where the Back Button would normally be.
In Small Screen Mode, no custom JavaScript code is run and the gallery's own Back Button will display as normal.

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Juicebox-Pro Gallery</title>
        <meta charset="utf-8" />
        <meta name="viewport" id="jb-viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=0" />
        <style type="text/css">
            body {
                margin: 0px;
                position: relative;
            }
            #custom {
                position: absolute;
                top: 20px;
                left: 20px;
                z-index: 9999;
            }
            #custom a {
                color: #ffffff;
            }
        </style>
    </head>
    <body>
    <!--START JUICEBOX EMBED-->
    <script src="jbcore/juicebox.js"></script>
    <script>
        var jb = new juicebox({
            containerId: 'juicebox-container',
            galleryWidth: '100%',
            galleryHeight: '600px',
            backgroundColor: '#222222',
            galleryTitleHAlign: 'CENTER',
            backButtonPosition: 'OVERLAY',
            backButtonUrl: '../../testouille/clickautotest/clickautotest-2.html',
            backButtonUseIcon: 'TRUE',
            showSmallBackButton: 'TRUE'
        });
        jb.onInitComplete = function() {
            var mode = jb.getScreenMode();
            if (mode == 'LARGE') {
                $('.jb-go-back').remove();
                $('body').append('<div id="custom"><a href="../../testouille/clickautotest/clickautotest-2.html">return jori</a></div>');
            }
        };
    </script>
    <div id="juicebox-container"></div>
    <!--END JUICEBOX EMBED-->
</body>
</html>

If this does not work, then to do just what you have suggested in your points #1 and #2 above (no more, no less), then try the following:

<!DOCTYPE html>
<html lang="en">
    <head>
        <title>Juicebox-Pro Gallery</title>
        <meta charset="utf-8" />
        <meta name="viewport" id="jb-viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=0" />
        <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',
            galleryWidth: '100%',
            galleryHeight: '600px',
            backgroundColor: '#222222',
            galleryTitleHAlign: 'CENTER',
            backButtonPosition: 'OVERLAY',
            backButtonUrl: '../../testouille/clickautotest/clickautotest-2.html',
            backButtonUseIcon: 'TRUE',
            showSmallBackButton: 'TRUE'
        });
        jb.onInitComplete = function() {
            var mode = jb.getScreenMode();
            if (mode == 'LARGE') {
                $('.jb-go-back').remove();
                $('body').prepend('<a href="../../testouille/clickautotest/clickautotest-2.html">return jori</a>');
            }
        };
    </script>
    <div id="juicebox-container"></div>
    <!--END JUICEBOX EMBED-->
</body>
</html>

I hope this helps.

1,902

(1 replies, posted in Juicebox-Pro Support)

Juicebox-Pro (and WP-Juicebox) can display images returned by the Flickr API using these Flickr Options.

You would need to specify a Flickr User Name, Flickr User Id, Flickr Set Id or Flickr Group Id (filtering images if necessary with Flickr Tags).

I do not think that there is any way to directly fetch only shared images via the Flickr API. I do not see any mention of the term 'share' on the Flickr API overview page: https://www.flickr.com/services/api/

If all the shared images are in the same Flickr account, then you could tag your shared images with the keyword 'shared' and set flickrTags="shared" (along with your flickrUserName or flickrUserId).

1,903

(16 replies, posted in Juicebox-Pro Support)

You're welcome.
I'm glad you're able to workaround this issue and I appreciate you posting the suggestion (for JuiceboxBuilder-Pro to retain metadata when resizing images) in the Feature Requests thread. As I've said, I do not know if this is possible (and if it is, how difficult it would be to achieve), but at least it has been noted in the correct place.
Thank you.

1,904

(8 replies, posted in Juicebox-Pro Support)

Thank you for the additional information.

The problem seems to be a combination of:
(1) An Edge Animate animation
(2) Safari 10 on Mac
(3) The Back Button within Juicebox-Pro

Unfortunately, I am unable to replicate the problem so you may need to try a few things for yourself to see if they work or make a difference.

Essentially, the Back Button just opens a specified page in the user's browser and I'm really not sure how the link itself could affect the content of the page that it links to. It looks like some kind of incompatibility between Edge Animate and Safari 10 on Mac (especially as the phenomenon has not been seen in any other browser). It is a mystery why your Edge Animate page works when opened from your own manual <a> hyperlink but not from the Back Button link in your Juicebox-Pro gallery.

However, here are a few things to check and try:

(1) Try using text instead of the icon for the Back Button to see if this makes a difference.
Set backButtonUseIcon="FALSE" and backButtonText="return jori".

(2) Try using an absolute URL instead of a relative path for your backButtonURL.
Set backButtonUrl="http://www.henricanu.com/testouille/clickautotest/clickautotest-2.html".

(3) Try taking Juicebox-Pro out of the equation and see if the same problem occurs with a dynamically generated link outside of Juicebox-Pro.
Just before the closing </body> tag on your gallery's 'index.html' page, add the following code which will add a dynamic link (like Juicebox-Pro does for the Back Button).

<script type="text/javascript">
    $(document).ready(function() {
        $('body').prepend('<a href="../../testouille/clickautotest/clickautotest-2.html">Link #2</a>');
    });
</script>

In this case, the text for the link will be "Link #2" and the link will appear above your own test link. It will still link to your Edge Animate page. Please try this and see what happens.
If this works, then you could try overriding Juicebox-Pro's own handling of the Back Button.
Try something like this:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: 'juicebox-container',
        galleryWidth: '100%',
        galleryHeight: '600px',
        backgroundColor: '#222222',
        backButtonPosition: 'OVERLAY',
        backButtonUseIcon: 'FALSE',
    });
    jb.onInitComplete = function() {
        $('.jb-go-back').html('<a href="../../testouille/clickautotest/clickautotest-2.html">return jori</a>');
    };
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

This uses the Juicebox-Pro API (specifically the onInitComplete event) to ensure that the Back Button is present in the DOM (Document Object Model) before any actions are performed on it. The code then replaces Juicebox-Pro's own Back Button link code with your own.
If this works, you can then style your custom Back Button with CSS if you like.

(4) You might also like to try giving your Edge Animate container focus as soon as the page is loaded.
Try adding the following code just before the closing </body> tag on your Edge Animate page:

<script type="text/javascript">
    window.onload = function() {
        document.getElementById('EdgeID').focus();
    };
</script>

If you continue to experience difficulties, then you might like to try posting in Adobe's Edge Animate forum to see if any other users have experienced similar issues (Edge Animate animation requiring a click on the page in Safari 10 on Mac when taken to an Edge Animate page via a link).

I hope that these suggestions help or at least point you in the right direction.

1,905

(16 replies, posted in Juicebox-Pro Support)

... if I 'save' the gallery, then all the images are deleted from the Small and Large folders.

Sorry. I should maybe have been more specific with my instructions.
(1) Create a Multi-Size Image gallery with JuiceboxBuilder-Pro (by selecting 'Resize Images' and allowing the application to create small and large images) so that smallImageURL and largeImageURL entries are included in the gallery's 'config.xml' file and 'small' and 'large' subfolders are included in the gallery's 'images' folder.
(2) Create three sets of images yourself in an imaging program (such as Photoshop) and replace the medium images in the gallery's 'images/' folder, the small images in the gallery's 'images/small/' subfolder and the large images in the 'images/large/' subfolder.
(3) Do not edit the gallery in JuiceboxBuilder-Pro after doing this. If you re-save the gallery with 'Resize Images' deselected, the smallImageURL and largeImageURL entries will be removed from the gallery's 'config.xml' file and the small and large images will be deleted from the 'images/small/' and 'images/large/' subfolders.

... are you certain that the gallery will actually *use/deliver* the small and large images when being used by the appropriate devices?

As long as there are smallImageUrl and largeImageUrl entries with valid paths pointing towards corresponding images (which, by default, will be in the 'images/small/' and 'images/large/' subfolders), then Juicebox-Pro will use the appropriate images (depending on the device, screen size, pixel density, etc.) when the gallery is displayed.

The key is to not re-save your gallery in JuiceboxBuilder-Pro with 'Resize Images' deselected after creating a Multi-Size Image gallery and swapping out your images.

1,906

(1 replies, posted in Juicebox-Pro Support)

I'm not sure if you are using WP-Juicebox (the Juicebox plugin for WordPress) or trying to embed your gallery manually.

If you are using WP-Juicebox and find that the pop-up window does not display the gallery settings when you click the 'Add Juicebox Gallery' button, then please see this forum thread for suggestions.

If you are trying to embed your gallery manually, then I would recommend using the baseUrl method documented here.
Essentially, once you have created your gallery with Lightroom, you would upload the complete gallery folder (not just the contents) to your web server and paste the baseUrl embedding code into the body of your WordPress page or post (ensuring that the method of entry is 'Text' rather than 'Visual'). It does not matter where on your web server you upload your gallery folder to 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.

For example, if your gallery folder is named 'my_gallery_folder' and you upload it to the root directory of your web space, then you could use the following embedding code. The leading slashes in the paths denote your root directory so this code will work in any web page throughout your site without modification (although you can change the gallery dimensions and background color if you like).

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

If you have trouble with WordPress adding <br> and <p> tags throughout the code, install the Raw HTML plugin and wrap the code in [raw] ... [/raw] tags.

I hope these notes help.
However, if you continue to experience difficulties, please post back with a link to your gallery's web page so that I can see the problem for myself and hopefully help further.

1,907

(16 replies, posted in Juicebox-Pro Support)

... when I de-select the 'Resize Images' checkbox, JBx no longer allows me to have  large, medium and small images.

The only way for JuiceboxBuilder-Pro to create different sizes of images is to resize the source images. As soon as you deselect 'Resize Images', your source images will not be resized at all and your gallery will use just the source images.

Is there any way of having Juicebox Builder Pro, NOT resize AND allow for 3 sizes?  (Unfortunately, I don't use Lr).

No. Unfortunately not.

If you want to have a Multi-Size Image gallery but do not want your images to be resized by JuiceboxBuilder-Pro, then you'll need to:
(1) Create a Multi-Size Image gallery with JuiceboxBuilder-Pro (so that smallImageURL and largeImageURL entries are included in the gallery's 'config.xml' file).
(2) Create three sets of images yourself in an imaging program (such as Photoshop) and replace the images in the gallery's 'images' folder.

1,908

(8 replies, posted in Juicebox-Pro Support)

I have tested your setup in Chrome 54, Edge, Firefox 49.0.1, Internet Explorer 11 and Opera 40 on my PC.
Every time I single-slick your gallery's Back Button, the animation on your Edge Animate page is active without having to click anywhere on the page. It works in all browsers for me.

The Back Button is essentially just an <a> tag (like your manual link) which is generated dynamically by the 'juicebox.js' file when the gallery is displayed (although this should make no difference).

Maybe some additional information would help to track down the cause of the problem.
What version of Safari do you use?
Do you have any browser extensions installed? If so, try temporarily disabling them to see if this helps.
Try completely clearing your browser's cache before reloading your website to see if this makes a difference.
Also, try other browsers to see if the problem is unique to Safari.

Hyperlinks operate with a single-click and, as far as I'm aware, there is no way to simulate a double-click on the Back Button when a user single-clicks it.

1,909

(10 replies, posted in Juicebox-Pro Support)

You're welcome!
I'm glad my suggestion worked for you. Thanks for letting me know.

1,910

(10 replies, posted in Juicebox-Pro Support)

On my iPhone, screen touches anywhere hides Title, Caption (including my button) and Button Bar, so a touch on the button never registers on a phone.

Tapping the screen on an iPhone toggles the overlay on and off by default (you can override this behavior by setting showInfoButton="TRUE") but tapping a button on the Button Bar should certainly still work. If you have a gallery where this does not work, please post a link so that I can investigate further. (I have just viewed the gallery whose link you posted and the Button Bar buttons seem to function fine on my own iOS device.) Also, check to see if you have any custom CSS which might be overriding the gallery's own CSS.

Is there a way to get my useful button to register presses on an iPhone?

Instead of using a <form> tag, try using a regular <a> tag instead. You can then style the content of the tag using CSS.
This should hopefully work. (The <a> tag link in the first image in this demo gallery works on my iPod Touch.)

1,911

(5 replies, posted in Juicebox-Pro Support)

If you are using WP-Juicebox (the Juicebox plugin for WordPress), then you don't need to worry about the regular embedding code. The plugin handles this for you. After adding a Juicebox gallery to your page or post using the plugin, all you will see in the editor is a Juicebox shortcode such as:

[juicebox gallery_id="7"]

All you then need to do is make your that the editor is in 'Text' mode (rather than 'Visual' mode) and add the following code directly below the Juicebox shortcode (replacing the five instances of [gallery_id] with the actual gallery id as necessary).

<script type="text/javascript">
    jb_[gallery_id].onInitComplete = function() {
        jQuery('#juicebox-container-[gallery_id] .jb-bb-btn-open-url').off('click');
        jQuery('#juicebox-container-[gallery_id] .jb-bb-btn-open-url').click(function() {
            var index = jb_[gallery_id].getImageIndex() - 1;
            var element = '#juicebox-container-[gallery_id] .jb-dt-main-image-' + index;
            var src = jQuery(element).find('img').first().attr('src');
            window.open(src, '_blank');
        });
    };
</script>

If you are not using WP-Juicebox and, instead, are manually embedding your Juicebox gallery into your WordPress page or post, then I would recommend using the baseUrl method documented here.
As an example, you could name a gallery folder 'your_gallery_folder', upload it to your web space's root directory and paste the following code into the WordPress editor (in 'Text' mode).

<script src="/your_gallery_folder/jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        baseUrl: "/your_gallery_folder/",
        containerId: "juicebox-container",
        galleryWidth: "100%",
        galleryHeight: '600px",
        useFlickr: "TRUE",
        flickrUserName: "your_flickr_username"
    });
    jb.onInitComplete = function() {
        jQuery('#juicebox-container .jb-bb-btn-open-url').off('click');
        jQuery('#juicebox-container .jb-bb-btn-open-url').click(function() {
            var index = jb.getImageIndex() - 1;
            var element = '#juicebox-container .jb-dt-main-image-' + index;
            var src = jQuery(element).find('img').first().attr('src');
            window.open(src, '_blank');
        });
    };
</script>
<div id="juicebox-container"></div>

I hope this helps.

1,912

(5 replies, posted in Juicebox-Pro Support)

No problem.
I'm pretty sure Ryan should be able to help you out with the use of hook_juicebox_gallery_alter() over in the Srupal forum.

1,913

(1 replies, posted in Juicebox-Pro Support)

Sorry for the late reply. It looks like your query somehow slipped through the net.

WP-Juicebox (the Juicebox plugin for WordPress) embeds galleries in WordPress web pages using the regular embedding method documented here.

All that is loaded into the web page is the 'juicebox.js' file (and the 'theme.css' file dynamically afterwards).
All the CSS in the 'theme.css' file should target the gallery only. As far as I am aware, there are no CSS rules that should affect any other elements on your web page.
There may somehow be a JavaScript conflict but all it seems strange that the problem has happened only with your new theme.

It would certainly be worth making sure that you are using the latest versions of WordPress (v4.6.1) and WP-Juicebox (v1.5.0) (and WP DFP if you are using it) to see if this helps. You can download the latest version of WP-Juicebox from the plugin's support page here. Be sure to upgrade the plugin using your Juicebox-Pro v1.5.0 files. (You can download Juicebox-Pro v1.5.0 using the link from your purchase email. Full instructions can be found here.)

Try viewing your web page in different browsers (Chrome, Edge, Firefox, Internet Explorer, Opera, Safari) to see if the problem is unique to a certain browser. Also, if you have any browser extensions installed, try temporarily disabling them to see if this makes a difference.

I'm not sure it will help but this is the only forum thread I can find in the WP DFP support section which seems similar (if not identical) to your problem. I just thought I would point it out in case it helps.
WP DFP Loads Twice (Ads Flicker) - https://wordpress.org/support/topic/wp- … s-flicker/

1,914

(5 replies, posted in Juicebox-Pro Support)

Normally, to give each gallery a different audio track, you would just assign each gallery different audioUrlMp3 and audioUrlOgg values.
For reference, a list of all Audio Options can be found here.
Please also see the Adding Audio Support section.

The hook_juicebox_gallery_alter() method is unique to the Juicebox module for Drupal. It is not part of Juicebox itself.
The Juicebox module for Drupal is an unofficial plugin which was not written by ourselves and, as such, I am not familiar with hook_juicebox_gallery_alter().
I would recommend that you post your query in the Drupal forum where the author of the module should be able to help you further. (The module is well supported by its author over there.)

I realise that this may not directly answer your query but I hope it points you in the right direction.

1,915

(5 replies, posted in Juicebox-Pro Support)

Thank you for posting your idea in the Feature Requests thread.

I've found a workaround for this which you might like to try.
It's rather complex and involves overriding Juicebox-Pro's own click handler for the 'Open Image' button.
It uses the Juicebox-Pro API (specifically the onInitComplete event) to ensure that the 'Open Image' button is present in the DOM (Document Object Model) before any actions are performed on it.
It also uses JavaScript to extract the current image's URL (from a dynamically generated container with a specific CSS class name) before opening it in a new tab/window.

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: "juicebox-container",
        useFlickr: "TRUE",
        flickrUserName: "your_flickr_username"
    });
    jb.onInitComplete = function() {
        $('#juicebox-container .jb-bb-btn-open-url').off('click');
        $('#juicebox-container .jb-bb-btn-open-url').click(function() {
            var index = jb.getImageIndex() - 1;
            var element = '#juicebox-container .jb-dt-main-image-' + index;
            var src = $(element).find('img').first().attr('src');
            window.open(src, '_blank');
        });
    };
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

I hope this is a suitable workaround for you.

If you want to incorporate it into a WP-Juicebox gallery, then add the following code to the body of your WordPress page or post directly below your Juicebox gallery shortcode. (Make sure that your editor is in 'Text' mode rather than 'Visual' mode.)

<script type="text/javascript">
    jb_[gallery_id].onInitComplete = function() {
        jQuery('#juicebox-container-[gallery_id] .jb-bb-btn-open-url').off('click');
        jQuery('#juicebox-container-[gallery_id] .jb-bb-btn-open-url').click(function() {
            var index = jb_[gallery_id].getImageIndex() - 1;
            var element = '#juicebox-container-[gallery_id] .jb-dt-main-image-' + index;
            var src = jQuery(element).find('img').first().attr('src');
            window.open(src, '_blank');
        });
    };
</script>

Replace the five instances of [gallery_id] in the code above with the actual Gallery Id which you can find in the Juicebox gallery shortcode.
For example, if your Gallery Id is 7, then your code should look like this:

<script type="text/javascript">
    jb_7.onInitComplete = function() {
        jQuery('#juicebox-container-7 .jb-bb-btn-open-url').off('click');
        jQuery('#juicebox-container-7 .jb-bb-btn-open-url').click(function() {
            var index = jb_7.getImageIndex() - 1;
            var element = '#juicebox-container-7 .jb-dt-main-image-' + index;
            var src = jQuery(element).find('img').first().attr('src');
            window.open(src, '_blank');
        });
    };
</script>

If you have trouble with WordPress adding <br> and <p> tags throughout the code, install the Raw HTML plugin and wrap the code in [raw] ... [/raw] tags.

Please note that Juicebox-Pro was not designed with this functionality in mind (user overrides for Button Bar buttons) and whilst you are free to use such modifications, there are not officially supported (and you may run into unforeseen problems that might have to be tackled along the way).

1,916

(5 replies, posted in Juicebox-Pro Support)

I switched to flickr because Picasa web didn't work anymore with Juicebox plugin (Wordpress).

Unfortunately, Google (who acquired Picasa) do not seem to allow access to new Google Photo Albums via the Picasa Web API although existing albums created prior to the acquisition can still be displayed via WP-Juicebox (as long as they have not been modified recently).

When I use a flickr album, the picture doesn't open in a separate window, but opens in flickr.

This is by design. When the 'Open Image' button is clicked for a Flickr gallery, the image's Flickr page is opened.
There is no way to change this behavior using any available configuration options. The code which handles this is buried deep within the 'juicebox.js' file which is obfuscated and cannot be modified.

All I can suggest at the moment is to perhaps suggest this alternative action for the 'Open Image' button in the Feature Requests forum thread.
This keeps all the ideas together and ensures that they are not overlooked by the developers.
I do not know the likelihood of any suggestions being implemented but this is certainly the best place for all ideas.
Thank you.

1,917

(1 replies, posted in Juicebox-Pro Support)

I notice that your panoramic thumbnail images have actual dimensions of ~170px x 50px and are being displayed in your gallery at 85px a 85px so they are therefore being dynamically scaled up (and losing quality) when the gallery is displayed to fill the required 85px height.

The Lightroom plugin will currently produce thumbnails which should look fine (and should not need to be scaled up) for images which have a maximum aspect ratio of 2:1.

If the plugin were just to increase the thumbnail dimensions (which are currently based on the thumbWidth and thumbHeight values), then it would produce (perhaps unnecessarily) larger thumbnails for all galleries (irrespective of whether or not panoramic images are used).

Unfortunately, it is not possible for the plugin to iterate over all gallery images before the thumbnails dimensions need to be set in order to determine the largest aspect ratio and calculate optimum values.

I'll investigate to see if there is a better way to have the plugin scale the thumbnail images.

At the moment, the best workaround would probably be to replace the thumbnails with custom ones (perhaps created with JuiceboxBuilder-Pro which resizes and crops the source images to create thumbnail images with the exact thumbWidth and thumbHeight dimensions).

Edit:
Please check your email. I have sent you a message. Thank you.

1,918

(8 replies, posted in Juicebox-Pro Support)

You're correct. Sorry. The link pointed towards the Showkase forum Feature Requests thread in error. Thank you for pointing this out.
I've fixed the link now so that it points correctly towards the Juicebox forum Feature Requests thread (http://juicebox.net/forum/viewtopic.php?id=5). I'm glad you found the right thread. Apologies for any inconvenience caused.

1,919

(5 replies, posted in Juicebox-Pro Support)

I'm glad that you've been able to successfully use a workaround.
As you say, it should hopefully only be a temporary measure until the problem is fixed.

Incidentally, setting imagePreloading="ALL" should be enough to work around the problem.
I notice that your gallery (the first one that you linked to above) does not set a value for imagePreloading but, instead, sets maxThumbColumns="52" (the number of images in your gallery). By not setting a value for imagePreloading, Juicebox-Pro will use its default value of PAGE and by setting maxThumbColumns="52", you are essentially telling Juicebox-Pro that there should be (a maximum of) 52 images per page. Therefore, all 52 images on the first page of thumbnails (all the images in your gallery) will be preloaded and this has the same result as setting imagePreloading="ALL".

1,920

(8 replies, posted in Juicebox-Pro Support)

@borut.podlipnik

You can change the shape of the thumbnails with thumbWidth and thumbHeight (via the 'Thumb Width' and 'Thumb Height' sliders in the 'Thumbnail' control panel). They do not need to be square but they will all be the same size as each other.

However, images in folder thumbs (probably created by Lightroom) are correct - not cropped!

The thumbnails exported by Lightroom are not cropped (as you have discovered). Lightroom uses the thumbWidth and thumbHeight values as maximum bounds when resizing the images and their aspect ratios are respected.
However, Juicebox will always dynamically scale the thumbnail images to fill the thumbnail dimensions (with cropping if the aspect ratios do not match) when the gallery is displayed.
Even though JuiceboxBuilder-Pro crops thumbnails to the exact thumbnail dimensions and Lightroom does not, if you view galleries (built with JuiceboxBuilder-Pro and Lightroom) with the same thumbWidth and thumbHeight values, the galleries (and thumbnails in particular) will look the same.
There is no way to change this.

The only thing you could do is create your own set of scaled-to-fit thumbnail images (in Lightroom, Photoshop or another imaging program) and replace the ones in the 'thumbs' folder.
Please bear in mind that it would still not be possible to have thumbnail images of different sizes. All thumbnail images will be displayed at the thumbWidth and thumbHeight dimensions. If you have images of varying aspect ratios, you may need to pad your thumbnail canvas with blank space (at the top and bottom or left and right) to fill the thumbnail dimensions.

If you like, you can post suggestions for future versions in the Feature Requests forum thread.
This keeps all the ideas together and ensures that they are not overlooked by the developers.
I do not know the likelihood of any suggestions being implemented but this is certainly the best place for all ideas.
Thank you.

1,921

(5 replies, posted in Juicebox-Pro Support)

Unfortunately, you have encountered a known bug whereby flickrShowDescription captions are not displayed when the thumbnails are not visible on the page and only a certain number of images have been preloaded.

A bug report has been logged with the developers and the problem should hopefully be fixed in the next version.

The only workaround I've found so far is to set imagePreloading="ALL" (although if you have a large gallery or use large images, this might not be ideal).
A short description of imagePreloading can be found in the Main Image Options section of the 'Config Options' page.

I hope this is a suitable workaround for you until the problem is fixed.

1,922

(1 replies, posted in Juicebox-Pro Support)

how can I share one image not the gallery?

It is not possible to have the shared image's thumbnail displayed in the pop-up Facebook share window due to limitations imposed by Facebook on what data can be passed via their share URL. Only one thumbnail image can be used per web page. However, the shared link will still point towards the correct image within your gallery, though.

The image used in the pop-up Facebook share window is set using an Open Graph og:image meta tag in the <head> section of your web page, such as the following:

<meta property="og:image" content="http://www.example.com/images/thumbnail.jpg" />

Please see here for more details on the Open Graph protocol.

You can think of the og:image as being representative of the gallery as a whole so you could use an image which best represents your gallery. (The og:image does not need to be an image from the gallery.)

If you create a gallery with JuiceboxBuilder-Pro, an og:image meta tag will be automatically generated and included in the gallery's 'index.html' file (pointing towards the first image in the gallery). If you are embedding your gallery in an existing web page alongside other content, then you will need to add an og:image meta tag manually.

Although the thumbnail image displayed in the pop-up Facebook share window will always be the same one (specified via the og:image meta tag), the link being shared will still point correctly towards the shared image in the gallery. You should notice that the URL being shared ends with something like #2 or #17 where the number represents the image in the gallery. When a user clicks on a shared link, the corresponding shared image will be opened in the gallery.

Can I handle the click on share facebook button  and open another dialog?

If you really wanted to override Juicebox-Pro's click handler for the Facebook share button, you could try something like the following which will allow you to run your own custom JavaScript code when the Facebook share button is clicked.

<script src="jbcore/juicebox.js"></script>
<script>
    var jb = new juicebox({
        containerId: "juicebox-container",
        shareFacebook: "TRUE"
    });
    jb.onInitComplete = function() {
        $('.jb-bb-btn-facebook').off('click');
        $('.jb-bb-btn-facebook').click(function() {
            // Custom JavaScript code to be run when Facebook share button is clicked goes here
        });
    };
</script>

This uses the Juicebox-Pro API (specifically the onInitComplete event) to ensure that the Facebook share button is present in the DOM (Document Object Model) before any actions are performed on it.

Please note that Juicebox-Pro was not designed with this functionality in mind (user overrides for Button Bar buttons) and whilst you are free to use such modifications, they are not officially supported (and you may run into unforeseen problems that might have to be tackled along the way).

1,923

(4 replies, posted in Juicebox-Pro Support)

You're welcome. I'm glad that solved your problem.
Thank you for letting me know.

1,924

(3 replies, posted in Juicebox-Lite Support)

You're welcome.

1,925

(3 replies, posted in Juicebox-Pro Support)

If you wanted to sort the images only in specific galleries, then you'd really need to create a new variable for each gallery, check the variable when the images are fetched from Google and sort the images if necessary depending on the value of the variable. This would be much more complicated to implement (you'd need to make several changes across three different plugin files) and, if you have only one or two galleries that you'd like to sort, then it might be easier to just rearrange the images in the Google Photos interface (if that's possible).