1

(1 replies, posted in Juicebox-Pro Support)

I have looked at the pro demo for sharing and got the following, when I clicked the Twitter ICON.

Juicebox-Pro Sharing Demo | Dark Towers | by Felix Turner http://www.juicebox.net/demos/pro/sharing/#1

That would appear to be the

The HTML Page Title
The Image Title
The Image Caption
The Link to the Image Page

Can any of the above be customised/changed and is it possible to add @twitternames and #hashtags to the initial tweet box ?

Thanks

Steven,

Another excellent reply - thank you for your patience.

My difficulty has been, in that I needed to create a different XML file, for every refresh of my main and sole page and I could not see how I could write all those different files to the site with the same name.

It is now clear I can achieve this with a dynamic generation of the XML file from a session variable, which is only applicable to that browser's session.

Your suggested php code is much simpler than I would have achieved.

Many, many thanks

mcl

Excellent - just what I needed.  Tweaked to make the Title and Description different values.

P.jb-caption-title { line-height: 8px; }  /* if multiline would need to be increased */
P.jb-caption-desc {  line-height: 15px; }

Many thanks

I have added the following CSS changes to the Caption Area elements, but I do not seem to have reduced the spacing between the two paragraphs.

My Changes

            .jp-cap-content { margin: 1px; padding: 1px; }
           /*  P.jb-caption-title { font-family: monospace; } */
            P.jb-caption-title { margin: 1px; padding: 1px; text-align: center; }
            P.jb-caption-desc { font-style: italic; text-align: center; }
            P.jb-caption-desc { margin: 1px; padding: 1px; }
            /*  Hide Link to image on separate page */
            div.jb-bb-button:nth-child(2) { display: none; }

Any ideas as to which bit I have got wrong, missed or misunderstood ?

Thanks

Steven,

Many thanks.

I think the mist has finally cleared.

I will need to create the gallery data for the XML in my original PHP and save that in some way (maybe a session variable) and then create a separate config.php to access that saved XML and pass it to the required gallery.

Is a session variable the best way of achieving this process  or is there some other mechanism you could suggest.

Thanks

mcl

Steven,

Thanks for your reply - it was extremely helpful.

I have downloaded JuiceBox Lite and looked at its workings.  It would not run with Chrome locally, but Firefox was OK.

I am very confused and probably naive about the XML.  My basics in HTTP are also very limited.

If I have understood it at all.  You are generating some XML within the page and not as I thought creating a file.

All my HTML page is generated from a PHP script, so if I output an XML block as per your example with the image details, in my whole page script, the Juicebox script will find that XML and act accordingly with the images listed.

My PHP would do the following

Build basics of page
Get List of Images to be shown
add Script juicebox.js
Create overrides for CSS changes to any 'jb' elements
echo XML data block with list of images
add 'new juicebox' script at appropriate point in HTML file, along with any parameter settings.
Complete rest of page

I may not need to reference configURL or set it to "" and I can set baseURL to ""

If I have got the logic/flow right I will try to write some php, which will achieve the required result

Thanks again

mcl

Thanks for the reply.

I am still a bit confused by this XML file logic.  I can understand what the contents are, but I am at a loss to see how the XML file is associated with the web page containing the gallery.  Will I have to generate a different XML file for every gallery used  and how do I name the files, or will I have to use some form of local storage or sessionID.

I think I better download "JuiceBox" and look at the code, to see how it all links together, as I had only tested your DEMO pages to see the results on different devices and most of your documentation, seems to be about generating a gallery in a directory.

As I said previously, the images that make up my gallery can come from different directories.

Thanks again.

mcl

I am interested in using JuiceBox as my gallery on my website pages, particularly as it it supports multiple devices.  I have currently been using Colorbox, but that does not work very well with mobile devices.

I construct the page (from a user selection or search) containing the gallery I wish to display, with PHP and CURL access to a remote site to get the url of the images and associated Title and Caption info I wish to display.

Is there a SIMPLE guide to how this can be achieved ?

I am assuming I will have to create the appropriate javascript code, to your format and have your relevant include files on my server, where the webpages are written and executed.  The images as a result of a query can be in different directories.

Thanks

mcl