![]() |
|
video's in 1.06 - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: video's in 1.06 (/thread-1009.html) |
video's in 1.06 - nabberuk - 2006-12-23 I was having problems displaying videos at a normal size in both IE and Firefox, so i have hacked together some code, Firstly you will need to download the flv flash player, http://www.jeroenwijering.com/upload/flash_flv_player.zip Upload the following files into your zen/ folder flvplayer.swf Now open up template-functions.php and add the following line at the beginning of the zenjavascript function; echo "";
function printDefaultSizedImage($alt, $class=NULL, $id=NULL) { // [BEGIN] added by cvogt: check for non image data $file_full = $_SERVER['DOCUMENT_ROOT'].getFullImageURL(); $file_wo_ext = substr($file_full,0,strrpos($file_full,".")); if( file_exists( $file_wo_ext.".flv" )){ ?> Get the Flash Player to see this player.
video's in 1.06 - nabberuk - 2006-12-23 guessing i should of not used the code tag's as some of the code has been executed function printDefaultSizedImage($alt, $class=NULL, $id=NULL) {
video's in 1.06 - Daxeno - 2006-12-26 Tried this one. but did not work. an error that i also found when i tried this hack: Warning: Division by zero in /home/dakseno/public_html/zenphoto_test106/zen/template-functions.php on line 817 Warning: Division by zero in /home/dakseno/public_html/zenphoto_test106/zen/template-functions.php on line 818 video's in 1.06 - nabberuk - 2006-12-27 You sure zen was working before you edited it? I've uploaded my template-functions.php at the following location > http://www.myphotoplace.co.uk/template-functions.php.file Can you not try it in a single directory, like www.host.com/zen/ instead of www.host.com/zenphoto_test106/zen/ as i'm not to sure if the paths with be ok. I say the above because i dont think the lines numbers have much to do with anything i edited, i may be wrong though. video's in 1.06 - Daxeno - 2006-12-29 did it but still did not work. video's in 1.06 - freediver - 2007-01-01 I as well cannot get this to work - I have tried for the past 2 hours and no go. All I get is a blank page - and yes, the default install was working just fine. I'm testing on a local development server so nothing to see out on the net - am looking at this for some web design work I do for photographers and videographers. The link to your template-functions.php file is invalid. Would like to get a copy and see where I missed getting it right. video's in 1.06 - lordcoffee - 2007-01-17 This works great. I had a bit of trouble but reason was that I wasn't reading what you've written ;-) Thanks for this! See it in action: http://www.taeglichanders.de/blog/index.php?/wpages/portfolio.html Just go to the Video section video's in 1.06 - nabberuk - 2007-01-18 Sorry for not being very active. Had problems with my host. Anyways, glad someone got it to work! Download the template-functions.php just here > www.myphotoplace.co.uk/template-functions.file i know this is far from perfect, but it displays at the correct size in all browsers and you dont need to activate the control in IE video's in 1.06 - Daxeno - 2007-01-18 Still Not working. video's in 1.06 - nabberuk - 2007-01-19 the code hasnt changed and lord says he/she has it working. So not sure whats up. video's in 1.06 - Daxeno - 2007-01-19 i think it's with the theme itself. it wont work when you're using the Stopdesign theme. video's in 1.06 - nabberuk - 2007-01-19 Right, i've only tested it on the Sterile theme. Haven't a clue if it works on any others. But i did what was above about 10 minutes ago and it works ok as seen here I rared all the files up and there at http://steelfoot.com/zenphoto.rar You will need to install it like any other version. If someone wants to make it work with other themes, go for it! EDIT: looks like the only theme it doesnt show up on is the stopdesign and stoppeddesign. It displays fine on the rest, just need to alter the size. |