Topic: Make 2 galleries in separated html

I made an website using simple viewer pro

www.ccsilk.net

At first I made only 1 gallery. It's in 'catalog' menu and there was no problem. Anyway, my boss want me to make second gallery so I copied that 'viewer' folder and only changed name as 'viewer2' so my 'public_html' folder has two forders. (viewer, viewer2) I linked the index.html of viewer2 folder to our logo on the top right side of our web.

But everytime when I try to open the second gallery, It looks like the second gallery has no picture.
Let me post some source of my web these are my menu






<a href="local/mainhome.html" target="home"><img src="images/images/top_11.gif" border="0" width="140" height="25" /></a><a href="local/mainaboutus.html" target="home"><img src="images/images/top_12.gif"border="0" width="142" height="25" /></a><a href="viewer/index.html" target="home"><img src="images/images/top_13.gif" border="0" width="145" height="25" /></a><a href="local/contactus.html"target="home"><img src="images/images/top_14.gif" border="0" width="140" height="25" /></a><a href="viewer2/index2.html" target="home"><img src="images/images/top_03.gif" width="264" height="106" border="0"/></a>






and here is source of index2 of my second gallery







<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Printworks</title>
</head>
<body>
   
    <!--START SIMPLEVIEWER EMBED.-->
    <script type="text/javascript" src="svcore/js/simpleviewer.js"></script>
    <script type="text/javascript">
    simpleviewer.ready(function () {
        simpleviewer.load('sv-container', '100%', '100%', '#e9e0d2', true);
    });
    </script>
    <div id="sv-container"></div>
    <!-- END SIMPLEVIEWER EMBED -->

</body>
</html>





Please help me.

Re: Make 2 galleries in separated html

The gallery's XML file in the 'viewer2' folder has image entries such as:

<image imageURL="prt/IMG_2595.jpg" thumbURL="thumbs/IMG_2595.jpg" linkURL="" linkTarget="">

... so SimpleViewer is looking for the first image at the location:
http://www.ccsilk.net/viewer2/prt/IMG_2595.jpg
... but it does not exist there.
Relative paths are relative to the HTML document containing the embedding code.
Check the location of your images and adjust the paths as necessary .
You could also use absolute paths rather than relative paths for the imageURLs and thumbURLs if you like.
Please see this FAQ for details: http://simpleviewer.net/simpleviewer/su … #trouble_2

Steven Speirs
SimpleViewer Support Team.

Re: Make 2 galleries in separated html

My ftp folder looks like this

<img src="http://cfile5.uf.tistory.com/image/155013334E85CB8B1C2053">

and when I open my 'viewer2' folder, I can see these

<img src="http://cfile23.uf.tistory.com/image/165013334E85CB8B1DC6E0">

and all the pictures I want to show are in 'prt' folder. I can't understand what is wrong...

Anyway, I made 'index2.html' in viewer2 folder because I read somewhere in this forum that you said if the name of 2 pages are same, it doesnt work. Am I right? or it doesnt matter?

Last edited by ivnick (2011-09-30 14:45:09)

Re: Make 2 galleries in separated html

Anyway, I made 'index2.html' in viewer2 folder because I read somewhere in this forum that you said if the name of 2 pages are same, it doesnt work. Am I right? or it doesnt matter?

You cannot have two files of the same name in the same folder.
However, as your 'index.html' and 'index2.html' files are identical, it does not matter which HTML page you open in a browser to view the gallery: both pages have embedding code which use the 'gallery.xml' file in the same folder.
This XML file currently has, as the first entry:

<image imageURL="images/a1.jpg" thumbURL="thumbs/a1.jpg" linkURL="" linkTarget="">

With relative paths being relative to the HTML document containing the embedding code ('index.html' or 'index2.html'), the first image should be located here:
http://www.ccsilk.net/viewer2/images/a1.jpg
Opening this page in a browser gives an error 404 (file not found).
Either the image is not there or perhaps your web host has hotlink protection on your account. Hotlink protection breaks SimpleViewer.
Please see this FAQ for details: http://simpleviewer.net/simpleviewer/su … #trouble_2
I still get an error 404 if substituting 'prt' (the name of your images folder in your screenshot) for images, eg:
http://www.ccsilk.net/viewer2/prt/a1.jpg

Steven Speirs
SimpleViewer Support Team.

Re: Make 2 galleries in separated html

I still get an error 404 if substituting 'prt' (the name of your images folder in your screenshot) for images, eg:
http://www.ccsilk.net/viewer2/prt/a1.jpg

This one cannot be because 'a1' belongs to 'viewer' not 'viewer2'... You can see 'a1' if you put http://www.ccsilk.net/viewer/images/a1.jpg

You mean I can have two 'index.html' and two 'gallery.xml' if I have them each in two different folders?

I changed names of 'index2.html' and 'gallery2.xml' into 'index.html' and 'gallery.xml' then change the path of 'gallery.xml' in viewer2 folder. Also, I rename 'prt'folder as 'images'.

<img src="http://cfile24.uf.tistory.com/image/13798B404E85F19422E6B2">
here is some sources of 'gallery.xml' in 'viewer2' folder


As I've told you before, you can see the second gallery by clicking the logo on the top rightside.

even I have 'images' folder in 'viewer2' folder,
<img src="http://cfile25.uf.tistory.com/image/12798B404E85F19421F697">


You'll see nothing when you open the second gallery.

Why do they cannot show these pictures?

Last edited by ivnick (2011-09-30 17:10:19)

Re: Make 2 galleries in separated html

As 'gallery.xml' is the default name for the XML file (and you did not specify a different XML file using the galleryURL option) this was the file SimpleViewer used. As this was not the XML file you intended for the gallery, the relative paths to the images were incorrect and, thus, the images were not displayed.
Your 'viewer2' gallery is currently using http://www.ccsilk.net/viewer2/gallery.xml and you now have imageURLs such as:
http://www.ccsilk.net/viewer2/images/IMG_2595.jpg
However, opening this address in a browser results in an error 404 (file not found).
This is due to the file extension of the image itself being in uppercase but the file extension in the imageURL being in lowercase.
Your web server is case sensitive.
Use the following instead:
http://www.ccsilk.net/viewer2/images/IMG_2595.JPG

Steven Speirs
SimpleViewer Support Team.