Search…

X3 Photo Gallery Support Forums

Search…
 
theRabbi
Topic Author
Posts: 5
Joined: 20 Nov 2006, 11:14

SWF_MOD hack

20 Nov 2006, 11:18

has anyone managed to create some way ( a hack ) to display internally or popup a new window to play an FLV or SWF?

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

22 Nov 2006, 03:57

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.
 
theRabbi
Topic Author
Posts: 5
Joined: 20 Nov 2006, 11:14

26 Nov 2006, 17:26

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

28 Nov 2006, 00:43

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.
firedev.com
 
theRabbi
Topic Author
Posts: 5
Joined: 20 Nov 2006, 11:14

28 Nov 2006, 10:27

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

01 Dec 2006, 01:02

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.
firedev.com
 
theRabbi
Topic Author
Posts: 5
Joined: 20 Nov 2006, 11:14

27 Dec 2006, 12:28

no worries..thanks for your help!
i will try and impliment these this week.. still too much egg nog in my head