ANSWERED:Reusing the gallery on a single website
#1
Posted 18 January 2009 - 06:46 PM
This gallery works well if only used once on a site. I want to use multiple instances of it and thought the simplest way of doing it would be to create separate gallery folders with unique folder names.....
So I created a swf that looks to it's unique gallery folder to upload its own pictures yes,,,,,,well no, I changed the following script in the siteSpec so that the gallery folder was now called "gallerywaikino' as follows:
onSelfEvent (load){
var section1: Object = {
heading: false,
subSections: false,
style: false,
banner: false,
content: {
text_txt: "gallerywaikino/gallery_setup.txt",
text_html: false,
image_txt: "gallerywaikino/gallery_setup.txt",
image_obj: false,
video_txt: false,
video_swf: false
}
};
var sections: Array = [section1];
Does anyone think that this is correct and is there anywhere else I should be changing the swf referenced folder name?
Thanks anyone who can help..
Tomo
#2
Posted 18 January 2009 - 07:06 PM
[quote]<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
id="gallery214"
width="99%" height="101%"
>
<param name="movie" value="gallery1/gallery214.swf">
<param name="bgcolor" value="#000000">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="gallery214"
width="99%" height="101%"
src="gallery1/gallery214.swf"
bgcolor="#000000"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
id="gallery214"
width="99%" height="101%"
>
<param name="movie" value="gallery2/gallery214.swf">
<param name="bgcolor" value="#000000">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="gallery214"
width="99%" height="101%"
src="gallery2/gallery214.swf"
bgcolor="#000000"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>[/quote]
wolf
#3
Posted 18 January 2009 - 09:16 PM
That way I could create a separate swf and folder each time without changing much else?????
Any ideas?
#4
Posted 19 January 2009 - 07:29 AM
wolf
#5
Posted 19 January 2009 - 07:36 PM
I guess you're saying it's not possible to change the original gallery as originally requested? Ok, so I've tried your method but it doesn't work. My assumptions are as follows:
You're now placing the swf file in the gallery folder which isn't the same as the original purchased Gallery template? I've tried placing it in the folder and outside - both don't work for me.
I have two galleries named waikino & ocean..............folders gallery_wikino & gallery_ocean
I've changed your code to suit my two gallery example as follows:
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
id="waikino"
width="99%" height="101%"
>
<param name="movie" value="gallery_waikino/waikino.swf">
<param name="bgcolor" value="#000000">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="waikino"
width="99%" height="101%"
src="gallery_waikino/waikino.swf"
bgcolor="#000000"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
id="ocean"
width="99%" height="101%"
>
<param name="movie" value="gallery_ocean/ocean.swf">
<param name="bgcolor" value="#000000">
<param name="quality" value="high">
<param name="allowscriptaccess" value="samedomain">
<embed
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
name="ocean"
width="99%" height="101%"
src="gallery_ocean/ocean.swf"
bgcolor="#000000"
quality="high"
allowscriptaccess="samedomain"
>
<noembed>
</noembed>
</embed>
</object>
Thanks for whatever help you can supply.
Cheers,
Ian
Edited by Wolf Gross, 20 January 2009 - 08:00 AM.
...surplus code removed.
#6
Posted 20 January 2009 - 08:04 AM
"gallery_ocean/gallery/gallery_setup.txt"
wolf
#7
Posted 20 January 2009 - 12:30 PM
Wolf Gross, on Jan 20 2009, 11:04 AM, said:
"gallery_ocean/gallery/gallery_setup.txt"
wolf
Thanks for your reply. I'm a little unclear but here goes:
So if I understand you my last script that I sent you is correct, I just need to change the swi file for each gallery to reference gallery_ocean/gallery/gallery_setup.txt instead of the current gallery/gallery_setup.txt?
So when uploading the site to the host company I must have a series of folders called gallery_ocean/gallery/ocean.swf ???????? This is where I'm confused.
Sorry if I'm upside down but this particular gallery is very cinfusing to me.
Thanks again for your time
#8
Posted 20 January 2009 - 01:03 PM
wolf
#9
Posted 20 January 2009 - 05:53 PM
Wolf Gross, on Jan 20 2009, 04:03 PM, said:
wolf
Still no joy, done everything you've suggested. I've included to attachemnts of the files for the Hosting site and also one for the index file. Would you mind having a quick look to see where I'm going wrong please Wolf.
Thanks,
Ian
Attached Files
#10
Posted 20 January 2009 - 06:11 PM
wolf
#11
Posted 20 January 2009 - 07:54 PM
Wolf Gross, on Jan 20 2009, 09:11 PM, said:
wolf
Hi Wolf,
Sorry for this drawn out process, I tried changing the siteSpecs script a few times, is this right?
text_txt: "gallery_ocean/gallery/gallery_setup.txt",
text_html: false,
image_txt: "gallery_ocean/gallery/gallery_setup.txt",
image_obj: false
Is there somewhere else I should be changing it?
Thanks,
Ian
#12
Posted 21 January 2009 - 12:15 AM
wolf
#13
Posted 21 January 2009 - 04:37 AM
Have a great day.
#14
Posted 21 January 2009 - 09:46 AM
What I have done here is instead of using a separate folder for each gallery (which btw, will still work) I've used 2 different "gallery214.swf's" - "gallery214a.swf" and gallery214b.swf" and renamed the "gallery" folders as "gallery214a" and "gallery214b" and changed the reference/path to the "gallery_setup.txt" in each gallery214a+b accordingly.
wolf
#15
Posted 21 January 2009 - 10:31 AM
I'll try your method and see if I can get away using galler1/waikino.swf instead of gallery_waikino/gallery/waikino.swf and change the gallery_setup.txt to reference each thumbnail and image to gallery1/tn_image_1.jpg&
and see how we get on.
Thanks,
Ian
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users















