426

(1 replies, posted in Juicebox-Pro Support)

First, create a Juicebox gallery with JuiceboxBuilder (the desktop application to create and edit galleries).
You'll find details in the links below.

JuiceboxBuilder Tour: https://www.juicebox.net/tour/juiceboxbuilder/
JuiceboxBuilder User Guide: https://www.juicebox.net/support/juiceboxbuilder/
Getting Started Guide (inc. 5 minute video): https://www.juicebox.net/support/#getting-started

Then, you can either:
(1) View the gallery on a web page of its own by opening the 'index.html' file (inside the gallery folder) in a browser.
... or:
(2) Embed the gallery into an existing web page (alongside other content) by following the instructions in the Embedding Guide: https://www.juicebox.net/support/embedding/

427

(3 replies, posted in Juicebox-Pro Support)

That's great! I'm glad you've got it working.
Thank you for letting me know.

428

(3 replies, posted in Juicebox-Pro Support)

Take a look at the short Adding a Logo support section for ideas as to how you could incorporate a logo into your Juicebox gallery.

If you use Suggestion #3 from the link above, then you can also make the logo into a link by using a Gallery Title such as:

<a href="http://www.example.com/index.html"><img src="mylogo.png"/></a>

As an alternative to using the Gallery Title, you could use the Back Button.
Set and backButtonUseIcon="FALSE" and the backButtonText will be used. instead of the 'home' icon. You can then set the backButtonText to be something like the HTML code above. (Also, be sure to set backButtonPosition to something other than NONE so that the Back Button appears in the gallery.)

For reference, a list of all Back Button options can be found here.
More information on using HTML formatting within the Gallery Title and Back Button can be found in this FAQ:
How do I add HTML formatting to the Gallery Title or Back Button?

I hope this helps.

Instructions to open an existing gallery in JuiceboxBuilder (to edit it):

(1) Click the 'Open Gallery...' button on the 'Start' tab (or select 'Gallery -> Open...' from the drop-down menu at the top of the application).

(2) In the pop-up 'Select Gallery Folder...' dialog window:
Mac - Navigate towards and then double-click the gallery folder.
Windows - Navigate towards and then select (with a single left-click) the gallery folder (not a file within the gallery folder) and click the 'Select Folder' button.

In the 'Select Gallery Folder...' dialog window, it is important that you select the gallery folder itself (and not a file within the gallery folder).
The gallery folder must contain the gallery's configuration file which must be named 'config.xml' (this is what JuiceboxBuilder-Pro looks for).
If you have changed the structure of your gallery since saving it (and use a configUrl or baseUrl to rename or move the configuration file), then JuiceboxBuilder-Pro will not be able to open the gallery.

NB
In the 'Select Gallery Folder...' dialog window, you'll just see folders (that you can navigate within to find the gallery folder, if necessary) but no files.

@mustard

Technically, there really is no limit to the number of galleries that you can have on a single web page. (There is no hard-coded limit built into Juicebox.)

The final one simply won't work and opens up an earlier gallery.

This sounds like a coding problem (maybe a duplicated baseUrl or configUrl).
Please post back with the URL to your web page so that I can see the problem for myself and hopefully help further.

Incidentally, when embedding multiple galleries, the 'juicebox.js' file should be loaded just once (i.e. once per web page rather than once per gallery). If you currently load the 'juicebox.js' file once per gallery, then leave the first instance and remove al others.

431

(5 replies, posted in Juicebox-Pro Support)

That's great! Thanks for letting me know.

432

(5 replies, posted in Juicebox-Pro Support)

Thank you for the update. I'm glad you've been able to resolve your Lite/Pro problem.

Unexpected token '<'

You have two opening <script> tags one after another: one on line 97 and the other (after a few blank lines) on line 103.
After the initial opening <script> tag, the browser is expecting some JavaScript code but, instead, it encounters the '<' character of the next opening script> tag which is where the error is coming from.
Just remove one of these opening <script> tags and all should be well.

If you'd like to check your web page for any other HTML errors, you can feed your web page's URL to the W3C Markup Validation Service (and then fix any errors reported).

433

(5 replies, posted in Juicebox-Pro Support)

... have replaced the  'jbcore' folder with the 'jbcore' folder from the Juicebox-Pro download zip package...

Please try again. It looks like your replacement has not been successful.
The Juicebox logo is present in all Lite galleries but is never present in any Pro galleries.
If you view your web page's 'juicebox.js' file online directly in a browser (https://www.eu-atlas.org/jbcore/juicebox.js), you'll see in the comments at the top of the file that it is still the 'Lite' version.

