usergallery plugin

Creating and modifying plugins.
Post Reply
lordcoffee
Regular
Posts: 308
Joined: Tue Nov 29, 2005 10:22 pm
Location: Munich - Germany
Contact:

usergallery plugin

Post 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!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: usergallery plugin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply