@RajabNatash

I notice that you have copied your posts from your Drupal forum thread to this thread. Thank you for posting your findings in this forum.

The bug reported by the original poster (whereby scrolling down a page with an embedded gallery jumps to the top) has been addressed and will be fixed in the next version of Juicebox (although I do not know when it will be released).
If you would like to be notified when new versions are released, then please join the mailing list at the foot of our homepage, follow us on Twitter @JuiceboxGallery or subscribe to our blog RSS feed.

The developers are also aware that 'minimal-ui' has been removed from iOS 8 and this will be taken into account in the next version of Juicebox.

3,227

(6 replies, posted in Juicebox-Pro Support)

Juicebox-Pro is very flexible (with well over 100 configuration options, an API so that the embedding page can interact with the gallery and the ability to use custom icons, themes, fonts and preloader) but it is not possible to add a custom button to the gallery's own Button Bar.
One possible workaround would be to create a custom button on your web page (alongside your gallery) and use the API to fetch information about the currently displayed image (for example to be sent to a social media platform via a share URL).

I ask for refund then, what is the process for it?

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

No problem.
I'm glad it was an easy fix!

That's great!
Thank you for posting back to let me know.

3,230

(14 replies, posted in Juicebox-Pro Support)

It makes it so the gallery can't be previewed in Lightroom but that really makes no difference at all.

Use the following code for the gallery to be displayed in the live preview window. The 'directory' value will be written to the gallery's 'config.xml' file only when the gallery is exported (and not in preview mode).

local dir = ""

for index, value in ipairs(pro_options) do
    if value ~= "" then
        local attrs = explode("=", trim(value), 2)
        if table_length(attrs) == 2 then
            local key = escape(attrs[1]:gsub("%s+", ""))
            local value = escape(trim(attrs[2]):gsub("^([`'\"])(.-)%1$", "%2"))
            if key:lower() == "directory" then
                if mode ~= "preview" then
                    dir = value:gsub("/*$", "") .. "/"
                end
            elseif not lite_options[key:lower()] then
                write("\n" .. key .. "=\"" .. value .. "\"")
            end
        end
    end
end %>
>

<% for index = 1, numImages do %>
    <image imageURL="<%= dir %>images/<%= getImage(index).exportFilename %>.jpg" thumbURL="thumbs/<%= getImage(index).exportFilename %>.jpg" linkURL="<%= getImage(index).metadata.linkURL %>" linkTarget="_blank">
        <title><![CDATA[<%= strip_control_characters(getImage(index).metadata.title) %>]]></title>
        <caption><![CDATA[<%= strip_control_characters(getImage(index).metadata.caption) %>]]></caption>
    </image>
<% end %>

</juiceboxgallery>

If you added some more options to the Lightroom plugin I think that would be a much better alternative to Juicebox builder for most photographers.

You might like to know that we are currently working on a new Lightroom plugin which will feature all Pro configuration options in the interface (removing the need to type them into the 'Pro Options' text area).

3,231

(14 replies, posted in Juicebox-Pro Support)

The ideal solution would be to have a custom field within the interface where you could enter a directory name to be prepended to the image names in the imageURL entries.
What you could perhaps do is enter a value in the Pro Options text area that Juicebox itself does not use such as:

directory="http://cdn.ryansmithphotography.com/juicebox/weddings"

You could then modify the Lightroom plugin's 'config.xml' template file to use this value as the start of each imageURL.
You could also instruct the plugin to not write this value to the configuration options in the opening <juiceboxgallery> tag (although this would not actually make any difference to the gallery as Juicebox would just ignore the custom attribute).

Try the following, which will accept a key named 'directory' in the Pro Options text area.
If you entered:

directory="http://cdn.ryansmithphotography.com/juicebox/weddings"

... into the Pro Options text area, then it would result in an imageURL such as:

imageURL="http://cdn.ryansmithphotography.com/juicebox/weddings/images/image.jpg"