When you replace the 'jbcore' folder on your web server, make sure that your FTP program is set to overwrite existing files.
If you are in any doubt as to whether or not your existing files are actually being replaced, then try deleting the Lite 'jbcore' folder from your web server first before uploading the Pro version in its place.

Once the Pro 'jbcore' folder is in place on your web server, the Juicebox logo will disappear from all of your galleries.

Please let me know how you get on and if I can be of any further assistance.
Thank you.

434

(7 replies, posted in Juicebox-Pro Support)

That's a strange solution, for sure, but I'm glad that it worked for you. Thank you for letting me know.

Incidentally, I just reinstalled Windows 10 myself last week (a clean install) and did not have to adjust my system clock to install JuiceboxBuilder-Pro so I'm really not sure what the cause of the problem is.
In any case, I'm glad you've got it working.

435

(7 replies, posted in Juicebox-Pro Support)

@billparslow

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

First of all, please let me reassure you that JuiceboxBuilder-Pro is fully compatible with Windows 10. (I am currently running JuiceboxBuilder-Pro v1.5.1 on Windows 10 Version 2004 OS Build 19041.508 without any issues.)

If you are able to extract the 'juicebox_pro_1.5.1.zip' file without any errors, then it is unlikely that your 'JuiceboxBuilder-Pro.air' installation file is actually damaged.
However, if you would like to ensure that your JuiceboxBuilder-Pro installation file is not corrupt, then you can check that it has the following properties:

Name: JuiceboxBuilder-Pro.air (v1.5.1)
Filesize: 1,390,776 bytes
MD5: 1030cd51905c5e432f4d57a7bfa4e203
SHA1: 0790b8df79efaf6f0b89624884252fd07001149e

You can check the MD5 and SHA1 hashes of files with a free program such as HashCalc.

If you have already tried the full uninstall/reinstall procedure noted above, then further troubleshooting tips for JuiceboxBuilder can be found in this forum post.

