@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.
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.
Hey everybody, La0c00n,
I have adjusted the files La0c00n provided so that the video script is [b]compatible with ZenPhoto 1.0.6[/b] (tested with default theme).
Download link here: http://upload2.net/page/download/2D1NSURUjXRJLCO/zenVideoSrc_for_Zen1.0.6.zip.html
Greetz,
Altaphista
a new link is http://www.mediafire.com/?fy3ymwjnwhm (hope this works)
la0c00n feel free to use that
Another nice feature I made to print a tekst (f.e. 'VIDEO') on the thumb, if it exists:
Open classes.php
Find function getThumb()
Add &video=1 here (appr line 404):
`//The file is a viedo and has a thumb
if($this->video == true && $this->videoThumb != NULL){
return WEBPATH . "/zen/i.php?a=".urlencode($this->album->name)."&i=".urlencode($this->videoThumb)."&s=thumb&video=1";
}`
Open i.php (in /zen/)
Find // Create the cached file (with lots of compatibility)... (app line 250)
Add following code [b]BEFORE[/b] the line touch($newfile);:
`/ INCL CODE FOR VIDEO /
if (isset($_GET['video']) && $_GET['video'] == '1') {
$quality = 100;
$sx = imagesx($newim) ;
$sy = imagesy($newim) ;
$Text="VIDEO" ; /* Your text info */
$Font="gs.ttf" ; /* this has to be uploaded in /zen/ folder */
$yourHEXcolor= '00FF99';
$h_int = hexdec($yourHEXcolor);
$FontColor = imagecolorallocate($newim, 0xFF & ($h_int >> 0x10), 0xFF & ($h_int >> 0x8), 0xFF & $h_int);
$black = ImageColorAllocate ($newim,0,0,0) ;
$white = ImageColorAllocate ($newim,255,255,255) ;
$Rotation = 0 ;
/* Iterate to get the size up */
$FontSize=1 ;
do
{
$FontSize *= 1.1 ;
$Box = @ImageTTFBBox($FontSize,0,$Font,$Text);
$TextWidth = abs($Box[4] - $Box[0]) ;
$TextHeight = abs($Box[5] - $Box[1]) ;
}
while ($TextWidth < $sx*0.7) ;
/* Awkward maths to get the origin of the text in the right place */
$x = $sx/2 - cos(deg2rad($Rotation))*$TextWidth/2 ;
$y = $sy/2 + sin(deg2rad($Rotation))*$TextWidth/2 + cos(deg2rad($Rotation))*$TextHeight/2 ;
ImageTTFText ($newim,$FontSize,$Rotation,$x+2,$y+2,$white,$Font,$Text);
ImageTTFText ($newim,$FontSize,$Rotation,$x+1,$y+1,$black,$Font,$Text);
ImageTTFText ($newim,$FontSize,$Rotation,$x,$y,$FontColor,$Font,$Text);
}
`
Ok, here is the new release of ZenVideo, based on 1.0.6 version of ZenPhoto.
http://la0c00n.info/zenvideo
Like for 0.2 version, there is a source package and an installation package.
Nothing changes for installation, you just have to replace your old files by new files from ZenVideo packages.
I hope it will be useful for you !
Have fun and report bugs
I'm sorry for releasing this version lately but i've had lot and lot of work...
@altaphista: I can't get this to work. What font should I upload on my server. Can't fins any gs.ttf and with another truetype font it won't work.
Thanks, Lordcoffee.