651

(5 replies, posted in Juicebox-Pro Support)

I read on a post, to import the photos must not exceed 1GO

Adobe's AIR's maximum memory allocation does not exactly equate to the total filesize of the images you add to your gallery in a single batch.
As you have discovered, a problem could occur with the total filesize of a batch of images being much less than 1GB.
If you find you have a problem adding many images at once, then trial and error should help you to determine a safe number of images per batch. (It will depend on your own images so I cannot recommend a maximum number of images which will work for all users.)
In any case, this is another known issue which the developers are aware of but if, as I expect, the problem is due to a limitation within Adobe AIR (the platform on which JuiceboxBuilder runs), then there may be little that can be done about it.
At least you are aware of the workaround (to add images in smaller batches).

652

(5 replies, posted in Juicebox-Pro Support)

Thank you for reporting this problem.
Unfortunately, this is actually a known issue which the developers are aware of. As such, it should hopefully be fixed in a future version (although I do not know when this might be).

Essentially, the 'Gallery -> Open...' option from the drop-down menu at the top does not currently work from the 'Images' or 'Customize' tabs.
If you want to open a new gallery without closing and restarting JuiceboxBuilder, just click on the 'Start' tab first and you will then be able to open a new gallery via the 'Open Gallery...' button or the 'Gallery -> Open...' option from the drop-down menu at the top.

I hope this workaround is not too much of an inconvenience until the bug is fixed.
Thanks again for reporting the issue, though. We appreciate the feedback!

653

(3 replies, posted in Juicebox-Pro Support)

I'm sorry to hear that you are having trouble with Juicebox-Pro.
Hopefully my notes below will help.

First of all, thank you for proving the link to your gallery's web page. Being able to see the problem live on your web server makes troubleshooting much easier than it would be otherwise.

The problem is caused by custom CSS from your 'dprl/sites/default/files/css/css_QCv8MsId5filqsoIiRNQ1kr6cc8cfMD65mL0h8pDWos.css' file.
Specifically, within this file, you have the following CSS:

#content img, #sidebar-first img, #sidebar-second img {
    max-width: 100%;
    height: auto;
}

These max-width and height CSS rules are being applied to all <img> tags (i.e. al images) within your #content container (which includes your Juicebox gallery).
The Juicebox gallery has no option but to inherit such global CSS rules. (It is the max-width CSS rule which is causing the problem and changing the width of the thumbnails within their frames.)

One possible solution would be to apply the custom CSS rules to only those images on your web page which require them through use of CSS selectors (ids and classes).

Another solution would be to try to protect the images within your Juicebox gallery from the custom CSS rule which is causing the problem.
Try adding the following CSS to your Juicebox gallery's '/dprl/sites/default/files/jbcore/classic/theme.css' file.

.juicebox-gallery img, .jb-idx-thb-list .jb-idx-thumb img, .jb-dt-main-frame img, .jb-idx-thumbnail-container .jb-splash-holder img {
    max-width: none !important;
}

I hope that this helps to resolve your problem.

654

(5 replies, posted in Juicebox-Pro Support)

@meredithkleiber

