Release: Embedded Movie Files for Gallery

djlerman

Joined: 2004-05-22
Posts: 16
Posted: Sun, 2004-11-07 22:46

I installed this and it works great. The only problem is the bottons for the Real Video files are not showing up ei;play,stop,fast forward, etc..

Is there something else I should change???

Here is the link:
http://iqaat.com/v-web/gallery/album05

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2004-11-07 23:13

djlerman,
You should upgrade as there is a bunch of securty fixes since your version.

in view_photo.php look at the paramater for clsid: and change it to clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA

 
djlerman

Joined: 2004-05-22
Posts: 16
Posted: Mon, 2004-11-08 00:26

There are 3 clsid's. The one associated with REAL already has the clsid that you suggested.

        } elseif ($type == "rm" or $type == "ram") {
        $photoTag = "<OBJECT ID=RVOCX CLASSID=\"clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\" WIDTH=\"320\" HEIGHT=\"240\">"
                        ."<PARAM NAME=\"BACKGROUNDCOLOR\" VALUE=\"#000035\">"
                        ."<PARAM NAME=\"MAINTAINASPECT\" VALUE=\"TRUE\">"
                        ."<PARAM NAME=\"NOLOGO\" VALUE=\"TRUE\">"
                        ."<PARAM NAME=\"SRC\" VALUE=\"" . $gallery->album->getPhotoPath($index) . "\">"
                        ."<PARAM NAME=\"CONSOLE\" VALUE=\"MOVIE1\">"
                        ."<PARAM NAME=\"CONTROLS\" VALUE=\"ImageWindow\">"
                        ."<PARAM NAME=\"CENTER\" VALUE=\"TRUE\">"
                        ."<PARAM NAME=\"AUTOSTART\" VALUE=\"true\">"
                        ."<EMBED SRC=\"" . $gallery->album->getPhotoPath($index) . "\" TYPE=\"AUDIO/X-PN-REALAUDIO-PLUGIN\" WIDTH=\"320\" HEIGHT=\"240\" CONTROLS=\"ImageWindow\" NOJAVA=\"TRUE\" CONSOLE=\"MOVIE1\" AUTOSTART=\"TRUE\">"
                        ."</EMBED></OBJECT>";
        }

I would love to upgrade but I'm scared to death of screwing something up. The Host I use installed it through VDECK.

The instructions I have seen use a lot of tech speak. If there was a simple follow along version I would. Or is there a service similar to what MT has, or used to have (I think they would install or upgrade for a flat rate).

Thanks for this fix. I'll give it a try.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2004-11-08 02:36

Paid Support is very easy. But the customizations you will have to do on your own

Dave

 
123reg

Joined: 2004-11-11
Posts: 3
Posted: Fri, 2004-11-12 00:01

reefdiver, Any chance you still have the embed movie zip?

If so could you send it to me at

thanks for your time.

 
djlerman

Joined: 2004-05-22
Posts: 16
Posted: Fri, 2004-11-12 00:19

Are you talking about the zip from this thread??

http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=5551

Just follow the links.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2004-11-12 01:00

123reg, This is a shortcut to the most recent version:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=96180#96180

 
djlerman

Joined: 2004-05-22
Posts: 16
Posted: Fri, 2004-11-12 01:28

I don't know the official way, but there is a file in the album folder named "yourclip.thumb.jpg". I just replaced it with a screen capture that I resized.

 
azngurl

Joined: 2004-11-24
Posts: 1
Posted: Wed, 2004-11-24 16:05

I have an issue,

I'm running Gallery 1.4.4pl4 on PHPnuke platinum 6.9.1

Internet Explorer shows the embeded movie fine, centered in the page, even resizes the video.

http://www.team6sigma.com/modules.php?set_albumName=Videos&op=modload&name=gallery&file=index&include=view_album.php

However, when viewed through Firefox 1.0, the video does not center, and does not resize. Any ideas?

 
decomike

Joined: 2004-11-25
Posts: 13
Posted: Thu, 2004-11-25 12:37

I've updated the movie embedding changes to work with Gallery 1.5-cvs-b273 and Mambo 4.5.1.

Replace the view_album.php & view_photo.php in your gallery directory.
Place the browser_det.inc file in the gallery directory
Place the inline_moviewrap.frame in your gallery/html_wrap directory.

 
linedoggy

