Search…

X3 Photo Gallery Support Forums

Search…
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Multiple Gallerys

21 Mar 2012, 07:05

Hi

i was reading this post viewtopic.php?f=28&t=6089 and i was hoping that it would be possible to have multiple content folders whilst i have my gallery embedded within a html page.

In addition to this it would be really handy if i could take advantage of the different theme options too and also would it be possible to have a horizontal menue in one gallery and a vertical in another?

Thanks in advance
Jon
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

21 Mar 2012, 07:06

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

Re: Multiple Gallerys

23 Mar 2012, 04:24

Yes this is possible, but you would of course need to create multiple html files for each of your galleries.

Then, in each of your html files, you can append flashvars like "contentfolder" and "theme" into the document.
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

23 Mar 2012, 06:26

Hi Karl.

Sorry to be a bit of a newb but im so experienced with with flash, how would i use the flashvars in my existing html page?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multiple Gallerys

23 Mar 2012, 23:45

jonnorman43 wrote:Sorry to be a bit of a newb but im so experienced with with flash, how would i use the flashvars in my existing html page?
May I take a look at your html gallery to see what code you have used to embed the gallery?

In the original Imagevue index, you would find in the source something like this:
Code
flashVars.language = 'english';
flashVars.theme = 'default';
You can then extend it with further variables, for example:
Code
flashVars.contentfolder = 'content/mygallery1/';
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multiple Gallerys

25 Mar 2012, 02:23

I checked your clientgallery.html, and basically you have this for embedding Imagevue:
Code
<script type="text/javascript">
			//<![CDATA[
				swfobject.embedSWF("imagevue/iv-includes/imagevue2.swf", "imagevue", "980px", "800px", "8.0.0", "imagevue/iv-includes/expressInstall.swf", null, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#000000'}, {id: 'imagevue', name: 'imagevue'});
			// ]]>
</script>
Now, instead of using "null" for the flashvars, you can create an object with variables. For example:
Code
<script type="text/javascript">
			var flashVars = {};
			flashVars.contentfolder = 'content/gallery1/';
			flashVars.theme = 'bluedragon';
			//<![CDATA[
				swfobject.embedSWF("imagevue/iv-includes/imagevue2.swf", "imagevue", "980px", "800px", "8.0.0", "imagevue/iv-includes/expressInstall.swf", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#000000'}, {id: 'imagevue', name: 'imagevue'});
			// ]]>
</script>
As you can see in the above, we defined the flashVars, and set contentfolder and theme as variables. You can duplicate your html document, and add different contentfolders, themes or most other important settings on a per-document basis, thus creating multiple galleries.
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

20 Apr 2012, 05:26

Thanks karl, got it working perfect
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

02 Jul 2012, 15:53

Hi Karl,

Thanks for you help so far, one more thing im trying to do and for some reason having no success is to make a separate text page be the startpath for each of my two gallerys.

My code looks like this
Code
<script type="text/javascript">
         var flashVars = {};
		 flashvars.startpath = 'content/portfolio/start/';
         flashVars.contentfolder = 'content/portfolio/';
         flashVars.theme = '147';
         //<![CDATA[
            swfobject.embedSWF("imagevue/iv-includes/imagevue2.swf", "imagevue", "980px", "800px", "8.0.0", "imagevue/iv-includes/expressInstall.swf", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '#000000'}, {id: 'imagevue', name: 'imagevue'});
         // ]]>
</script>
ive tried playing with the urls for the startpath but nothing seems to be able to get the page to start, i currently have the page hidden thought that shouldn't be a problem should it? its located at content/portfolio/start/

Appreciate your thoughts on this....
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multiple Gallerys

03 Jul 2012, 05:50

One thing is for sure, you can't use contentfolder and startpath parameters on top of each other like that I think. It should work with the startpath you have set ... As of right now, the gallery is not working for your at all from this link http://katherinejonesphotography.co.uk/portfolio.html ... and this is not related to those settings not working. Can you put them inside the //<![CDATA[ though? That is where they belong ...
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

03 Jul 2012, 06:04

Hi Karl,

Ive moved the flashvars like you said and removed the startpath variable, now this is done is there any way i could have a different text page open up for each gallery? or is this now impossible because of the content folder variable?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: Multiple Gallerys

03 Jul 2012, 07:51

Now that the data is moved inside the CDATA, I would assume you should be able to add the startpath:
Code
//<![CDATA[
         flashVars.startpath = 'content/portfolio/Nature/';
         flashVars.contentfolder = 'content/portfolio/';
         flashVars.theme = '147';
...
 
jonnorman43
Topic Author
Posts: 15
Joined: 10 Mar 2012, 11:14

Re: Multiple Gallerys

03 Jul 2012, 07:55

thanks karl , worked a treat