Open the 'juicebox.lrwebengine/config.xml' file in a plain text editor and change lines 89-120 to the following:

local dir = ""

for index, value in ipairs(pro_options) do
    if value ~= "" then
        local attrs = explode("=", trim(value), 2)
        if table_length(attrs) == 2 then
            local key = escape(attrs[1]:gsub("%s+", ""))
            local value = escape(trim(attrs[2]):gsub("^([`'\"])(.-)%1$", "%2"))
            if key:lower() == "directory" then
                dir = value
            elseif not lite_options[key:lower()] then
                write("\n" .. key .. "=\"" .. value .. "\"")
            end
        end
    end
end %>
>

<% for index = 1, numImages do %>
    <image imageURL="<%= dir %>/images/<%= getImage(index).exportFilename %>.jpg" thumbURL="thumbs/<%= getImage(index).exportFilename %>.jpg" linkURL="<%= getImage(index).metadata.linkURL %>" linkTarget="_blank">
        <title><![CDATA[<%= strip_control_characters(getImage(index).metadata.title) %>]]></title>
        <caption><![CDATA[<%= strip_control_characters(getImage(index).metadata.caption) %>]]></caption>
    </image>
<% end %>

</juiceboxgallery>

3,232

(5 replies, posted in Juicebox-Pro Support)

I was actually referring to expanded fullscreen

Thank you for clarifying.
As I'm sure you are aware, the Juicebox fullscreen gallery was designed to completely fill the browser window (or the entire screen if useFullscreenExpand="TRUE"). It was not designed with user modification in mind (for example to reduce its size).
Perhaps the following notes will be of interest.

Everything went smooth so far, but due to the presence of an absolutely positioned element on the left (ca. 50% from top), there's some odd overlapping between full-screen images and this element, which is basically a get-back link not positionable elsewhere.

Your original problem (with overlapping elements) may stem from a known bug whereby elements which have explicitly been assigned a CSS 'position' are not covered by the fullscreen gallery (they should be). This bug has already been addressed and will be fixed in the next version of Juicebox.
In the meantime, a workaround would be to set expandInNewPage="TRUE" so that, when the gallery is expanded, it will be displayed on a page of its own rather than on top of the embedding page.
With the expanded gallery no longer showing any elements from the embedding page, visitors to your web site could then use the Expand/Close Button within the gallery to close the expanded view (to return to the original embedding page) and you could also use the Back Button functionality to add a link within your gallery to whatever web page you like.
I hope this helps.

3,233

(6 replies, posted in Juicebox-Pro Support)

Juicebox was not designed to allow users to add custom buttons to the Button Bar.
Juicebox will expect the Button Bar to be a certain size and in a certain position (determined by the Button Bar configuration options set in the gallery).
If you change the size or position of the Button Bar (using CSS and JavaScrtipt), Juicebox will not know of such modifications and you will encounter problems (such as the one you have reported when resizing the browser window).

Unfortunately, there is no easy solution to your problem as the code controlling what you are looking to change is within the 'juicebox.js' file which is obfuscated and modifying the source code is not supported.
Please see this FAQ: Does Juicebox-Pro include the source code?

You can get the image title and image caption within onImageChange as follows:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
var jb = new juicebox({
    containerId: 'juicebox-container'
});
jb.onImageChange = function(e) {
    var imageTitle = jb.getImageInfo(e.id).title;
    var imageCaption = jb.getImageInfo(e.id).caption;
};
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

Your baseUrl entry is in the wrong place. It needs to be inside the new juicebox({ ... }); section.
Change:

<!--START JUICEBOX EMBED-->
<script src="http://ciproweb.com/sadlerconstructionnc/gallery/jbcore/juicebox.js"></script>
<script>
new juicebox({
containerId: "juicebox-container",
galleryWidth: "100%",
galleryHeight: "100%",
backgroundColor: "rgba(93,93,93,1)"
});
</script>
<div id="juicebox-container"></div>
baseUrl : 'http://ciproweb.com/sadlerconstructionnc/gallery/',
<!--END JUICEBOX EMBED-->

