B.Murali Krishna Posted March 7, 2007 Posted March 7, 2007 Hello Friends, Can we upload Video File's in admin for any products so that that files are converted in to flash files and uploaded to site, can any body suggest me the contribution of this applications, i too searching for this, Thank U Waiting for Reply, Murali Krishna
Jack_mcs Posted March 7, 2007 Posted March 7, 2007 No, the code won't handle that. There may be a contribution for it but I don't recall seeing one. The code to upload the file could be easily added but to convert to flash would require a separate program, as far as I know. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Dennis_gull Posted March 10, 2007 Posted March 10, 2007 Theres a contribution on how to upload videos but you dont convert videos to flash (flash use .flv files to play), anyways if you want to convert the videos on the server you probably gonna have a hard time. The best thing would be to just convert the files to .flv files before you upload them, the best .flv converter is Sorenson Squeeze 4 by far. Heres the contribution on how to upload videos
iontostar Posted March 12, 2007 Posted March 12, 2007 Hi, On my site what I have done is stored the video on google video then linked it to on my website this way I am saving on my bandwidth and google handles the conversion for me. I have stored the google video reference in the url field in the products admin section (as I do not use this for its intended purpose). Next I adapted the code on the products info page to check to see if a reference was present in this field, if so it displays a video button which takes you to the video page. Its probably easy to just look at an example here I am aware I need to practice my video presentation skills. Hope of use. Regards
awarner20 Posted March 12, 2007 Posted March 12, 2007 Hi, On my site what I have done is stored the video on google video then linked it to on my website this way I am saving on my bandwidth and google handles the conversion for me. I have stored the google video reference in the url field in the products admin section (as I do not use this for its intended purpose). Next I adapted the code on the products info page to check to see if a reference was present in this field, if so it displays a video button which takes you to the video page. Its probably easy to just look at an example here I am aware I need to practice my video presentation skills. Hope of use. Regards Hi there, I looked at your page containing the video play button and the embedded Google video. Very nice job! I wonder if you might be able to provide an example of the code on the product_info page to check if the video url exists? Your integration is a great idea! Thanks for any code sample you can provide;) We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos
iontostar Posted March 12, 2007 Posted March 12, 2007 Ok, its not that difficult. Firstly make sure you have a google video account a a suitable test video uploaded. For your info I have my videos set as searchable and anyone can embed them on their site but they are not downloadable. This is a trade off between having another worldwide promotion and allowing a competitor access to my videos. (I am gradually watermarking them all). Anyway once you have done this if you right click on the title and copy the url. You will then end up with something like this: [url=http://video.google.com/videoplay?docid=3576483789019419027]http://video.google.com/videoplay?docid=3576483789019419027[/url] Go to your catalog admin -> catalog -> select your product at the bottom in the products url field enter: docid=3576483789019419027 You must only put this part in otherwise it will not work. Thats all there is on the admin side. The actual modifications to files are quite simple all are on the catalog side only. The admin section is not touched. (1) Go to the file includes -> languagues -> english --> product_info.php (or to your relevent language directory ie french, dutch, etc) Before the ?> at the end of the file add. define('TEXT_CLICK_TO_VIEW', 'Click to view video'); define('TEXT_WATCH_VIDEO','Click Here to watch a video of the product:'); (2) In the same place create a file called "product_reviews_video.php". Add the following to this file: /* $Id: product_reviews.php,v 1.6 2003/06/05 23:23:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('NAvb script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> <?php } echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>'; ?> </td> </tr> </table> </td> </table></td> </tr> </table></td> <!-- body_text_eof //--> [/code] (6) The final step is to add the new file to includes/filenames.php. Find the following line: define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); and below this add: define('FILENAME_PRODUCT_REVIEWS_VIDEO', 'product_reviews_video.php'); That should be it. If you have problems let me know and I will try and help you. (Thats it from me for today though!) OK - Now why has it completely screwed up what I typed?????
Dennis_gull Posted March 13, 2007 Posted March 13, 2007 I wouldn't want to advertise for other companies if I were you, people may go to googles video page and that means they leave the shop. You wouldn't have a unique look either. @ iontostar, You should put the embeded video in opaque otherwise you will get the menu under the video. for example just watch a video and then hold over the menu on the left side and you will see it under the video player.. To get the menu over the video just put this inside <object>: <param name="wmode" value="opaque" /> <embed src="<your .swf file should be here>" wmode="opaque" ..... /> But If you dont embed the video you will have a problem.. Anyways if you want an example of what you can do with the video contribution I posted at the top you can enter my site, its still under construction and the products is just examples. Heres the link to my site, just click on some product and you will see a single video player The only difference from my videos and the one from the contribution is that I use my own player and I dont upload the movies from the browser, I changed the code so I just enter the name in the admin panel, this way I can also delete the video. I like it more when uploading from the ftp.
awarner20 Posted March 13, 2007 Posted March 13, 2007 @ iontostar - Thanks so much for the detailed instructions, I will try it out. Although, I'm fairly experienced with video production so I will probably be hosting my own or hosting them with blip.tv. They are a fine bunch over there. @ Dennis_gull - Thanks for the further information. I looked at your site, and it's beautiful, nice job! I'll check out your contrib and see what it's all about. Thank to both of you for your advice! We see our customers as invited guests to a party, and we are the hosts. It's our job every day to make every important aspect of the customer experience a little bit better. - Jeff Bezos
iontostar Posted March 13, 2007 Posted March 13, 2007 @ iawarner20 - I am going to have to sort the code out. It has not showing correctly in the message posted. @ Dennis_gull - Bit confused by your comment. My video is embedded already or at least I think it is? When I watch a video I do not get any video menu appearing at the end??. I like your player but from what I understand you are hosting your files locally and therefore the player would not work with google video? Regards
Dennis_gull Posted March 15, 2007 Posted March 15, 2007 @ Dennis_gull - Bit confused by your comment. My video is embedded already or at least I think it is? When I watch a video I do not get any video menu appearing at the end??. I like your player but from what I understand you are hosting your files locally and therefore the player would not work with google video? Regards I didnt say that :P You get the product menu under the movie player. Heres a picture of what Im talking about: If you just implant the video with a link you cant embed it because its embedded from google (at least I think it is) and you have to host the files on your server to get the videos if you got your own media player. But theres servers like www.aruba.it who give you unlimited storage and traffic or you can use www.dreamhost.com who give you 2000 GB storage and 2 TB traffic / month. I havent used aruba but I think I will try them if they dont have some catch, Maybe they delete the file if you use it to much. Thats what my host does, just dont use surftown.se.
iontostar Posted March 25, 2007 Posted March 25, 2007 Ahhh, One is now enlightened also thanks for the info on the server providers. Currently only have a 100MB space but it is a UK hosted which a couple of years ago did make some difference plus the advantage of google was two fold it was easy and the videos are searchable. Maybe will have to rethink this one a bit. Regards I didnt say that :P If you just implant the video with a link you cant embed it because its embedded from google (at least I think it is) and you have to host the files on your server to get the videos if you got your own media player. But theres servers like www.aruba.it who give you unlimited storage and traffic or you can use www.dreamhost.com who give you 2000 GB storage and 2 TB traffic / month. I havent used aruba but I think I will try them if they dont have some catch, Maybe they delete the file if you use it to much. Thats what my host does, just dont use surftown.se.
jamine Posted February 12, 2009 Posted February 12, 2009 Ok, its not that difficult. Firstly make sure you have a google video account a a suitable test video uploaded. For your info I have my videos set as searchable and anyone can embed them on their site but they are not downloadable. This is a trade off between having another worldwide promotion and allowing a competitor access to my videos. (I am gradually watermarking them all). Anyway once you have done this if you right click on the title and copy the url. You will then end up with something like this: [url=http://video.google.com/videoplay?docid=3576483789019419027]http://video.google.com/videoplay?docid=3576483789019419027[/url] Go to your catalog admin -> catalog -> select your product at the bottom in the products url field enter: docid=3576483789019419027 You must only put this part in otherwise it will not work. Thats all there is on the admin side. The actual modifications to files are quite simple all are on the catalog side only. The admin section is not touched. (1) Go to the file includes -> languagues -> english --> product_info.php (or to your relevent language directory ie french, dutch, etc) Before the ?> at the end of the file add. dfddfdf
jamine Posted February 12, 2009 Posted February 12, 2009 Hi ionstar how will I display the video?I just add a button in product_info page and calling the FILENAME_PRODUCT_REVIEWS_VIDEO,and when I click it, it gives me a message: The requested URL /oscommerce/catalog/product_reviews_video.php was not found on this server,where it should redirected?and what are the code in it?. The product_reviews_video.php code in includes -> languagues -> english directory is not clear to me, i think the code is messed up. Ok, its not that difficult. Firstly make sure you have a google video account a a suitable test video uploaded. For your info I have my videos set as searchable and anyone can embed them on their site but they are not downloadable. This is a trade off between having another worldwide promotion and allowing a competitor access to my videos. (I am gradually watermarking them all). Anyway once you have done this if you right click on the title and copy the url. You will then end up with something like this: [url=http://video.google.com/videoplay?docid=3576483789019419027]http://video.google.com/videoplay?docid=3576483789019419027[/url] Go to your catalog admin -> catalog -> select your product at the bottom in the products url field enter: docid=3576483789019419027 You must only put this part in otherwise it will not work. Thats all there is on the admin side. The actual modifications to files are quite simple all are on the catalog side only. The admin section is not touched. (1) Go to the file includes -> languagues -> english --> product_info.php (or to your relevent language directory ie french, dutch, etc) Before the ?> at the end of the file add. define('TEXT_CLICK_TO_VIEW', 'Click to view video'); define('TEXT_WATCH_VIDEO','Click Here to watch a video of the product:'); (2) In the same place create a file called "product_reviews_video.php". Add the following to this file: /* $Id: product_reviews.php,v 1.6 2003/06/05 23:23:52 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('NAvb script:popupWindow(\\\'' . tep_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id']) . '\\\')">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>'); //--></script> <noscript> <?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?> </noscript> <?php } echo '<p><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now') . '">' . tep_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . '</a></p>'; ?> </td> </tr> </table> </td> </table></td> </tr> </table></td> <!-- body_text_eof //--> [/code] (6) The final step is to add the new file to includes/filenames.php. Find the following line: define('FILENAME_PRODUCT_REVIEWS', 'product_reviews.php'); and below this add: define('FILENAME_PRODUCT_REVIEWS_VIDEO', 'product_reviews_video.php'); That should be it. If you have problems let me know and I will try and help you. (Thats it from me for today though!) OK - Now why has it completely screwed up what I typed?????
sereleg Posted October 1, 2009 Posted October 1, 2009 Is theere something wrong with the code in product_reviews_video.php ? I got the error below. Parse error: parse error in C:\webdev\Apache\Apache2\htdocs\oscommerce-2.2rc2a\catalog\product_reviews_video.php on line 8 Thanks Sereleg
Recommended Posts
Archived
This topic is now archived and is closed to further replies.