Search…

X3 Photo Gallery Support Forums

Search…
 
Crazy Serb
Topic Author
Posts: 3
Joined: 19 Aug 2008, 19:06

Embedding the gallery in an existing site/layout?

19 Aug 2008, 19:07

Is it possible to do with v2?

I know it was possible with 1.7/1.8, but how easy (if possible at all) is it to pop in this gallery inside an existing page... and how?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

20 Aug 2008, 00:26

Yes, its certainly possible - In fact, we hoped to have made it more flexible to integrate V2 into existing pages. Primarily because V2 has no requirements to dimensions, and can be integrated into any layout/size.

I made this quick example in a fictional page:
https://www.photo.gallery/decens/mygallery.html

Of course, the gallery configuration should be optimized to work better within a restricted layout, but we will have to provide examples for that later.

For the example above, I simply used the default SWF embedding code from dreamweaver. Also, its important to include the globalpath parameter if your document is pointing to the "imagevue2.swf" from a remote folder.
Code
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100%','height','460','title','myimagevue','src','../soda/imagevue/imagevue2','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','flashvars','globalpath=../soda/','movie','../soda/imagevue/imagevue2' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="460" title="myimagevue">
<param name="movie" value="../soda/imagevue/imagevue2.swf" />
<param name="quality" value="high" />
<param name="flashvars" value="globalpath=../soda/" />
<embed src="../soda/imagevue/imagevue2.swf" width="100%" height="460" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" flashvars="globalpath=../soda/"></embed></object>
We will provide extended documents for optimized HTML integration after stable release.
 
Crazy Serb
Topic Author
Posts: 3
Joined: 19 Aug 2008, 19:06

20 Aug 2008, 11:20

why switch to dreamweaver embed code from swfobject.js and such?

what if I'm not using dreamweaver and don't have that default .js dreamweaver creates, and would like to edit this in notepad (for dummies)?


I mean, don't get me wrong, thank you for the example as I've managed to just copy/paste that code from the sample page (and save/upload the .js file along with it) to my site and integration works perfect.

But just for the future reference, what if we have swfobject.js used all over the website already, and could just stick with that instead, or if we don't have dreamweaver and such... just a thought...

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

20 Aug 2008, 14:31

Well, your original question was "Is it possible to do with V2?", and I answered that question, and even posted an example with the most widely-used webdesign software.
Crazy Serb wrote:why switch to dreamweaver embed code from swfobject.js and such?

what if I'm not using dreamweaver and don't have that default .js dreamweaver creates, and would like to edit this in notepad (for dummies)?
This was just an example. If I made the example with SWFObject, I would have to explain how to use that specific javascript, which is a category in itself. If you are using SWFObject from before, then I would expect you to already know how to embed a SWF file into a HTML file.

Of course there is no problem using swfObject ... just embed the file "imagevue2.swf" just like you embed any other SWF file.
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

20 Aug 2008, 16:50

Actually since we use SWFObject and SWFAddress anyway, maybe add example file using SWFObject to embed in demo page to gallery archive?
firedev.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13998
Joined: 30 Sep 2006, 03:37

21 Aug 2008, 03:29

Ok, below is code for SWFObject ... The first line must go in your head tag, while the other code must go where you want your gallery placed. Remember to replace the text in [BRACKETS] with your own paths and values.
Code
<script type="text/javascript" src="[PATH_TO_swfobject.js]"></script>
...
Code
<div id="imagevue">
	This is where the gallery is placed
</div>
<script type="text/javascript">
	//<![CDATA[
		var flashVars = {
			globalpath: '[GLOBALPATH_HERE]'
		};
		swfobject.embedSWF([PATH_TO_IMAGEVUE2.SWF], "imagevue", [WIDTH], [HEIGHT], "8.0.0", "[PATH_TO EXPRESSINSTALL.SWF]", flashVars, {allowScriptAccess: 'always', allowFullScreen: true, bgcolor: '[BGCOLOR]'}, {id: 'imagevue', name: 'imagevue'});
	// ]]>
</script>
 
User avatar
PhotoFolio
Experienced
Posts: 39
Joined: 05 Oct 2007, 07:45

25 Aug 2008, 15:15

Hi Karl and V2's developpers
First, a great thanks for this new admin interface : the gallery is by far easier to setup and admin (that point was the main drawback of the 1.x release in my opinion).
I have a question about HTML integration, in order to migrate easily my 1.x gallery with the less work possible. From the begin I used to call a specific folder this way :
"http://mydomain.com/?folder=content/Fol ... sorting=dd" (see http://photofolio.eu/GalerieThema.html to see the result). It appears that parameters such as 'showmenu' doesn't exist anymore in version 2 : is that correct ? Any 'new' way to do it ? What are the parameters available for the URL in V2 ?

Edit : I succeed the migration by disabling menu via the admin interface and using the following synthax :
http://mydomain.com/?startpath=content/ ... thumbnails" (see http://photofolio.eu/GalerieNature.html to see the result)
 
robp
Posts: 7
Joined: 11 Aug 2008, 08:30

11 Sep 2008, 06:33

I must be missing something because when I use the embedding code for swfobject all I get is a white page

http://www.shutter-life.co.uk/v2/index.html

right click the page and you'll see there's not much to it but I can't figure out why it's not displaying.

swfobject.js is in http://www.shutter-life.co.uk/v2/
imagevue2.swf & expressinstall.swf are in http://www.shutter-life.co.uk/v2/imagevue/

Rob.[/code]
 
robp
Posts: 7
Joined: 11 Aug 2008, 08:30

11 Sep 2008, 08:03