Search…

X3 Photo Gallery Support Forums

Search…
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

Integration with html and use of a different config.ini file

06 Oct 2006, 09:16

Hi,

I made an html page (with help of your html templates) wich call imagevue.swf and config.ini.

http://michelrajkovic.ovh.org/

I have a sitemenu wich call other configuration (englishversion=configenglish.ini)

In sitemenu.ini
link5clickdata = "?configfile=configenglish.ini"

This works well before I made my html page, but now nothing appens
(same thing for button "Couleurs Corse" and "Chili Atacama")

What's wrong ?
The link in sitemu.ini ? Or the html page source (I'm beginner in HTML) ?

Thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

06 Oct 2006, 10:36

Hi MikeR,

The reason it doesnt work, is because HTML cant pass the parameter ?configfile=configenglish.ini to the SWF. Thats one of the reasons we use PHP for our default Imagevue containers (Ex. www.photo.gallery/imagevue/index.php?showmenu=false), so that we can pass parameters directly in the URL.

There are several ways to workaround this. If I was you, I would simply duplicate your index.html, and call it english.html. In the new file, you need to forward the necessary parameter directly in the source code. Locate the following lines, and change them:
Code
flashvars="configfile=config.ini"
into
Code
flashvars="configfile=config.ini&configfile=configenglish.ini"
Keep in mind, the code above "flashvars" occurs twice in your document, change it in both places. In your sitemenu.ini you need to change your link for the english gallery into:
Code
link5clickdata = "english.html" 
 
MikeR
Experienced
Topic Author
Posts: 216
Joined: 29 Sep 2006, 09:58

06 Oct 2006, 11:04

Great - Thanks a lot :D