<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Juicebox Support Forum — Multiple galleries embedding issue]]></title>
		<link>https://juicebox.net/forum/viewtopic.php?id=4817</link>
		<atom:link href="https://juicebox.net/forum/extern.php?action=feed&amp;tid=4817&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Multiple galleries embedding issue.]]></description>
		<lastBuildDate>Sun, 28 Jul 2019 11:54:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16685#p16685</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>... that worked nicely...</p></blockquote></div><p>Thank you for trying this. This suggests that incorrect paths or rewrite rules are not the cause of your problem.</p><p>Thank you also for reinstating your &#039;shumbatestgallery&#039; gallery folder and for changing the embedding code in in your gallery&#039;s web page.<br />I have taken another look at your gallery&#039;s web page and see that the gallery is actually being embedded correctly.<br />It is just not visible because the gallery has a width of 100% but it is nested within a &lt;td&gt; element on your web page which has a width of 4px (so the gallery&#039;s actual width on your web page is 100% of 4px which is 4px).<br />If you want to continue using a gallery width of 100%, then you&#039;ll need to ensure that your gallery&#039;s parent containers all have widths (set via CSS) large enough to accommodate a gallery (much larger than 4px).<br />(I mentioned a similar problem above with heights as heights usually need to be defined whereas widths usually have a default value of 100%.)<br />Otherwise, if your table has a fixed width, then you might like to give your gallery a fixed width, too (although sorting out the dimensions of your table elements might be a better option, especially if your table is responsive and you want your gallery to be responsive, too).</p><p>Here are two possible solutions (which might require further tweaking depending on the layout of your page and the current dimensions of your gallery&#039;s parent containers).</p><p><span class="bbu"><strong>#1 Give your gallery a fixed width</strong></span><br />It looks like your gallery&#039;s parent &lt;td&gt; container currently has a width of 604px so try the following embedding code:<br /></p><div class="codebox"><pre><code>&lt;!--START JUICEBOX EMBED--&gt;
&lt;script src=&quot;/shumbatestgallery/jbcore/juicebox.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
    new juicebox({
        baseUrl: &quot;/shumbatestgallery/&quot;,
        containerId: &quot;juicebox-container&quot;,
        galleryWidth: &quot;604&quot;,
        galleryHeight: &quot;600&quot;,
        backgroundColor: &quot;rgba(34,34,34,)&quot;
    });
&lt;/script&gt;
&lt;div id=&quot;juicebox-container&quot;&gt;&lt;/div&gt;
&lt;!--END JUICEBOX EMBED--&gt;</code></pre></div><p>... or:</p><p><span class="bbu"><strong>#2 Give the &lt;table&gt; that the gallery is nested within a width of 100% via CSS</strong></span><br />Leave your gallery&#039;s width at 100% and add the following to the &lt;head&gt; ... &lt;/head&gt; section of your gallery&#039;s web page:<br /></p><div class="codebox"><pre><code>&lt;style&gt;
    table {
        width: 100%;
    }