If you are using the current version of WordPress (v5.2.3), then you will likely be using the new default editor, Gutenberg, which no longer features the 'Add Media' button.
You likely attached your images to your page or post using a Gutenberg 'Gallery' block and you can rearrange your images through this block type.
Here is the complete procedure for adding a WP-Juicebox gallery to a WordPress page or post using Gutenberg. (Steps #7 and #8 are for reordering your images.)

(1) Click the 'Add Juicebox Gallery' button to add a WP-Juicebox gallery to your page or post.
(2) Configure your gallery as required in the settings window and click the 'Add Gallery' button to add the WP-Juicebox shortcode to your page or post.
(3) Click the 'Add Block' button (top left) to add a new Gutenberg block to your page or post.
(4) Select a 'Gallery' block. (You'll find it in the 'Common Blocks' section.)
(5) Click the 'Media Library' button within the 'Gallery' block.
(6) Drag and drop the images that you want to attach to your page or post (i.e. the images that you would like to be displayed in your WP-Juicebox gallery) from your hard drive into the media window.
(7) Select 'Uploaded to this post' from the first drop-down menu (on the 'Create Gallery -> Media Library' tab).
(8) Drag and drop the thumbnail images into the order that you would like them to be displayed in your WP-Juicebox gallery.
(9) Close the media window via the cross at the top right. (Do not click the 'Create a new gallery' as this will create a native WordPress gallery in addition to your WP-Juicebox gallery.)

I hope this helps.

Hi.

This is a support forum for the Juicebox-Pro web gallery software from SimpleViewer Inc.

From your query, it sounds like you are referring to a 'JuiceBox' from eMotorWerks, a completely unrelated company to our own (although the product names are the same).

I do not know if they have a forum but you should be able to contact eMotorWerks directly via their online form here: https://emotorwerks.com/contact

I hope this points you in the right direction.

That's very strange. Even if your web host is incompatible with Safari (which in itself is rather odd), I'd think that they might want to make some changes to ensure that it is compatible, given the number of Safari users out there. (Safari is currently second only to Chrome in the number of users, according to StatCounter, August 2019.)

In any case, looking at the results of an ICANN lookup for 'juicebox.net', I see that the nameservers are ServInt which looks to be an enterprise solution rather than a 'regular' web host. (As you have probably gathered, I personally have no direct dealings with our web host.)

Having said that, I've never heard of a web host that claims to be incompatible with Safari so yours appears to be the exception to the rule and I expect that the majority of web hosts will support both Safari and Juicebox-Pro's Download Button (as long as PHP 5.2.0 or later is installed).

I wish you well in your search for a compatible web host but I really don't think that you should have to look too far.
I'm very surprised by your web host's admission and refusal to try to fix the problem (which could just be a tweak to their Mod_Security settings which they seem to be unwilling to change).

I would hesitate to recommend a web host, though, as one person's experiences may differ greatly to another's.
However, I have free accounts with a few web hosts and I have uploaded a test Juicebox-Pro gallery (featuring the Download Button) to each of them so that you can check out the Download Button's functionality in your Safari browser.

AwardSpace: [Link removed.]
ByetHost: [Link removed.]
x10hosting: [Link removed.]

Please be aware that all the galleries above are on free accounts and you usually get what you pay for.
Paid accounts usually offer more features, greater stability and speed and better support.

Also, please note that I'm not actually recommending any of these web hosts.
This is really just a test to (hopefully) demonstrate that most web hosts will support Safari and Juicebox-Pro's Download Button.

Please let me know how you get on.

657

(17 replies, posted in Juicebox-Lite Support)

As long as you are getting on well within the limitations imposed by your web hosting account, that's great!

658

(1 replies, posted in Juicebox-Lite Support)

You can certainly create and embed multiple Juicebox-Lite galleries into your website.
Please see the Embedding Multiple Galleries support section which deals with 'Multiple Galleries on One HTML Page' and 'Multiple Galleries on Separate HTML Pages'.
(Embedding techniques are exactly the same for both Juicebox-Lite and Juicebox-Pro.)

Thanks for letting me know. I hope you get on OK.
Please keep me posted.

660

(17 replies, posted in Juicebox-Lite Support)

There's nothing wrong with using an iframe but there are some drawbacks to doing so (which are noted here... scroll down to "2) Using an iframe") so I'd always recommend embedding directly into a web page (following either the regular embedding instructions or the baseUrl embedding instructions) where possible.

If you run into any difficulties, then perhaps you could let me know a little more about how you are trying to embed your gallery (maybe an example would help me to understand your scenario better) and I'll try to help further.

I have been using 1.5.1.  I just sent a link to a smaller site that didn't have photos that I didn't want going public.

OK, thank you for the information.

From what I've read, Safari should support HTML5 download.

I put up an HTML5 download test, and it works with Safari.

Safari does now support the HTML 5 'download' attribute but, at the time the Download Button functionality was written for Juicebox-Pro, it is very possible that it did not (which would explain why Juicebox-Pro uses the PHP implementation for Safari).
In any case, it should work (regardless of the implementation being used).

Check out the Download Button in our demo gallery here.
If this works in your Safari browser, then the problem likely lies somewhere within your web server's set up and the error message you see ("This error was generated by Mod_Security.") certainly suggests that Mod_Security is at the root of your problem. It sounds like a custom Mod_Security rule is interfering with (and blocking) the PHP download process.

Please check in with your web host to find out what custom Mod_Security rules are being applied to your hosting account (and where they are being set).
You may need to temporarily remove them one-by-one (checking the Download Button's functionality after removing each one) to find the Mod_Security rule causing your problem.

If you find that the Download Button does not work in our demo gallery in your Safari Browser, then please let me know and I will notify the developers.
Thank you.

662

(17 replies, posted in Juicebox-Lite Support)

@adec

ah thanks!

You're welcome! I'm glad this thread has helped you out.

now just need to embed it into a local website to make sure it works there.

I hope all goes well. Just let me know if you run into any difficulties and I'll do my best to help you out.
For reference, the Embedding Guide is here.

@jcisaacs3

I'm sorry to hear that you are having trouble with Juicebox-Pro.
Hopefully my noted below will help.

Thank you for providing the URL to your website
Just for the record, I have been able to successfully use the Download Button in your gallery in all major up-to-date browsers on my Windows 10 PC (Edge, Chrome, Firefox, Internet Explorer, Opera).
It looks like the only browser in which the Download Button fails is Safari.

I notice that your gallery uses Juicebox-Pro v1.5.0.
Please try upgrading your gallery to the latest version (v1.5.1) as many bugs have been fixed since v1.5.0 and upgrading may fix your problem without any further action.
Full instructions for upgrading JuiceboxBuilder-Pro and existing galleries can be found on the Upgrading Juicebox support page.

I realise that the only fix regarding the Download Button listed in the Version History does not seem relevant to your problem but the code for the Download Button has changed since v1.5.0 so upgrading may still be worth a try.

I hope that upgrading your gallery helps.
Otherwise, the error message you see relates to Mod_Security so please check your web server's .htaccess files to see what Mod_Security rules are in place and which might be interfering with Juicebox's download functionality.

Just for clarification, your gallery's 'config.xml' file looks fine (all linkURL entries are blank).
Also, when you say that the Download Button works in Chrome and Firefox, this could be because these browsers use the HTML 5 'download' attribute rather than the PHP implementation of the download functionality. (Juicebox includes both methods of download to support browsers which do not support the HTML 5 'download' attribute.)

In any case, I hope that my notes above help.
Please let me know how you get on and if I can be of any further assistance.

664

(1 replies, posted in Juicebox-Pro Support)

What you are seeing in Firefox is the gallery being displayed in Small Screen Mode (where thumbnails and main images are displayed on separate pages).
Small Screen Mode is usually used only on mobile devices (or when Small Screen Mode is forced by setting screenMode="SMALL").
(More information on Screen Modes can be found in the Gallery Tour here.)

If all three screenshots are from the same gallery, then screenMode must be set to AUTO, otherwise a certain Screen Mode (either Large or Small) would always be used on all devices and in all browsers, so something must be triggering Small Screen Mode to be used in your Firefox browser.

Here are a few things to check:

  • Check that your Firefox browser is not in 'Tools -> Web Developer -> Responsive Design Mode'.

  • Check that your 'View -> Zoom' is set to 100% and not zoomed in or out.

  • Check that you do not have any browser extension installed and active which is currently changing the User-Agent string (for example, to mimic a mobile device).

I hope that this helps or at least points you in the right direction.

665

(1 replies, posted in Juicebox-Pro Support)

Hi.

This is a support forum for the Juicebox-Pro web gallery software from SimpleViewer Inc.

From your query, it sounds like you are referring to a 'JuiceBox' from eMotorWerks, a completely unrelated company to our own (although the product names are the same).

I do not know if they have a forum but you should be able to contact eMotorWerks directly via their online form here: https://emotorwerks.com/contact

I hope this points you in the right direction.

@mrp

Yes. You can set most configuration options in either the 'config.xml' file or the embedding code.
( I usually recommend setting options in JuiceboxBuilder-Pro as it seems to be the most popular method of creating and editing galleries and it does not involve any manual code editing.)
Please see the Setting Config Options support section for further details.

The only configuration options that must be set in the embedding code rather than the 'config.xml' file are listed in the Embed Options.
All other options can be set in either the 'config.xml' file or the embedding code.
(If an option is set in both the 'config.xml' file and the embedding code, then the value in the embedding code takes precedence over the value in the 'config.xml' file.)

667

(9 replies, posted in Juicebox-Pro Support)

Are there any known problems getting the Pro version to work with the Juicebox module?

There are no problems using Juicebox-Pro with the Juicebox Module for Drupal. Just follow the 'Installation Instructions' here.
When you reach Step #3, be sure to use the files inside the 'jbcore' folder from the Juicebox-Pro v1.5.1 zip package ('juicebox_pro_1.5.1/web/jbcore/').

Please note that upgrading the module to Juicebox-Pro will not change the module's interface.
There will be no additional interface options for setting Pro configuration options (like JuiceboxBuilder-Pro or the Lightroom Plugin).
However, you can configure your gallery as you like by entering individual Pro Options in the 'Juicebox Library - Pro / Manual Config' section of your Drupal Dashboard ('Home -> Administration -> Structure -> Content types -> Article -> Manage Display -> Juicebox settings').

Can I create a gallery with the thumbnail tool on the right side with the Juicebox module?

I am not familiar with the thumbnail tool you refer to so I guess this query is one for Ryan to field over in the Drupal forum.

Can I remove the large whitespace above a gallery?

First of all, please check with your browser's developer tools to see whether the whitespace you refer to is inside or outside the gallery.
If it is inside the gallery, then the space could be due to setting your gallery's height to 100%. If the gallery's parent container has no height specified via CSS, then the gallery's actual height could be 100% of the browser window height. The main images could already be scaled as large as possible within the gallery's image area (if they were scaled any larger, then cropping might occur), leaving space above and below the main images.
Try reducing your gallery's height. Try a fixed pixel value such as 600px to see if this helps.
The gallery will still be responsive in the horizontal dimension (dependent on your web page layout and the dimensions of all parent containers) but will have a fixed height.
However, this is not usually a problem for a web page which scrolls vertically.
Elements in a vertically scrolling web page usually have a fixed height (the height of elements does not usually change when scrolling down a page).
Please also see this FAQ:
My Juicebox gallery shows too much space above or below the main image, how do I fix this?

Can I remove the juicebox logo on the mobile display?

Yes. Just use Juicebox-Pro. All Juicebox-Lite galleries feature the Juicebox logo in the lower right corner. This branding is not present in any Juicebox-Pro galleries.

I am working on an intranet site that may not allow the server to have Internet access.  Does it call home (require internet connection etc) for any reason...

Juicebox-Lite contacts our web server only to fetch the logo (for the lower right corner of the galleries). Juicebox-Pro does not call home at all.

... and will it not work if it cannot call home etc?

Both Juicebox-Lite and Juicebox-Pro will both work without an internet connection. Please see the following FAQ regarding local viewing, though.
When I view my gallery locally, I see the message "Juicebox can not display locally in this browser". Why?

Also, please see this additional note for local viewing in Safari 11 and this additional note for local viewing in Firefox 68.

I am constantly creating and deleting test environments.  Is my Pro version tied to a specific site?

No. You do not actually need to inform us of the websites that you use Juicebox-Pro on.
We ask only that you abide by the Terms of Use and upload Pro galleries to only as many website domains as your license allows.
For example, if you have a 5-Site License, then you are free to change the website domains that you upload Pro galleries to at any time you like without notifying us and, as long as you have Pro galleries uploaded to no more than 5 different website domains at any one time, that is fine.

I don't want to have to deal with relicensing it every time I build a new test site.

Please see this FAQ:
How many websites can I use Juicebox-Pro on?

Licenses are only required for publicly accessible domains, so staging and testing domains do not require an additional license.

I hope my notes above help to clarify things.
Please let me know if you have any further queries.

668

(9 replies, posted in Juicebox-Pro Support)

My apologies, the test site is on my PC and I put it into sleep when I go to bed.  That URL should be working again for the next 15 hours or so.

Still no joy with the URL I'm afraid...

I hope that Ryan (or another Drupal Juicebox Module user) can help you out over in the Drupal forum but I suspect that trying to integrate my solution into the module will not be an easy task.

Maybe there's a different solution that a user of the bootstrap tab system that you use can recommend (perhaps they have experienced a similar issue with other HTML elements embedded into the tabs ).

Being that the problem resolves itself when the browser is resized, you could perhaps manually trigger a resize when your tab is clicked. (Such a solution would be independent of Juicebox and the module's code.)
Try adding the following code to your web page:

<script>
    $(document).ready(function() {
        $('#gallery_tab').click(function() {
            $(window).trigger('resize');
        });
    });
</script>

Again, this assumes that your 'Gallery' tab has an id="gallery_tab". (If not, then just change #gallery_tab in the code above to the correct 'id' for your 'Gallery' tab.)
It also assumes that jQuery is loaded into your web page. (Juicebox comes bundled with its own version of jQuery so as long as the code is run after the 'juicebox.js' file is loaded into your web page, then all should be fine.)
Please note that this proposed solution has not been tested so I do not know whether it will work or not, but it should be a fairly quick and easy thing to try (as long as you can get the JavaScript code into your web page).

669

(19 replies, posted in Juicebox-Pro Support)

Thanks!

Edit:
For others reading this thread, although I have notified the developers, unless the 'juicebox.js' file is repacked using a different method, it will always trigger the Content Security Policy eval warning.
If you have a CSP in place and want to retain it whilst still allowing Juicebox to run, then you'll need to add 'unsafe-eval' to your CSP (and also 'unsafe-inline', too, if your gallery's embedding code is inline and not in an external JavaScript file.)
Relaxing the CSP to suppress warnings is not ideal by any means but I thought I should mention this in case it helps anyone.

670

(19 replies, posted in Juicebox-Pro Support)

I get a lot of errors on the javascript console such as

I realise that in an ideal world, it would be great to have no '[Violation]' entries in the console but it is worth remembering that these entries are only present in Chrome and only when the debugging level is set to 'Verbose'. (They are not classed as 'Errors', 'Warnings' or even 'Info'.)

Just out of curiosity, I loaded a few popular web pages into Chrome (adobe.com, amazon.com, apple.com, microsoft.com, mozilla.org) and they all display '[Violation]' entries (of one type or another, some more than others) in 'Verbose' mode.

Of course after completing it I find I can't get rid of the 'unsafe-eval' in the policy

That's down to the way that the 'juicebox.js' file is packed which is a choice that the developers have taken.

The 'juicebox.js' file uses eval() and CSP does not allow the use of eval() ("Eval and related functions are disabled") so, unfortunately, Juicebox will not be fully compatible with CSP guidelines.
There really is nothing that can be done about this (at user level) at the moment, although I have notified the developers of this so it is in their hands now.

671

(19 replies, posted in Juicebox-Pro Support)

I didn't realise that you had so many galleries! Hopefully you'll be finished by now.

I'm glad you've made the choice of having al your galleries share a single 'jbcore' folder (as documented here).
This will make updating all your galleries (when a new version of Juicebox is released) a simple matter of replacing just one 'jbcore' folder on your web server (instead of 233).
(I mention this just in case anyone else reading this thread also has a lot of galleries and is not aware that multiple galleries can share a single 'jbcore' folder.)

672

(9 replies, posted in Juicebox-Pro Support)

Unfortunately, the URL you provided does not work so I cannot see your gallery's web page.

I don't really know where to apply the code...

If, for example, you are following the regular embedding instructions here, then you would just use the embedding code I provided (changing the gallery dimensions and background color as necessary) instead of the embedding code provided on the 'Publish' tab of JuiceboxBuilder. (It would just be a simple swap of code.)

Without being able to see your gallery's web page, I do not know how you are currently embedding your gallery.
If you are using the baseUrl method (which you might be using if you are following the Embedding in a Drupal Site instructions), then just amend the path to your 'juicebox.js' file and add the baseUrl entry (pointing towards the gallery folder) to the modified embedding code, for example:

<!--START JUICEBOX EMBED-->
<script src="/galleries/gallery1/jbcore/juicebox.js"></script>
<script>
    function loadGallery() {
        new juicebox({
            baseUrl: "/galleries/gallery1/",
            containerId: "juicebox-container",
            galleryWidth: "100%",
            galleryHeight: "600px",
            backgroundColor: "#222222"
        });
    }
    $(document).ready(function() {
        $('#gallery_tab').click(function() {
            loadGallery();
        });
    });
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

However, if you are using the Juicebox Module for Drupal, then putting the embedding code into a JavaScript function and adding custom code to call the function when an element on your web page is clicked is not going to be easy. The module automatically embeds the gallery into your web page and you'd need to modify the module's source code to achieve this.

There are a couple of reasons why this may not be feasible, though.
(1) The Juicebox Module for Drupal was not written by ourselves and, as such, I am not overly familiar with the module's source code (and do not know how easy or difficult such a modification would be). Support for the module would be better directed towards the Drupal forum where the author of the module (Ryan Jacobs) might be able to help further.
(2) The Juicebox Module for Drupal uses a non-standard embedding method (it does not just drop the regular embedding code into the web page) so swapping the module's embedding code for my modified embedding code above is not going to be possible.

If you really need to get this working with your tabs, then I'd recommend following the Embedding in a Drupal Site instructions and using the modified baseUrl code that I posted above. Just make sure that both paths in the code (the path to the 'juicebox.js' file and the baseUrl entry, pointing towards the gallery folder) are correct.

673

(9 replies, posted in Juicebox-Pro Support)

Using fixed size in pixels does indeed fix the loading problem at the cost of responsiveness, but that's too much of a price to pay unfortunately.

It sounds like we're on the right track.

Regarding this suggestion, can you provide any more guidance please?

Sure!

Usually, your embedding could would look something like this:

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

Put the JavaScript section into a function and add an event listener (a click handler) to call the function (to load the gallery) when your 'Gallery' tab is clicked.
If, for example, your 'Gallery' tab has an id="gallery_tab", then your embedding code would look something like this:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
    function loadGallery() {
        new juicebox({
            containerId: "juicebox-container",
            galleryWidth: "100%",
            galleryHeight: "600px",
            backgroundColor: "#222222"
        });
    }
    $(document).ready(function() {
        $('#gallery_tab').click(function() {
            loadGallery();
        });
    });
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

I hope this helps.
However, if you continue to experience difficulties, then please post the URL to your gallery's web page so that I can take a look at your gallery's environment live on your web server and hopefully help further.
Thank you.

674

(9 replies, posted in Juicebox-Pro Support)

It sounds like, when the Juicebox gallery is loaded into the gallery container, the gallery container may exist on the web page but with no dimensions (being that it is not visible until the 'Gallery' tab is clicked). If the gallery has a galleryWidth of '100%' but the gallery container has no dimensions, then the gallery's actual width will be 100% of zero.

One possible solution would be to put the Juicebox embedding code into a JavaScript function and then call the function when the 'Gallery' tab is clicked (after the gallery container has been assigned dimensions).

Another possible solution might be to give your gallery a fixed pixel galleryWidth (for example '800px'), although this will prevent the gallery from being responsive in the horizontal dimension (which may or may not be a problem depending on the design and layout of your web page).

I hope this points you in the right direction.

675

(19 replies, posted in Juicebox-Pro Support)

Thanks for your help.

You're welcome!

I figured it was hidden deep within the juicebox.js script and while it can be pretty printed I wasn't eager to go look.

Whilst you could technically decompress and pretty-print the 'jucebox.js' file, it still probably wouldn't make a lot a sense (a lot of descriptive variable names are changed in the compression process) and modification of the source code is not supported (see this FAQ). We'll need to wait for the developers on this one.

Now to change all those references to the inline script :-)

I hope you've not got too many to do!