Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Nondo
Posts: 23
Joined: 22 Mar 2007, 17:05

03 May 2007, 20:16

I don't know what I'm over looking but I'm unable to get the page component to work when I call it from another folder. It works just fine when everything is in the same folder.

Example: I want www.nondo.net to display the page component but my Imagevue contents are located in www.nondo.net/upload/ .

<a href="http://www.nondo.net/okay.php">Here</a> is the file I've been messing with.
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 14452
Joined: 30 Sep 2006, 03:37

04 May 2007, 04:29

The issues you are having, are simply related to paths. There are 4 "flaws" in your new page http://www.nondo.net/okay.php :

1) Since you have moved the file, the path to the javascript in the source is incorrect. You are using:
Code
src="javascript/swfobject_source.js"
It should be:
Code
src="upload/javascript/swfobject_source.js"
2) You have not included a "div" tag block in your sourcecode for where the javascript is supposed to create the slideshow swf. In our default slideshow.php file, we have:
Code
<div id="slideshow">www.photo.gallery slideshow module</div>
...
so.write("slideshow");
In your code, you are completely missing the necessary <div id="slideshow"> tag where the slideshow is created from the javascript.

3) The path to the swf is "nearly" correct. You are using:
Code
var so = new SWFObject("./upload/slideshow.swf" ...
It should be:
Code
var so = new SWFObject("upload/slideshow.swf" ...
You should use relative paths, and not root-relative because flash may not understand this.

4) Finally, you need to add the globalpath parameter, so that the slideshow understands the true location of the slideshow files and scripts. To your source, add the following line:
Code
so.addVariable('globalpath','upload/');
Fix these issues, and your slideshow should work as a dream! :D
 
User avatar
Nondo
Posts: 23
Joined: 22 Mar 2007, 17:05

04 May 2007, 15:49

Thanks mjau! It worked great.

In case anyone else needs to know, the only other thing I had to change was to remove the path from my configfile, so it should read like the default:
Code
so.addVariable('configfile','ss_pagecomponent.ini');
 
Betjenten
Posts: 9
Joined: 23 Oct 2006, 09:29

Change size of slideshow

16 Mar 2008, 17:16

For some reason I can't figure out how to change the size of the slideshow? I want to make it smaller than the standard setting.

And is it possible to use both image that are wider than the height and vice versa in the same slideshow?
 
User avatar
mjau-mjau
X3 Wizard
Topic Author
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Change size of slideshow

18 Mar 2008, 23:24

Betjenten wrote:For some reason I can't figure out how to change the size of the slideshow? I want to make it smaller than the standard setting.
Size of the slideshow is defined in the line:
Code
var so = new SWFObject("/imagevue/slideshow.swf", "ss1", "400", "225", "7", "#FFFFFF");
As you can see, the width and height is set to 400x225. In the default fullscreen slideshow, the values are set to 100% so that it scales the entire screen/stage.
Betjenten wrote:And is it possible to use both image that are wider than the height and vice versa in the same slideshow?
You can use any size images and they will scale to fit within the module, but for many, this does not always look nice unless your area is large enough.