The suggestions in the post which I think are most relevant to your problem (and which I'd certainly try myself) are #4 (regarding the location of the JuiceboxBuilder-Pro installation file), #8 (using an older version of Adobe AIR), #9 (regarding anti-virus programs) and #10 (regarding the system clock).

Additional Notes:

#8 Adobe Air

You might like to try using an older version of AIR. I would not normally recommend using older software but it may help in this instance.
A couple of users who have had trouble installing JuiceboxBuilder-Pro recently have had success doing this so it might be worth trying.

JuiceboxBuilder-Pro requires Adobe AIR v2.0 or later so you could try a version such as Adobe AIR v20.0.
Links to older versions of Adobe AIR can be found on Adobe's archive page here.
Here is a direct links to Adobe AIR v20.0 for Windows.

If this helps and allows you to install JuiceboxBuilder-Pro, then you should be able to upgrade AIR in-place afterwards (without needing to uninstall the existing version first).

#10 System Clock

Try setting your system clock back two years before attempting the install.
As unlikely as it sounds, it seems to have helped a couple of other users who have reported similar issues.
You can reset your clock to the correct time after the install.

I hope that these suggestions help you to successfully install JuiceboxBuilder-Pro.
Please let me know how you get on and if I can be of any further assistance.

436

(16 replies, posted in Juicebox-Pro Support)

You're welcome!
I hope you get on OK with your other galleries.
I'll mark this thread as [SOLVED] but if you run into any further problems, just create a new thread and I'll do my best to help you out.

437

(7 replies, posted in Juicebox-Pro Support)

The other code should work fine. (I tested it myself under PHP 7.4.10 before posting it.)  Maybe scandir() has been disabled in your web server's PHP configuration.
Anyhow, I'm glad that my other suggestion worked for you.
Thank you for posting back to let me know. It's most appreciated!

438

(16 replies, posted in Juicebox-Pro Support)

OK, as far as I know the cap issue is corrected.

Yes, your gallery at http://davebreen.com/jhbsocber20.html now displays correctly. If you do not see your gallery at this address, then please completely clear your browser's cache before reloading your gallery's web page to ensure that your browser is fetching the current files from your web server (and not using older, cached versions from your computer's hard drive).
(The gallery is working so if you do not see it, the issue if most likely a browser caching issue.)

I read somewhere about updating PHP (I don't know what that is), and BlueHost indicated I was using 7.0 which was deprecated, so I updated to 7.3.

PHP is a server-side scripting language. Some web pages may contain PHP code. The PHP code is processed on your web server before the web page is delivered to the user's browser. This allows for a dynamic (rather than just a static) website.
If any of your web pages use PHP, then you'll need to have PHP installed on your web server.
For example, WordPress is a PHP web application which requires PHP. It will not work without PHP.
Juicebox-Pro requires PHP for two functions, namely the Download Button and Password Protection. PHP 5.2 or later is required for these functions but, if you do not use them, then your Juicebox gallery will run quite happily without PHP being available.

When I enter davebreen.com/jhbsocatl20.html I get a WordPress "coming soon" page.

When you visit any URL which does not exist on your web server, your web server defaults to displaying the "WordPress Coming Soon" page as your site's error 404 (file not found) page. You can change this error 404 page if you like but you'll need to find out where it is being set on your web server. (Your web host should be able to help you out with this.)

I did install WP in case I needed it, but have not created any pages in it.

WordPress is a PHP web application which allows users to create a website or blog online in a web browser interface.
You do not need WordPress installed in order to have Juicebox galleries on your website.
However, if you do use WordPress, then there is a dedicated Juicebox plugin for WordPress (WP-Juicebox) which allows you to create and embed galleries into WordPress pages and posts from within the WordPress interface (without having to build your galleries on your computer with JuiceboxBuilder).
If you do not want to use WordPress for your website, then there is absolutely no need for it in order to have Juicebox galleries.

I don't know how to uninstall it.

If you installed WordPress through your online hosting account's control panel, then there may be a way to uninstall it through the control panel, too. I'd investigate this first (ask your web host, they'll know) before you start manually deleting any files.

I don't find a way to disable caching, but have not contact BH yet.

From what I've seen of your website and the changes you've made, I do not see any evidence of server-side caching but if you make any changes and don't see them immediately, then it's just something to bear in mind which might be causing the problem.

The necessary files seem to be in place, so I have no idea why it isn't working.

As I mentioned above, your http://davebreen.com/jhbsocber20.html gallery is now displaying and functioning fine and if you don't see it yourself, then please try clearing your browser's cache before reloading your gallery's web page.

I hope my notes above help to clarify a few things.
If you are having trouble with any other galleries, just post links to them and I'll try to help further.

439

(7 replies, posted in Juicebox-Pro Support)

Just changing the line:

$ret[count($ret)]=$file;

... to:

$ret[]=$file;

... should hopefully resolve your problem (and be backwards compatible with older versions of PHP).

Edit:
In fact, here's an alternative one-liner for the entire GetDirArray function:

function GetDirArray($folder)
{
    return array_diff(scandir($folder), array('.', '..'));
}

440

(1 replies, posted in Juicebox-Pro Support)

As far as I can recall, the minimum Adobe AIR requirement for JuiceboxBuilder is AIR v2.0 or later so you should hopefully be able to download the last version of AIR for Linux (v2.6) from the Adobe AIR archive web page and install JuiceboxBuilder under this version of AIR.
Here's a direct link to Adobe AIR v2.6 for Linux (from the link above).
I hope this helps.

441

(16 replies, posted in Juicebox-Pro Support)

It looks like there's a typo in your baseUrl entry.
Change:

baseURL: "jhbsocer20/",

... to:

baseURL: "jhbsocber20/",

I don't know if changes take a while to appear.

Changes can take a while to appear if your web server employs server-side caching.
If you find that changes do not take effect immediately, then ask your web host if they would be willing to disable server-side caching on your hosting account. (You might be able to change this yourself in your hosting account's online control panel.)

442

(16 replies, posted in Juicebox-Pro Support)

It looks like the folder name on your server is still 'JHBsocBer20'.
If you are changing all path references to lowercase, then you'll need to change this folder name to 'jhbsocber20', too
Everything else looks to be in place and I don't think you should be having any issues specifically because of Blue Host.
Hopefully, once you rename your gallery folder to lowercase, your gallery should display as expected.

443

(16 replies, posted in Juicebox-Pro Support)

I guess caps DO matter.

Yes. Most web servers are case-sensitive so 'JHBsocBer20' (for example) is different to 'jhbsocber20'.
In your http://davebreen.com/JHBsocBer20.html page, you have the following line in your gallery's embedding code:

<script src="jhbsocber20/jbcore/juicebox.js"></script>

Therefore, the browser is trying to load the 'juicebox.js' file from this location: http://davebreen.com/jhbsocber20/jbcore/juicebox.js
... but the file is not there.
The line of code should be:

<script src="JHBsocBer20/jbcore/juicebox.js"></script>

Also, your baseUrl entry should be:

baseURL: "JHBsocBer20/",

I hope this helps and points you in the right direction.

444

(7 replies, posted in Juicebox-Pro Support)

Thank you for the links to your galleries.

I see that you are using a custom PHP file (named 'config.php')  to dynamically generate your gallery's XML data.
The problem lies somewhere within this file (which is not part of the Juicebox package).
There is something within this file that is not compatible with PHP 7.2 onwards.

Unfortunately, I do not have access to your 'config.php' file to inspect its code but opening it directly in a browser reveals the following warning:

Warning:  count(): Parameter must be an array or an object that implements Countable in config.php on line 10

Your use of the PHP count() function (whatever it may be) on line 10 is listed in the 'Backward incompatible changes' on the 'Migrating from PHP 7.1.x to PHP 7.2.x' support page here.

An E_WARNING will now be emitted when attempting to count() non-countable types (this includes the sizeof() alias function).

In order for your 'config.php' file to be compatible with PHP 7.2 onwards, you'll need to find a new PHP method to count whatever it is that you are counting.

I hope this points you in the right direction.
If you continue to experience difficulties, then please zip and upload your 'config.php' file somewhere (and provide a download link) so that I can inspect the code and hopefully help further.
Thank you.

445

(16 replies, posted in Juicebox-Pro Support)

I expect that the problem is likely to be a path issue (a file missing or in the wrong place on your web server).
Please check that all your gallery files have been uploaded successfully to your web server and ensure that the paths in the gallery's embedding code are correct.
If you continue to experience difficulties, then please post back with a link to your gallery's web page so that I can see the problem for myself and help further.
Once I'm able to see the problem live on your web server, I should hopefully be able to determine the exact cause of the problem and propose a solution.
Thank you.

446

(1 replies, posted in Juicebox-Pro Support)

Yes. Please see the following link for details: Using an External jbcore Folder

Essentially, you can upload a single instance of the 'jbcore' folder to anywhere you like on your web server and then load the 'juicebox.js' file from within this folder at the start of each gallery's embedding code. (Details are in the link above.)

This has the added advantage of allowing you to upgrade all your galleries at once (when new versions of Juicebox are released) by just replacing a single 'jbcore' folder.

447

(7 replies, posted in Juicebox-Pro Support)

That's very strange...

With the exception of the Download Button (showDownloadButton="TRUE") and Password Protection (usePassword="TRUE"), Juicebox-Pro does not need or use PHP at all.

I have just uploaded two test galleries to my own web space (one with both the Download Button and Password Protection and one with neither) and they both run fine under PHP 7.2.33, 7.3.22 and PHP 7.4.10.

I think there must be something else going on when you switch PHP versions as PHP is not required for a gallery's configuration file to be found.

If possible, please post back with a link to the gallery in question (under PHP 7.2, PHP 7.3 or PHP 7.4) so that I can see the problem for myself and investigate further.

Thank you.

448

(6 replies, posted in Juicebox-Pro Support)

You're welcome!

449

(6 replies, posted in Juicebox-Pro Support)

I see your two images now display correctly.
I'm not sure what the problem was but you certainly seem to have resolved it. Thank you for posting back to let me know.
I'll mark this thread as SOLVED but please post back if you see any further odd behavior. Thank you.

450

(6 replies, posted in Juicebox-Pro Support)

I don't know what is causing your problem but I do not think that it is a coincidence that the two images that do not display have the keyword "hidden" in their titles.
I have tried setting flickrShowTitle="FALSE" and flickrShowDescription="FALSE" to no avail.
I'd try actually changing the titles of these images to remove the word "hidden" (at least temporarily, for testing purposes) to see if this is, indeed, the cause of your problem.
If this does resolve your problem, then maybe you could use a term other than "hidden" (perhaps something like "secret" instead).

I'll try to figure out exactly what is causing this problem (whether it is a Flickr or Juicebox issue) to see if it can be resolved without changing your image titles.
I'll post back here once I've had a chance to investigate further.

Incidentally, I've just created a test Juicebox gallery using local images with the word "hidden" in their titles and captions and the gallery displays all images so, at the moment, it does not look like a Juicebox issue (at least not with local images).

I've also just added the word "hidden" to one of my own Flickr images (in the title and description) and a new Juicebox test gallery displays this image without any problem.

Very strange...
I'd certainly try removing all instances of "hidden" from your own images and, failing that, try reuploading them to Flick (as additional images and/or replacing the current images) to see if this helps.

I'll take another look at this later on when I have more time.
I hope you get on OK in the meantime. Please keep me posted with any updates on your troubleshooting. Thank you.