Page 1 of 1

usergallery plugin

Posted: Tue May 30, 2006 12:57 am
by lordcoffee
Hi everybody!

As you can see here:

http://www.postscriptfreunde.de/cms/ind ... =Diverses/

I've edited the usergallery plugin (with a lot of help :wink: ) to display
the Logos of Quicktime(mov) or WindowsMedia(wmv) if theres such a file in the gallery. Now I had the following Idea...

My Digicam records mov's and add the first frame as a small jpg with the same name.

Example: P1020173.MOV and a P1020173.JPG.

Is it possible to let the gallery search the directory for mov-files and if there are jpg files with the same name only with another extension (of course), it shows the jpg instead of the "quicktime-icon"?

Edit: And this Image is only shown once of course as link for the video and not twice (one for the video and one because itself is a jpg).

Thanks and good night,
Lordcoffee!

Re: usergallery plugin

Posted: Tue May 30, 2006 10:22 am
by garvinhicking
Hi!

That would be possible, but involve a fair amount of coding. ;-)

Using the serendipity 1.1 alpha mediadatabase this should become a bit easier because there are more hooks to dive into, and more abstracted function calls to get properties of a media file.

The problem will be that videos are not detected as images, and thus no thumbnails (.serendipityThumb) will be emitted....

Best regards,
Garvin