Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Youtube Video

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
Installation:


1. upload youtube.php to /catalog/includes/boxes/ via ftp
1b)upload utube.html to /catalog/ via ftp (ROOT)


3. Edit /catalog/includes/languages/english.php and add the following:

//Random Video Youtube Box v2.0
define('BOX_HEADING_YOUTUBELOGO','Video');

4. Edit /catalog/includes/column_right.php or column_left.php depending on which side you want the logos to reside.


//Random Video Youtube Box v2.0
include(DIR_WS_BOXES . 'youtube.php');

---------------------------------------------------------------------
OPTIONAL:

Edit /catalog/includes/languages/german.php and add the following:

//Random Video Youtube Box v2.0
define('BOX_HEADING_YOUTUBELOGO','Video');
---------------------------------------------------------------------

Change Video (Youtube Embed Javascript)
Edit /catalog/utube.html
add youtube links
Sample:
you want to insert this video
http://www.youtube.com/watch?v=m2RssWzI8G0

then you need this part m2RssWzI8G0 add here banners[0] = 'm2RssWzI8G0';

the size you need to change the very bottom
document.write('<object width="170" height="149"
The size comes twice So take care
" allowfullscreen="true" width="170" height="149"></embed></object>'

----------------------------------------------------------------------


<SCRIPT LANGUAGE="JavaScript">
function random_banner(){
var i=0;
banners = new Array();
banners[0] = 'KkpX9q0MZgs';
banners[1] = 'lx1zlm2svCU';
banners[2] = 'lKDeMWb1xwQ';
banners[3] = 'iraHuZDhNIU';
banners[4] = 'EmjNQe1AZv4';
today = new Date();
i=today.getSeconds();
n=banners.length;
return banners[i-Math.round((i-1)/n)*n];
}
var vid=random_banner();
document.write('<object width="170" height="149"><param name="movie" value="http://www.youtube.com/v/' + vid + '&hl=en&fs=1"><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/' + vid + '&hl=en&fs=1" allowfullscreen="true" width="170" height="149"></embed></object>')
</SCRIPT>
Video Youtube Box for OSC

---------------------------------------------------------------------

osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2007 osCommerce
Released under the GNU General Public License

---------------------------------------------------------------------

Video Youtube Box v1.0

Hüseyin Cerik
info@hbhk.eu
http://www.hbhk.eu/

---------------------------------------------------------------------

Installation:


1. upload youtube.php to /catalog/includes/boxes/ via ftp


3. Edit /catalog/includes/languages/english.php and add the following:

//Video Youtube Box v1.0
define('BOX_HEADING_YOUTUBELOGO','Video');

4. Edit /catalog/includes/column_right.php or column_left.php depending on which side you want the logos to reside.


//Video Youtube Box v1.0
include(DIR_WS_BOXES . 'youtube.php');

---------------------------------------------------------------------
OPTIONAL:

Edit /catalog/includes/languages/german.php and add the following:

//Video Youtube Box v1.0
define('BOX_HEADING_YOUTUBELOGO','Video');
---------------------------------------------------------------------

Change Video (Youtube Embed) Linde 24-30
Edit /catalog/includes/boxes/youtube.php

<object width="170" height="149">
<param name="movie" value="http://www.youtube.com/v/qXJXDyFlOWQ&hl=en&fs=1">
</param>
<param name="allowFullScreen" value="true">
</param>
<embed src="http://www.youtube.com/v/qXJXDyFlOWQ&hl=en&fs=1" width="170" height="149" type="application/x-shockwave-flash" allowfullscreen="true"></embed>
</object>

   Posted on: 10/02/2008     See contribution details Request Installation with Paid service