Search…

X3 Photo Gallery Support Forums

Search…
 
dgelinas
Topic Author
Posts: 1
Joined: 08 Aug 2007, 11:16

How can I host images from a remote server?

08 Aug 2007, 11:19

I need to separate the site the gallery is hosted on from the site where the images are hosted from. Currently I'm only seeing relative paths that can be created.

How can I config the application to accept absolute URLs for the images so they can be hosted from a different server?

Thanks
 
tenchu400
Posts: 1
Joined: 20 Oct 2007, 21:48

Re: How can I host images from a remote server?

20 Oct 2007, 21:50

dgelinas wrote:I need to separate the site the gallery is hosted on from the site where the images are hosted from. Currently I'm only seeing relative paths that can be created.

How can I config the application to accept absolute URLs for the images so they can be hosted from a different server?

Thanks
Yes, I to have the same question and problem. Can someone please respond.
Thanks
John
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

22 Oct 2007, 04:03

I think this entire issue requires some explanation first:

Imagevue is based on PHP, and for PHP to be able to READ folders and images, it needs to be on the same server. A PHP script can not access or read files or folders which are on a remote server. This means that you can not set Imagevue to simply read images and folders from a remote server, simply because it is not possible.

However, you can run the entire gallery from a remote location, but there are some requirements - Let me clear the definition: The gallery files must be hosted on the same server as the images, but the SWF files may be embedded in your primary server. Here are a few keyword requirements:

# The server hosting the photos, must also host the Imagevue files and scripts.
# The server hosting the photos must support PHP
# The server hosting the photos must include a crossdomain.xml policy file, so that the server which is running the gallery swf files are allowed to access files and scripts. Read more - here -

Lets make an example - You have two servers:
Code
serverA: www.yoursite.com
This is your primary site where you want the gallery to run from (although in reality it will not be hosting the gallery or the photos)
Code
serverB: www.anotherserver.com
This is the server where you have your photos, and therefore must have a functional version of Imagevue running. Lets say the gallery is under www.anotherserver.com/gallery/.

On serverA, you would integrate the gallery from serverB, also making sure to set the globalpath parameter to point to the path of the gallery on serverB. An example of the SWF code would be:
Code
<script type="text/javascript">
	var so = new SWFObject("http://www.anotherserver.com/gallery/imagevue.swf", "imagevue", "100%", "100%", "6", "#FFFFFF");
	so.addVariable("globalpath", "http://www.anotherserver.com/gallery/");
	so.write("imagevue");
</script>
The conclusion here is, that ultimately, you are not reading photos from a remote server, but really running the entire gallery from the remote server. The person viewing the site will not usually see that the gallery is running from a separate site although the statusbar may indicate that the page is loading files from the remote server.

If there are any further questions regarding this, I will be happy to answer.
 
Steve1405
Posts: 2
Joined: 06 Dec 2007, 11:06

08 Dec 2007, 07:52

Did someone of you managed it? Because my gallery don't work, when I do it like described. Maybe someone can send me his gallery, which works with 2 servers.

greetz