Jump to content


ANSWERED:Reusing the gallery on a single website


17 replies to this topic

#1 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 18 January 2009 - 06:46 PM

Hi,

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 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 18 January 2009 - 07:06 PM

..the easiest way of using multiple copies of the template on one html page would be to create a separate folder for each gallery and change the reference/path to different folders in the html coding, e.g....

[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
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#3 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 18 January 2009 - 09:16 PM

Thanks Wolf but my site is very complicated already and uses lightboxes and all sorts so my html file is very crazy. The gallery214.swf must look for a reference folder for the pictures, surely if we could change the name of the folder it's looking for that would do the same thing or is it not possible to change that?

That way I could create a separate swf and folder each time without changing much else?????

Any ideas?

#4 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 19 January 2009 - 07:29 AM

...I don't know why creating separate folders for each gallery would complicate your html and interfere with your "lightboxes and all sorts".

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#5 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 19 January 2009 - 07:36 PM

Thanks for your time Wolf,

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 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 20 January 2009 - 08:04 AM

...you have to change the reference/path etc to the other files linked to "gallery214" - e.g...
"gallery_ocean/gallery/gallery_setup.txt"

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#7 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 20 January 2009 - 12:30 PM

View PostWolf Gross, on Jan 20 2009, 11:04 AM, said:

...you have to change the reference/path etc to the other files linked to "gallery214" - e.g...
"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 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 20 January 2009 - 01:03 PM

...no - you place "gallery214.swf" (or whatever you have re-named it to) and the "gallery" folder for the "gallery_ocean" gallery into the "gallery_ocean" folder and do the same for the "gallery_waikino" - now because the "gallery214.swf" in not anymore in the same folder as the html page you are using you have changed the path in your html and are pointing at the files located at those two gallery folders, so flashplayer will find the gallery214.swf (or whatever you renamed them to) and display them in the location where the html page is - now gallery214.swf (or what you call it now) will look for the files that it is suppose to load, eg "gallery/gallery_setup.txt" but can't find them, because they are not in the same folder as the html page, so you have to change the path to either of the"gallery/gallery_setup.txt" files in the location in the two gallery folders.

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#9 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 20 January 2009 - 05:53 PM

View PostWolf Gross, on Jan 20 2009, 04:03 PM, said:

...no - you place "gallery214.swf" (or whatever you have re-named it to) and the "gallery" folder for the "gallery_ocean" gallery into the "gallery_ocean" folder and do the same for the "gallery_waikino" - now because the "gallery214.swf" in not anymore in the same folder as the html page you are using you have changed the path in your html and are pointing at the files located at those two gallery folders, so flashplayer will find the gallery214.swf (or whatever you renamed them to) and display them in the location where the html page is - now gallery214.swf (or what you call it now) will look for the files that it is suppose to load, eg "gallery/gallery_setup.txt" but can't find them, because they are not in the same folder as the html page, so you have to change the path to either of the"gallery/gallery_setup.txt" files in the location in the two gallery folders.

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 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 20 January 2009 - 06:11 PM

...yes, but did you change the path in "gallery214.swi/swf"?

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#11 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 20 January 2009 - 07:54 PM

View PostWolf Gross, on Jan 20 2009, 09:11 PM, said:

...yes, but did you change the path in "gallery214.swi/swf"?

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 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 21 January 2009 - 12:15 AM

...don't know at the moment - let me have another look at the files.

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#13 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 21 January 2009 - 04:37 AM

Thanks Wolf for spending some time on this, I did think that these galleries would be designed for multiple use a bit better then they are.

Have a great day.

#14 Wolf Gross

    Advanced Member

  • Moderator
  • PipPipPip
  • 23921 posts
  • Gender:Male
  • Location:Perth/Australia

Posted 21 January 2009 - 09:46 AM

...it will work http://wolfgross.com/214 BUT it's very fiddly - you have to change EVERY link to the thumbs and larger images in "gallery_setup.txt" in each of the gallery folders.
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
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified

#15 Tomo

    Advanced Member

  • Members
  • PipPipPip
  • 71 posts
  • Gender:Male
  • Location:Auckland, New Zealand

Posted 21 January 2009 - 10:31 AM

Hi Wolf,

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