Search…

X3 Photo Gallery Support Forums

Search…
 
Genia
Topic Author
Posts: 10
Joined: 09 Apr 2010, 00:33

Problem to load files through textpage

09 Apr 2010, 01:00

First of all I would like to say that your gallery is amazing, it has an impressive look and its easy to use. Now to the question :)


When I am trying to load a flash file using the textpage with a next command: <img src="example.swf" height="600" width="700">
It doesn't work and it's not presenting the file.

However if I load it as: <img src="http://localhost/album/content/example/example.swf" height="600" width="700">
It will work but it will not find all the *.php scripts (for example all the guestbook scripts files)

The text page that I created is in the same folder as the flash file( example.swf)
What can be the problem?

I am using WampServer 2.0 on local machine.
Thank you very much,
Genia
 
User avatar
Thunderclap
Posts: 10
Joined: 04 Apr 2010, 04:40

09 Apr 2010, 02:25

As textpages are imported into the gallery-flash and not opened in the browser from their original location, the base-directory is always the base directory of your gallery!

So if you like to reference a file within the textpagefolder, you will have to link to content/example/example.swf instead of just the filename.

(it is a bit confusing if you come from standard html, but logical if you think about it ;) I also took a while until i noticed my mistake ;) )
visit my gallery: [url]http://www.vysions.de[/url]
 
Genia
Topic Author
Posts: 10
Joined: 09 Apr 2010, 00:33

09 Apr 2010, 08:11

I've created Textpage in the base directory of my gallery in: C:\wamp\www\album\content\example (this directory also include all the relevant flash and php files)

I tried to run it as <img src="/content/example/example.swf" height="600" width="700"> but it still doesn't work
Thunderclap wrote:As textpages are imported into the gallery-flash and not opened in the browser from their original location, the base-directory is always the base directory of your gallery!

So if you like to reference a file within the textpagefolder, you will have to link to content/example/example.swf instead of just the filename.

(it is a bit confusing if you come from standard html, but logical if you think about it ;) I also took a while until i noticed my mistake ;) )
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

09 Apr 2010, 11:28

What he is trying to say, is that your custom load calls from your example.swf must be wrong. They should be relative to the root location of your embedded gallery. NOT related to the location of the SWF and NOT related to the location of the textpage folder.
 
Genia
Topic Author
Posts: 10
Joined: 09 Apr 2010, 00:33

09 Apr 2010, 13:50

Thank you, I got it!