Video as extra product file

In Flypage.tpl.php add the following code to top of page: // filename filter$product_id = $vmInputFilter->safeSQL( urldecode(vmGet( $_REQUEST, 'product_id', null ))); $db = new ps_DB; $q = "SELECT * FROM `jos_vm_product_files` WHERE `file_product_id` = " .$product_id . " AND `file_extension` = 'flv'";$db->query($q);$row = $db->loadObject();$filed = $row->file_name; // filename filter Insert the following code where you want video to load on flypage: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="480" height="270" id="player1" name="player1" src="/<?php echo URL . "media/player/"?>player.swf" width="480" height="270"><param name="movie" value="<?php echo URL . "media/player/"?>/player.swf"><param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always"><param name="flashvars" value="file=&autostart=false&image=<?php echo URL . "components/com_virtuemart/shop_image/product/" . $product_full_image ?>"><embed id="player1" name="player1" src="/<?php echo URL . "media/player/"?>player.swf" width="480" height="270" allowscriptaccess="always" allowfullscreen="true" flashvars="file=&autostart=false&image=<?php echo URL . "components/com_virtuemart/shop_image/product/" . $product_full_image ?>" /></object>------------------------------------------------------------- ------------------------------------------------------------- Install Player as attached: upload folder /player/ folder to /media/ on the server