Community Add-Ons

Maintainers: Cerik
Add file to this package
Top » InfoBoxes

Youtube Video
for osCommerce Online Merchant v2.2

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>

Legend:  Download   Report

Expand All / Collapse All

Random Youtube Video V2 Cerik 23 Apr 2009  

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>

Youtube Video Cerik 2 Oct 2008