Joined: 2002-12-12
Posts: 19
Posted: Mon, 2004-12-06 20:46

Hey decomike,
I rar file is missing the view_album.php file, is this correct? Thanks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2004-12-08 22:36

I have started a new version of the Embedded Movie Files for Gallery and need your feedback:
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&p=107124#107124

 
webhead
webhead's picture

Joined: 2004-11-21
Posts: 27
Posted: Thu, 2004-12-09 03:08

Can someone please send me the ZIP as well? This looks like an awesome script, I don't know why anyone wouldn't implement it! Perhaps it might be wise to relink it here?

Thanks in advance,

Dan

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-12-09 03:56
 
decomike

Joined: 2004-11-25
Posts: 13
Posted: Sun, 2005-01-02 11:12

Better late then never ... :wink:

This one?

 
jelevy01

Joined: 2004-07-20
Posts: 7
Posted: Tue, 2005-01-18 17:26

Will this work with 1.4.4? Is the download still available somewhere?

 
unclecrispy

Joined: 2004-08-03
Posts: 12
Posted: Mon, 2005-01-24 03:49

i added swf support to floridave's movie support plug-in (the 1.4.4pl2 version) has not been tested with any of the beta versions or the newer more elaborate version

in view_photo.php add the following to the movie-type else statement list (line 574 for me, right before the "} else {" line)

Quote:
} elseif ($type == "swf") {
$photoTag .= "<span style=\"vertical-align:middle;\"><object classid=\"clsid:SOMESWFFILE\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab\" width=\"320\" height=\"240\">\n"
."<param name=movie value=\"" . $gallery->album->getPhotoPath($index) ."\">\n"
."<param name=\"menu\" value=\"false\">\n"
."<embed src=\"" . $gallery->album->getPhotoPath($index) ."\" quality=\"high\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" menu=\"false\" width=\"320\" height=\"240\">\n"
."</embed>\n"
."</object></span>\n";
} else {

in the same file (view_photo.php) modify the if ($movie) line to check for type swf, so it doesn't display the load time warning(line 618)

Quote:
if ($movie && $type!="swf") {
$photoTag = "<span class=\"content\">It May Take Awhile for Movie To Load ...<BR><BR>\n" . $photoTag . "</span>\n";
}

 
unclecrispy

Joined: 2004-08-03
Posts: 12
Posted: Mon, 2005-03-14 08:25

upgraded decomike's 1.5cvs version to work with 1.5 RC2

only modified view_photo.php and browser_det.inc

don't know what was being changed in view_album.php so didn't modify the RC2 version

added SWF support.

force windows media player box to be centered and 320x240 also got rid of the href tag because hovering on the the link causes video to disappear in firefox

fixed a few of the array out of bounds notices in browser_det.inc

install directions:
backup original view_photo.php

put view_photo.php & browser_det.inc in the main gallery folder
put inline_moviewrap.frame in the gallery/html_wrap folder

 
unclecrispy

Joined: 2004-08-03
Posts: 12
Posted: Wed, 2005-04-06 23:17

to get this working 100% on RC3 just add this one line:
$gallery->session->gRedirDone = false;
to the view_photo.php in the zip above, on line32

your new version should look like this:

if (empty($gallery->session->albumName) || !$gallery->user->canReadAlbum($gallery->album) || !$gallery->album->isLoaded()) {
        $gallery->session->gRedirDone = false;
        header("Location: " . makeAlbumHeaderUrl('', '', array('gRedir' => 1)));
        return;
 
HrlyKrs
HrlyKrs's picture

Joined: 2005-01-18
Posts: 19
Posted: Fri, 2005-04-15 02:24

do you guys have an ETA for this to work with Version 1.5?

I noticed the above when I am viewing the movie/audio file:
Gallery: KHT Photo Gallery ^ Album: Array ^ Album: Array ^ Album: Array

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sun, 2005-04-17 04:47
 
unclecrispy

Joined: 2004-08-03
Posts: 12
Posted: Thu, 2005-04-21 22:48

ok, i've updated the non-getid3 version to work with Gallery 1.5
(admins, maybe this can be added into a future version? it's really useful!)

install directions:
backup original view_photo.php

put view_photo.php & browser_det.inc in the main gallery folder
put inline_moviewrap.frame in the gallery/html_wrap folder