Topic: Help with embedding please?

Hi, wonder if anyone can help - new user!

I have created my gallery and saved it to a sub-folder on my website called "newgallery"
(I did this because I did not want to overwrite my existing "images" folder)
The subfolder "newgallery" contains all of the sv files/subfiles.

I tried to embed the gallery - I created and defined a DIV called sv-container in an existing page on my site.

I modified the embed script to reflect the location of the files:-

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="NEWGALLERY/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "transparent", true );
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

"NEWGALLERY" is only  in caps for emphasis

I have uploaded all the files to my site...but no gallery visible...

Any suggestions please...

PS...I have read the embedding help page...I just don't seem to understand it or be able to work out where I went wrong!
Anyone?
Many Thanks...

Re: Help with embedding please?

You are on the right track. You need to add the 'baseURL' flashvar option to point to your gallery folder. Check here for details: http://www.simpleviewer.net/simpleviewe … l#external

Felix Turner
SimpleViewer Support Team.

Re: Help with embedding please?

"on the right track" ! Phew..thanks Felix I'm going nuts here!

(Not-So-Simple Viewer after all!!!)

Ok, I've added :

var flashvars = {};
flashvars.baseURL = "http://www.MYWEBSITE.co.uk/newgallery/";

and the script now reads:

<!--START SIMPLEVIEWER EMBED.-->
<script type="text/javascript" src="newgallery/svcore/js/simpleviewer.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.baseURL = "http://www.MYWEBSITE.co.uk/newgallery/";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", flashvars, "transparent", true );
});
</script>
<div id="sv-container"></div>
<!-- END SIMPLEVIEWER EMBED -->

But still nothing...
I don't want to beg, but I am beginning to go ever so slightly nuts here!
Thanks!

Last edited by Notator (2011-02-07 00:30:34)

Re: Help with embedding please?

the order is important on the simpleviewer.load() call. The flashvars param is in the wrong place. If that doesn't fix it, please post a URL so we can take a look.

Not-So-Simple Viewer after all!!!

Well its all relative isn't it? smile I think you will find that embedding any other image gallery in your page will take the same amount of work if not more. We have endeavored to make creating and embedding a SimpleViewer gallery as simple as possible. Unfortunately there are always ways for people to cause it not to work!

Felix Turner
SimpleViewer Support Team.

Re: Help with embedding please?

Yay Felix - it was just the order of the flashvar parameter... now working,
Thanks for your help!

Important concept of design I used to teach all my students -
"There is no such thing as muppet-proof"
:-)

In my defence, it doesn't say anywhere I could see that the order was important!

Thanks again for your help, hope this proves useful for others!