... to:

<!--START JUICEBOX EMBED-->
<script src="http://ciproweb.com/sadlerconstructionnc/gallery/jbcore/juicebox.js"></script>
<script>
    new juicebox({
        baseUrl : 'http://ciproweb.com/sadlerconstructionnc/gallery/',
        containerId: "juicebox-container",
        galleryWidth: "100%",
        galleryHeight: "100%",
        backgroundColor: "rgba(93,93,93,1)"
    });
</script>
<div id="juicebox-container"></div>
<!--END JUICEBOX EMBED-->

3,236

(3 replies, posted in Juicebox-Lite Support)

The problem you are describing sounds like a known bug whereby main images may not display when selected in IE8 and IE9 when imageTransitionType="SLIDE" (which is the default value for imageTransitionType, used by Juicebox-Lite).
This bug has already been addressed and will be fixed in the next version of Juicebox.
If you were a Juicebox-Pro user, a workaround (until the bug is fixed) would be to set imageTransitionType to something other than SLIDE (e.g. FADE, CROSS_FADE, NONE).

The 'Active X' warning is not related to the problem (above) and should be displayed only when the gallery is run locally (from your hard drive) and not when the gallery is uploaded to and run from your web server.
You can disable this warning in Internet Explorer (so that you do not need to click 'Allow Blocked Content') by going to 'Tools -> Internet Options -> Advanced (Tab) -> Security' and selecting 'Allow active content to run in files on My Computer' and clicking 'OK'. (A browser restart will be required.)

3,237

(14 replies, posted in Juicebox-Pro Support)

If you wanted to start each imageURL with a certain string (to denote the start of an absolute path), then you could modify the template file that the Lightroom plugin uses to generate the gallery's 'config.xml' file.
Open the 'juicebox.lrwebengine/config.xml' file in a plain text editor and change the imageURL entry line 114 from:

imageURL="images/<%= getImage(index).exportFilename %>.jpg"

... to something like:

imageURL="http://cdn.ryansmithphotography.com/images/<%= getImage(index).exportFilename %>.jpg"

3,238

(5 replies, posted in Juicebox-Pro Support)

So the question is: is there an easy (i.e. via options) way to set the whole full-screen block, including image and image caption, so that it has ~90% viewport width, ~5% margin-left and right, and of course auto height to preserve image ratio?

As long as you are referring to the normal rather than fullscreen (expanded) gallery display, then you can set the gallery's width to be 90% in the embedding code and horizontally center the gallery's div in its parent container as follows:

<!--START JUICEBOX EMBED-->
<script src="jbcore/juicebox.js"></script>
<script>
new juicebox({
    containerId: 'juicebox-container',
    galleryWidth: '90%'
});
</script>
<div id="parent">
    <div id="juicebox-container" style="margin: 0 auto;"></div>
</div>
<!--END JUICEBOX EMBED-->

No matter what the height of the gallery is, Juicebox will respect the aspect ratio of the main images as long as imageScaleMode is set to SCALE_DOWN or SCALE.

I hope this helps.

Thank you for clarifying the problem.
Please try this version of the plugin. [Link removed.] Hopefully it will resolve the issue.

Thank you for reporting this problem. I will ensure that it is fixed in the next version of the Lightroom plugin.

The default metadataExportMode value has changed from 'All' to 'Copyright Only' but all you need to do to change it to 'All' is scroll down to the 'Metadata' field in the 'Output Settings' section, click on the 'Copyright Only' label (to reveal the drop-down menu) and select 'All'.

3,241

(3 replies, posted in Juicebox-Pro Support)

The code you posted will give the gallery (the 'juicebox-container' div) a z-index value of 9999 (via the 'menu_devant' class) which will force the gallery in front of all elements with a lower z-index value.

Remove the following code from your style-menu2.css file:

 .menu_devant {
 position:absolute;
 z-index:9999;
 }

