Search…

X3 Photo Gallery Support Forums

Search…
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

embedded pages and themes

02 Feb 2009, 08:36

Hi again!

I've gotten my X2 galleries embedded into my website thus:

http://aneighbour.com/gallery_co.htm

and

http://aneighbour.com/gallery_fa.htm

Each gallery module (portfolio and fineart) has its own content and imagevue folders. Both have separate custom themes that include different background.jpg pages. These can be seen when the galleries are run outside the website as in:

http://www.aneighbour.com/portfolio/

and

http://www.aneighbour.com/fineart/

In the embedded versions, however, the galleries default to the default theme and so my custom changes are not in effect. How do I trigger my custom theme in the embed version? Is there a variable that needs to be added into the html code of the page that launches the embedded gallery?

Many thanks. I'm having great fun with this and am very pleased with the enhancements X2 brings to showcasing my work! :D

Andrew
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

02 Feb 2009, 20:07

First of all, let me notify you that your 'embedded' pages currently work in IE, but not in Firefox. I think this may be because you need to add the javascript file references into the <head> of your document. In any case, you should use the file "standard.html" as a source reference.

As for your themes, as far as I can understand, you have set up Imagevue in 2 separate physical locations right? Since you have done that, you can set the theme from admin -> config.

However, you can of course set a theme directly in the html embed code. Add the following code above your swfobject.embedSWF code:
Code
var flashVars = {};
flashVars.theme = 'themeName';
Also, make sure the "flashVars" object is forwarded in the swfobject call(added to your embed example):
Code
swfobject.embedSWF("portfolio/imagevue/imagevue2.swf", "imagevue", "100%", "100%", "8.0.0", "portfolio/imagevue/expressInstall.swf", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#000000'}, {id: 'imagevue', name: 'imagevue'});
You can use the file "standard.html" as reference.
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

03 Feb 2009, 00:25

Perfect - thanks, I'll work on that tomorrow.
Andrew
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

03 Feb 2009, 17:39

As always thank you for your help.

However, I'm struggling here and feel I am moving backwards. :oops:

I can get the standard.html file to run and to use the right theme, and to work in firefox.

Then I created a copy of the webpage in which my gallery is embedded. The copy is http://www.aneighbour.com/gallery_co2.htm

I compared the entries in the code and tried to bring it to conformance with the standard.html file as reference. However, on the page I do have an embedded slideshow from version1 and use java for dropdown menus. I am not sure what code is redundant or necessary or overriding. The result is that I cannot get the embedded gallery to appear, so I can't test whether it will work in firefox or show the right theme.

Sorry for this, I'm pretty much a photographer, not a programmer, and while I have made great strides through trial and error, I'm spinning my wheels here!

Any specific solutions would be very much appreciated! :)

As always,
Andrew
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

03 Feb 2009, 20:22

In the <head> of your HTML, you are calling for the following javascript:
<script type="text/javascript" src="imagevue/javascript/swfobject.js"></script>

Yet, when I look for this javascript, I get 404:
www.aneighbour.com/imagevue/javascript/swfaddress.js

Looking further, the SWF file referred doesn't seem to be there either:
http://www.aneighbour.com/imagevue/imagevue2.swf

I think you have a different location for your filesm, no?
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

03 Feb 2009, 22:57

They are in a subdirector of my web root...aneighbour.com/portfolio/imagevue...

I'll try that.
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

03 Feb 2009, 23:33

I added the correct folder identifying where the imagevue gallery is located (portfolio/) and now the gallery works, but the slide show that uses the older imagevue no longer works (top left) nor do my javascript drop down menu items on the web page...

http://www.aneighbour.com/gallery_co2.htm

If I take them out, the gallery runs as do the menus

http://www.aneighbour.com/gallery_co.htm

I guess I have no clue as to which javascript code refers to which embedding of imagevue on the page, which to the drop down menus.
I'm just not deep enough into understanding this code and there are too many possible combinations to make it work.

Obviously, I'd appreciate any help you can provide short of an indepth training in javascript!!

Thanks, as always,
Andrew
 
andrewn
Experienced
Topic Author
Posts: 36
Joined: 07 Jan 2008, 12:05

05 Feb 2009, 15:57

Can you please help me out with the problem shown above.

Following the standard.html I can get it to embed with themes and work on firefox http://www.aneighbour.com/gallery_co2.htm

But the changes disable the ver1 imagevue slideshow (top left) and my drop down menus on the web page no longer work.

http://www.aneighbour.com/gallery_co.htm has the slideshow, gallery and menus working, but no firefox compatability, and no theme.

In gallery_co.htm, I provided (I think) the correct locations for each component, but this didn't work.

Many thanks,
A