Support of videos for ZenPhoto

Hello all,

I have made a little hack of Zenphoto to make it support videos (flash videos actually supported).
My modifications are independant from any theme, it just displays a flash video player when it finds a video ending in .flv

I added a little feature: when you put a video called myVideo.flv in an album and a picture called myVideo.jpg, the pictures is ignored by ZenPhoto and is showed as a thumb of the video.

Well, i think it's all... The demo is here: http://la0c00n.info/zenvideo

I have not seen any topic about this sort of thing in the forum, but if anyone has already done this i apologize :)

Feel free to comment.
«134

Comments

  • very nice... how can we get our hands on this.
  • I'm going to make a little webpage so you can download the patch.
  • hurry up, i cant wait too long :)
  • Ok, here we go...
    The webpage is online : http://la0c00n.info/zenvideo

    You will find there the archives of my patch and a little howto for installing it.

    Have FUN :)
  • Are you going to mod this so you can have an album of videos or is the development stopped?
  • Very useful. Thanks a lot! :)
  • tried it but it wont work on Stopdesign theme
  • The development isn't stopped, i'm gonna clean the code, to make it more usable.

    I'll look to make it work with StopDesign Theme...
  • Awesome, good to know. It works like a charm.
  • This is the Error Message i get on the Stopdesign Theme :

    MySQL Query ( UPDATE images SET width=, height= WHERE id=230; ) Failed. Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' height= WHERE id=230' at line 1

    Please... Is there any way you can fix this? :(
  • I'm going to release zenvideo 0.2 as soon as possible.

    I'll try to make stopdesign work with this version.

    Actually, i've re-written some parts of the code to make them more usable and more efficient.
  • were you able to fix this? just wondering
  • Yes, i've been able to fix this...

    Look at this post : http://www.zenphoto.org/support/topic.php?id=873
  • Ok,

    I've uploaded the 0.2 versions http://la0c00n.info/zenvideo

    You can see now thumbnails of videos in the administration panel (using pictures).

    I've cleaned a lot of code, and made a full installation package.

    Please, report bugs !
  • is there a way to make the video a little bigger? it is too minute though. :D
  • Where exactly do I upload the zip files? Inside zenphoto or elsewhere?

    Thanks!
  • You need to extract first the zip files, then you just have to replace the older files using new ones.

    Take care of saving your albums and your configuration file (/zen/zp-config.php).
  • I've got the zip files extracted. They look just like the zenphoto files. So, I just put them in the same place (overwrite) and make sure I keep my albums and config file information the same? Gosh, is it that easy? :) I'm afraid to touch anything for fear I might ruin something. lol
  • Well, It is not that hard to integrate this to "almost" any version of ZP. I have some modifications in template function etc, so I had to copy your code everywhere - and it is working!

    But, i don't know why is the video screen size so small in IE. it's about 160*120px?
  • I'm sorry I'm being so dense. It's not working for me. Should I have a zenphoto folder and a separate zenvideo folder? Or should I put the zenvideo files in zenphoto which will cause them to be overwritten?
  • @koffee: The video player has problems for displaying with IE, i'm working to fix it for the next version of zenvideo.
    By the way, you should use Firefox :-)

    @SusieN: Yes, installing zenvideo is that easy !
    Just overwrite your current installation of zenphoto, and configure it like you did with your current zenphoto.
  • Thanks a lot La0c00n for your efforts making this video support. it does works great in Firefox. Yet i'll be waiting for the fix for IE. i used IE most of the time. Thanks!
  • @La0c00n: Of course I do, but most of my visitors have IE, so there's the problem ;)
  • most of my visitors used the same as well... others have opera. yet i just asked them to download Firefox to view it best.
  • Well... I don't even use Firefox but Camino which is based on a Firefox basis. I've added the support of mp3 to zenvideo, i have found too an issue for this Ie bug.

    I'm gonna release 0.3 version of zenvideo asap.

    Keep Using Firefox :-)
  • La0c00n, this version does not support the Zenphoto 1.0.6 :(
  • look in the following thread, http://www.zenphoto.org/support/topic.php?id=1058&replies=2

    It displays correctly in all browsers and gets past the "click to activate control" in IE. Plus theres tons of options for the flv player.
  • I have a quick question - I would like the player bar to not hide while the video is playing - is there a way to have it show at all times and still keep the full size of the video playing as well?

    Peace...
  • Hey everybody, La0c00n,

    I have adjusted the files La0c00n provided so that the video script is compatible with ZenPhoto 1.0.6 (tested with default theme).

    Download link here: http://upload2.net/page/download/2D1NSURUjXRJLCO/zenVideoSrc_for_Zen1.0.6.zip.html

    Greetz,
    Altaphista
  • Thanks altaphista,

    It also works in Stopdesign theme. Good Job and to La0c00n as well. :D
Sign In or Register to comment.