&lt;/style&gt;</code></pre></div><p>I hope this helps.</p>]]></description>
			<author><![CDATA[null@example.com (Steven @ Juicebox)]]></author>
			<pubDate>Sun, 28 Jul 2019 11:54:31 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16685#p16685</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16684#p16684</link>
			<description><![CDATA[<p>Hi Steven,</p><p>Thanks for your patience and your tips. I went back and reinstated the original gallery folder and used the code you initially provided but had no luck again, the gallery still isn&#039;t visible. Then I tried the sample gallery and the test html page as you suggested and that worked nicely <a href="http://ridgeback-douala.net/test_file.html">http://ridgeback-douala.net/test_file.html</a> </p><p>I went to the Console in Chrome to see if I can find any errors but it showed none (&quot;No Errors&quot; message).</p><p>Unfortunately, I&#039;m afraid solving this probably goes beyond my skills.</p><p>Thanks again.</p>]]></description>
			<author><![CDATA[null@example.com (drskameg)]]></author>
			<pubDate>Sat, 27 Jul 2019 22:11:37 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16684#p16684</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16683#p16683</link>
			<description><![CDATA[<p>Thank you for trying my suggestion but I notice that the paths in your embedding code are incorrect.<br />I meant for you to try the exact code I posted above (rather than just adding a leading slash to your full https:// path).<br />Please try again using the code I posted above.</p><p>Incidentally, I notice that you seem to have removed your &#039;shumbatestgallery&#039; gallery folder and have replaced it with a &#039;shumbatestgallery1&#039; gallery folder which seems to an incomplete gallery folder (it does not contain a &#039;config.xml&#039; file).</p><p>If reinstating your original &#039;shumbatestgallery&#039; gallery folder and using the code from my previous post does not work, then please try the following.</p><p>(1) Create a sample gallery in JuiceboxBuilder-Pro and save it to a new empty folder named &#039;my_gallery&#039;.<br />(2) Upload the entire &#039;my_gallery&#039; folder to your root directory.<br />(3) Create a new HTML file in a plain text editor containing the code below and name it &#039;test_file.html&#039;.<br /></p><div class="codebox"><pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
    &lt;title&gt;Juicebox-Pro Gallery&lt;/title&gt;
    &lt;meta charset=&quot;utf-8&quot; /&gt;
    &lt;meta name=&quot;viewport&quot; id=&quot;jb-viewport&quot; content=&quot;width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1, user-scalable=0&quot; /&gt;
    &lt;style type=&quot;text/css&quot;&gt;
    body {
        margin: 0px;
    }
    &lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;!--START JUICEBOX EMBED--&gt;
    &lt;script src=&quot;/my_gallery/jbcore/juicebox.js&quot;&gt;&lt;/script&gt;
    &lt;script&gt;
    new juicebox({
        baseUrl: &quot;/my_gallery/&quot;,
        containerId: &quot;juicebox-container&quot;,
        galleryWidth: &quot;100%&quot;,
        galleryHeight: &quot;100%&quot;,
        backgroundColor: &quot;#222222&quot;
    });
    &lt;/script&gt;
    &lt;div id=&quot;juicebox-container&quot;&gt;&lt;/div&gt;
    &lt;!--END JUICEBOX EMBED--&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre></div><p>(4) Upload the &#039;test_file.html&#039; file to your root directory (alongside your &#039;my_gallery&#039; folder).<br />(5) You should now be able to view the gallery on its own web page by visiting <a href="https://www.ridgeback-douala.net/test_file.html">https://www.ridgeback-douala.net/test_file.html</a></p><p>This should test the <strong>baseUrl </strong>functionality on your web server.</p><p>If this test scenario <span class="bbu">works</span>, then something on your own gallery&#039;s embedding page may be causing the problem.<br />Load your own gallery&#039;s embedding page and check your browser&#039;s developer tools for JavaScript errors, custom CSS which might be hiding the gallery or HTML elements which might be obscuring the gallery.</p><p>If this test scenario <span class="bbu">does not work</span>, then something on your web server may be causing the problem.<br />Check to see if you have an &#039;.htaccess&#039; file on your web server with any rewrite rules which might be interfering with the gallery files.</p><p>I hope this points you in the right direction.</p>]]></description>
			<author><![CDATA[null@example.com (Steven @ Juicebox)]]></author>
			<pubDate>Fri, 26 Jul 2019 22:49:13 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16683#p16683</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16682#p16682</link>
			<description><![CDATA[<p>Hi Steven,</p><p>I&#039;ve followed your instructions but unfortunately, it still doesn&#039;t work. The gallery just won&#039;t appear on the page. Any other suggestions?</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (drskameg)]]></author>
			<pubDate>Fri, 26 Jul 2019 21:26:20 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16682#p16682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16681#p16681</link>
			<description><![CDATA[<p>Hi Steven,</p><p>Thank you so much for replying. I&#039;ll go try your suggestion now and will let you know how it goes.</p><p>Thanks again!</p>]]></description>
			<author><![CDATA[null@example.com (drskameg)]]></author>
			<pubDate>Fri, 26 Jul 2019 20:26:53 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16681#p16681</guid>
		</item>
		<item>
			<title><![CDATA[Re: Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16678#p16678</link>
			<description><![CDATA[<p>I notice that you use absolute paths in your embedding code starting with http:// but you quote your website URL with an https:// link.</p><p>Try using relative paths in your embedding code starting with leading slashes (to denote your root directory).<br />This should work with both http:// and https:// (and also for accessing your domain with and without the www subdirectory).</p><p>Also, as you currently use a <strong>galleryHeight </strong>of 100%, this means that the gallery&#039;s actual height will be 100% of the height of the gallery&#039;s parent container so be sure to assign your gallery&#039;s parent container a height via CSS (otherwise Juicebox might not be able to determine what the gallery&#039;s actual height should be).<br />Try setting a <strong>galleryHeight </strong>of 600px, at least for testing purposes, to be sure that the gallery has valid dimensions and will be visible once the path problems have been ironed out.</p><p>Try the following:<br /></p><div class="codebox"><pre><code>&lt;!--START JUICEBOX EMBED--&gt;
&lt;script src=&quot;/shumbatestgallery/jbcore/juicebox.js&quot;&gt;&lt;/script&gt;
&lt;script&gt;
    new juicebox({
        baseUrl: &quot;/shumbatestgallery/&quot;,
        containerId: &quot;juicebox-container&quot;,
        galleryWidth: &quot;100%&quot;,
        galleryHeight: &quot;600&quot;,
        backgroundColor: &quot;rgba(34,34,34,)&quot;
    });
&lt;/script&gt;
&lt;div id=&quot;juicebox-container&quot;&gt;&lt;/div&gt;
&lt;!--END JUICEBOX EMBED--&gt;</code></pre></div><p>Hopefully this will help.<br />Please let me know how you get on. Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (Steven @ Juicebox)]]></author>
			<pubDate>Thu, 25 Jul 2019 21:59:42 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16678#p16678</guid>
		</item>
		<item>
			<title><![CDATA[Multiple galleries embedding issue]]></title>
			<link>https://juicebox.net/forum/viewtopic.php?pid=16676#p16676</link>
			<description><![CDATA[<p>Hi there,</p><p>I&#039;ve been using Simpleviewer for years but decided to move onto Juicebox due to Flash issues. So before I went and bought Juicebox Pro, I wanted to check out Lite version first.</p><p>I need to embed multiple galleries into various html pages on my website (no need for multiple galleries on single page), so I&#039;m trying to do that by using baseURL.</p><p>Here are my steps:</p><p>1) I created a folder named shumbatestgallery, created a gallery in Juicebox Builder and uploaded the entire folder to my website&#039;s root, i.e. public_html using FileZilla.</p><p>2) When I check the gallery on the website, it&#039;s showing, please see the link below:</p><p><a href="https://www.ridgeback-douala.net/shumbatestgallery/">https://www.ridgeback-douala.net/shumbatestgallery/</a></p><p>3) I edited the code created by Juicebox Builder to include the baseURL (I tried to follow the guide, plus I used some of the things I used for Simpleviewer). The code is below:</p><p>&lt;!--START JUICEBOX EMBED--&gt;<br />&lt;script src=&quot;http://www.ridgeback-douala.net/shumbatestgallery/jbcore/juicebox.js&quot;&gt;&lt;/script&gt;<br />&lt;script&gt;<br />new juicebox({<br />baseUrl : &#039;<a href="http://www.ridgeback-douala.net/shumbatestgallery/">http://www.ridgeback-douala.net/shumbatestgallery/</a>&#039;,<br />containerId: &quot;juicebox-container&quot;,<br />galleryWidth: &quot;100%&quot;,<br />galleryHeight: &quot;100%&quot;,<br />backgroundColor: &quot;rgba(34,34,34,)&quot;<br />});<br />&lt;/script&gt;<br />&lt;div id=&quot;juicebox-container&quot;&gt;&lt;/div&gt;<br />&lt;!--END JUICEBOX EMBED--&gt;</p><p>4) Then I pasted the above code into the html page on which I want the gallery to appear (I use KompoZer to build my pages), shumbatestgallery.html</p><p>5) I uploaded the above page to my website&#039;s root, the same folder that now contains the gallery folder.</p><p>But when I check the page in Chrome, the gallery is now showing. There&#039;s literally nothing, I can just see that the page has expanded, as if new content was added, but no sign of the gallery. When I try to open it up in IE, there&#039;s a light gray box with the following error message: Juicebox Error: Config file not found.</p><p>Please see the link to the page below:</p><p><a href="https://www.ridgeback-douala.net/shumbatestgallery.html">https://www.ridgeback-douala.net/shumbatestgallery.html</a></p><p>I have no idea what I&#039;m doing wrong here (granted, I&#039;m no expert, just self-thought enthusiast that has no clue what she&#039;s doing ;-) ). Any help would be greatly appreciated.</p><p>Kind regards, Milica</p>]]></description>
			<author><![CDATA[null@example.com (drskameg)]]></author>
			<pubDate>Thu, 25 Jul 2019 21:38:29 +0000</pubDate>
			<guid>https://juicebox.net/forum/viewtopic.php?pid=16676#p16676</guid>
		</item>
	</channel>
</rss>
