Topic: Can't get this to work, no xml file required

I'm having the problem where the xml file isn't being created.  Server is set up correctly.

I also can't get the "absolute path to work either, gives same xml missing message with the default gallery" with this embed code

<!--START SIMPLEVIEWER EMBED.-->
<script src="http://notmyur.com/web/svcore/js/simpleviewer.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
var flashvars = {};
flashvars.baseURL = "http://notmyurl.com/web/";
jQuery(document).ready(function () {
SV.simpleviewer.load("sv-container", "100%", "100%", "222222", true, flashvars);
});
// ]]></script>


***not my url shows correct url

Here's a link http://bit.ly/hk48c6.

Please help.



<!-- END SIMPLEVIEWER EMBED -->

Re: Can't get this to work, no xml file required

It looks like this might be a cross domain issue.
Your gallery is located at the subdomain http://video.blue... but your baseURL is set to http://blue...
As far as Flash is concerned, these are considered different domains and Flash does not allow files to be loaded from a different domain unless explicitly allowed by the owner of the server.
See here for details: http://www.simpleviewer.net/simpleviewe … trouble_11
Try using a relative path for your baseURL or move the gallery folder into the same directory as the HTML page into which the gallery is embedded, which would remove the need for the baseURL option.

Steven Speirs
SimpleViewer Support Team.

Re: Can't get this to work, no xml file required

Hi,

I tried moving the gallery to the main domain and still got the missing xml error message. 

Works fine here, http://bit.ly/gNeQF8 just can't get it to work inside of wordpress page of post.

Could there be a wordpress conflict of some sort? 

Ideally would like to use the plugin, instead of creating galleries from scratch and embedding them.

Re: Can't get this to work, no xml file required

The gallery in your latest link works as there is no baseURL set (so no cross-domain issue).

I notice you have changed the baseURL to a relative path in the gallery in your first link.
However, the embedding code in this gallery includes the line:

<script src="web/svcore/js/simpleviewer.js" type="text/javascript"></script>

... and the 'simpleviewer.js' file is not located there (browsing to the file directly gives an error 404, file not found).
Ensure your complete 'svcore' folder is uploaded to your 'web' directory.

Steven Speirs
SimpleViewer Support Team.

Re: Can't get this to work, no xml file required

I'm not sure why you didn't see the file but it is there if you add the domain name and a / before web/svcore/js/simpleviewer.js. 

So i'm not understanding how to set up the links, can try to troubleshoot why the plugin isn't generating the xml file or can you tell me exactly what to put in the wordpress post it I have a "web" directory setup exactly like the one you guys provide in the download?

Last edited by rcsoo (2011-03-22 19:47:35)

Re: Can't get this to work, no xml file required

I now notice that you have two different sections of embedding code on your page.
It was the first one that I looked at earlier, the one with:

<script src="web/svcore/js/simpleviewer.js" type="text/javascript"></script>

I presume you do not want your URLs visible in this thread so I will not paste the complete URL but the 'simpleviewer.js' file is still not located in the correct place in this first section.

In the second section, you have:

<script type="text/javascript" src="'/wp-content/themes/twentyten/web/svcore/js/simpleviewer.js"></script>

Although the path is correct in this section, you have a single quote immediately before /wp-content which should not be there.

You say in your second post:

Ideally would like to use the plugin, instead of creating galleries from scratch and embedding them.

... but then in your next post you say:

can you tell me exactly what to put in the wordpress post it I have a "web" directory setup exactly like the one you guys provide in the download?

... so I'm not sure which method you'd like to use.

If you use the WP-SimpleViewer WordPress Plugin, then the gallery is created automatically for you (including creating the XML file), with no need for you to manually enter any code into the post (all paths are taken care of).
Instructions for using WP-SimpleViewer can be found here.
If you run into any trouble whilst using the plugin, please let us know at which stage and what happens.

Alternatively, you could create a gallery using svBuilder-Pro (similar to the 'web' gallery from the download package), upload it somewhere using an FTP program and use of of these 2 embedding methods to embed the gallery in a post.
The simplest method would be to upload your gallery folder to the root of your web server and then create a post, select 'HTML' instead of 'Visual' as the input method and then use an <iframe> to load the gallery's HTML index file, entering something like the following into the post:

<iframe src="http://www.example.com/galleryfolder/index.html" width="600" height="600" frameborder="0" scrolling="no"></iframe>
Steven Speirs
SimpleViewer Support Team.

Re: Can't get this to work, no xml file required

All right I got the embed to work. 

Still can't figure out how to get the plugin to generate the xml file.

Re: Can't get this to work, no xml file required

You should not have to do anything to get the plugin to generate the XML file.  It should be generated automatically.
If using the plugin on its own to create a gallery (not using svBuilder and an embed method), does everything work as expected until you view the gallery where you see a 'Galllery XML Not Found' message?
Do you have the /wp-content/uploads/ folder?  If this folder is not present, create it and give it write permissions (777).

Steven Speirs
SimpleViewer Support Team.