... and change line 49 (in the 'menu' class section) from:

  z-index : 1;

... to:

  z-index : 9999;

My own tests with your gallery files show that this should work fine.

3,242

(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.

Incidentally, you would have a Transaction Id only if you purchased Juicebox-Pro via PayPal. (You would not have a Transaction Id if you paid with a credit card via Gumroad.)

3,243

(7 replies, posted in Juicebox-Pro Support)

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

3,244

(7 replies, posted in Juicebox-Pro Support)

The 'full.html' file should find the gallery's XML file as specified by your configUrl.

Please make sure that that your gallery uses the current version of Juicebox-Pro (v1.4.2) to ensure that any bugs which were present in previous versions but which have since been fixed are not contributing to your problem.
If necessary, instructions to download the current version and upgrade existing galleries can be found on the Upgrading Juicebox support page.

If this does not help (or is not relevant), then please post the URL to your gallery's web page so that I can take a look and help further.

I'm glad that you have found a solution to your problem.
However, please be aware that shifting gallery elements via CSS can sometimes have unexpected results.
Juicebox will not be aware of such modifications and will expect the gallery elements to be elsewhere. This can sometimes cause problems when resizing a gallery window or when an animation or transition is carried out of the elements which have been shifted.

3,246

(7 replies, posted in Juicebox-Pro Support)

The 'full.html' file contains no PHP code so there is no need to change the extension of the 'full.html' page. A web site can happily contain a mixture of both HTML and PHP files.
In any case, the 'full.html' file cannot be renamed as it is referenced from within the 'juicebox.js' file which is obfuscated and cannot be modified.
Under normal circumstances, there should be no need to modify (rename or move) any files within with 'jbcore' folder.

The 'full.html' file is used when a gallery is expanded on a page of its own. This will happen when expandInNewPage="TRUE" or when expandInNewPage="AUTO" and an iOS device is detected. Please see the Expand Gallery Behavior support section for further information.

3,247

(5 replies, posted in Juicebox-Pro Support)

When using thumbsPosition="TOP", the thumbnail area will be above the main image area. Because your column of thumbnails extends beyond the height of the browser window, the main image will be outside the browser window (the top of the main image will be below the last thumbnail in your column) and will never be visible.
Using thumbsPosition="LEFT" instead (or reducing maxThumbRows from 100 to something much smaller) should hopefully be a suitable solution.

That's great to hear! I hope you enjoy using Juicebox-Pro.
Setting expandInNewPage="TRUE" in JuiceboxBuilder-Pro's 'Customize -> General' section is certainly the easiest way to solve the problem until the next version of Juicebox is released with the bugfix.

3,249

(5 replies, posted in Juicebox-Pro Support)

For the thumbs, I was meaning if there was a way to increase the number of *visible* thumbnails with regard to the percentage area of the page.

Juicebox determines the actual number of thumbnails displayed on the page depending on the size of the thumbnails and the amount of space available within the gallery. You can set only the maximum number of columns and rows using the maxThumbColumns and maxThumbRows configuration options respectively

I found that if I set them to top/left/top, then they extend down the page, but as a result the main image is no longer displayed when I click or mouse-over the thumbnails, so in effect, the page is broken.

This certainly sounds like a bug but I have been unable to replicate it in a test gallery of my own (using Juicebox-Pro v1.4.2).
First of all, please ensure that you are using the current version of Juicebox-Pro (v1.4.2) to ensure that any bugs which were present in previous versions but which have since been fixed are not contributing to your problem.
If necessary, instructions to download the current version and upgrade existing galleries can be found on the Upgrading Juicebox support page.
Also, please try using the stock 'jbcore' folder (with no modifications) and display the gallery on a page of its own to see if any custom CSS code is conflicting with the gallery and causing the problem.
If the problem persists, then please post the URL to your gallery so that I can take a look and investigate further. Thank you.

3,250

(4 replies, posted in Juicebox-Pro Support)

That's great!
Thank you for posting back to let me know.