Page 1 of 1

SWF_MOD hack

Posted: 20 Nov 2006, 11:18
by theRabbi
has anyone managed to create some way ( a hack ) to display internally or popup a new window to play an FLV or SWF?

thanks

Posted: 22 Nov 2006, 03:57
by mjau-mjau
Just to answer this post quickly (I gotta run to the supermarket...) -

Your best shot at this would be to edit the file popup.php. You would need to insert code for SWF instead of a plain image, and then you would need to use the name of the image to be viewed, chop off the *.jpg extension, and add *.swf extension. Obviously you will need a file imagename.swf.

You could then set the gallery to open a popup window on click of thumbnail, displaying a SWF file with the same name as your image.

Posted: 26 Nov 2006, 17:26
by theRabbi
ok.. but will then this be a global change?

meaning i wont be able to have some thumbnails open inside of the imagevuex browser..and then others ( the swfs ) open in a new popup window.

there needs to be some room for exceptions...

or what about additional code that checks to see if the file is a swf ( via the filename ) and then opens a popup?

thanks

Posted: 28 Nov 2006, 00:43
by Nick
Just have 3 files per item - tn_*.jpg, *.jpg and *.swf - then in popup just check if *.swf exists - display it instead of .jpg, or something this way - depends on your liking.

Posted: 28 Nov 2006, 10:27
by theRabbi
please elaborate...im not a php coder..

then in popup just check if *.swf exists

what is the code for this type checking?
and how can i set it so that only the swfs popup in a new window.. and the images open only in the viewer/stage.

thanks

Posted: 01 Dec 2006, 01:02
by Nick
Sorry for a delay, here is an example swf mod for you. Download here:

https://www.photo.gallery/downloads/swf_mod.zip

Example here:

https://www.photo.gallery/imagevue/swf_mod/

It goes like this - unpack into your current imagevue directory, there is new popup.php and in content/groupfolder1/imagefolder1/ you will see 3 files:

1: tn_Dawn.jpg - thumbnail to display
2: Dawn.jpg - jpg file to be displayed in slideshow and gallery (must be the same width and height as *.swf)
3: Dawn.swf - swf made from that jpg

When viewing jpg press [open in popup] and you will see swf instead of jpg.

Posted: 27 Dec 2006, 12:28
by theRabbi
no worries..thanks for your help!
i will try and impliment these this week.. still too much egg nog in my head