Browse Source

[svn r22182] FS#2867 - The online editor: A correction in the video content template.

Ivan Tcholakov 15 years ago
parent
commit
e1514f5ee3
2 changed files with 53 additions and 47 deletions
  1. 26 23
      main/install/dokeos_main.sql
  2. 27 24
      main/install/update-db-1.8.5-1.8.6.inc.php

+ 26 - 23
main/install/dokeos_main.sql

@@ -1888,29 +1888,32 @@ INSERT INTO system_template (title, comment, image, content) VALUES
 			<tbody>
 			<tr>
 			<td style="width: 50%; vertical-align: top;">
-			                
-        <div style="border-style: none; overflow: hidden; height: 200px; width: 300px; background-color: rgb(220, 220, 220); background-image: url({REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/flvPlayer.gif); background-repeat: no-repeat; background-position: center center;"><script src="{REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/swfobject.js" type="text/javascript"></script>
-        <div id="player810625"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
-        <div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=400 height=200 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
-
-        </div>
-        <script type="text/javascript">
-	var s1 = new SWFObject("{REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/mediaplayer.swf","single","400","200","7");
-	s1.addVariable("width","400");
-	s1.addVariable("height","200");
-	s1.addVariable("autostart","false");
-	s1.addVariable("file","{REL_PATH}main/default_course_document/video/flv/example.flv");
-s1.addVariable("repeat","false");
-	s1.addVariable("image","");
-	s1.addVariable("showdownload","false");
-	s1.addVariable("link","{REL_PATH}main/default_course_document/video/flv/example.flv");
-	s1.addParam("allowfullscreen","true");
-	s1.addVariable("showdigits","true");
-	s1.addVariable("shownavigation","true");
-	s1.addVariable("logo","");
-	s1.write("player810625");
-</script></div>
-			   	
+
+ 				<div style="text-align: center;" id="player810625-parent">
+					<div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220); background-repeat: no-repeat; background-position: center center;">
+						<script src="{REL_PATH}main/inc/lib/swfobject/swfobject.js" type="text/javascript"></script>
+						<div id="player810625"><a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Get the Flash Player</a> to see this video.
+							<div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
+						</div>
+						<script type="text/javascript">
+							var s1 = new SWFObject("{REL_PATH}main/inc/lib/mediaplayer/player.swf","single","320","240","7");
+							s1.addVariable("width","320");
+							s1.addVariable("height","240");
+							s1.addVariable("autostart","false");
+							s1.addVariable("file","{REL_PATH}main/default_course_document/video/flv/example.flv");
+							s1.addVariable("repeat","false");
+							s1.addVariable("image","");
+							s1.addVariable("showdownload","false");
+							s1.addVariable("link","{REL_PATH}main/default_course_document/video/flv/example.flv");
+							s1.addParam("allowfullscreen","true");
+							s1.addVariable("showdigits","true");
+							s1.addVariable("shownavigation","true");
+							s1.addVariable("logo","");
+							s1.write("player810625");
+						</script>
+					</div>
+				</div>
+
 			</td>
 			<td style="background: transparent url({IMG_DIR}faded_grey.png) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 50%;">
 			<h3><br>

+ 27 - 24
main/install/update-db-1.8.5-1.8.6.inc.php

@@ -1,4 +1,4 @@
-<?php // $Id: update-db-1.8.5-1.8.6.inc.php 20713 2009-05-15 22:27:45Z cfasanando $
+<?php // $Id: update-db-1.8.5-1.8.6.inc.php 22182 2009-07-17 08:09:30Z ivantcholakov $
 /* See license terms in /dokeos_license.txt */
 /**
 ==============================================================================
@@ -942,29 +942,32 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE'))
 					<tbody>
 					<tr>
 					<td style="width: 50%; vertical-align: top;">
-					                
-		        <div style="border-style: none; overflow: hidden; height: 200px; width: 300px; background-color: rgb(220, 220, 220); background-image: url({REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/flvPlayer.gif); background-repeat: no-repeat; background-position: center center;"><script src="{REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/swfobject.js" type="text/javascript"></script>
-		        <div id="player810625"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
-		        <div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=400 height=200 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
-		
-		        </div>
-		        <script type="text/javascript">
-			var s1 = new SWFObject("{REL_PATH}main/inc/lib/fckeditor/editor/plugins/flvPlayer/mediaplayer.swf","single","400","200","7");
-			s1.addVariable("width","400");
-			s1.addVariable("height","200");
-			s1.addVariable("autostart","false");
-			s1.addVariable("file","{REL_PATH}main/default_course_document/video/flv/example.flv");
-		s1.addVariable("repeat","false");
-			s1.addVariable("image","");
-			s1.addVariable("showdownload","false");
-			s1.addVariable("link","{REL_PATH}main/default_course_document/video/flv/example.flv");
-			s1.addParam("allowfullscreen","true");
-			s1.addVariable("showdigits","true");
-			s1.addVariable("shownavigation","true");
-			s1.addVariable("logo","");
-			s1.write("player810625");
-		</script></div>
-					   	
+
+					<div style="text-align: center;" id="player810625-parent">
+					<div style="border-style: none; overflow: hidden; width: 320px; height: 240px; background-color: rgb(220, 220, 220); background-repeat: no-repeat; background-position: center center;">
+						<script src="{REL_PATH}main/inc/lib/swfobject/swfobject.js" type="text/javascript"></script>
+						<div id="player810625"><a href="http://www.macromedia.com/go/getflashplayer" target="_blank">Get the Flash Player</a> to see this video.
+							<div id="player810625-config" style="overflow: hidden; display: none; visibility: hidden; width: 0px; height: 0px;">url={REL_PATH}main/default_course_document/video/flv/example.flv width=320 height=240 loop=false play=false downloadable=false fullscreen=true displayNavigation=true displayDigits=true align=left dispPlaylist=none playlistThumbs=false</div>
+						</div>
+						<script type="text/javascript">
+							var s1 = new SWFObject("{REL_PATH}main/inc/lib/mediaplayer/player.swf","single","320","240","7");
+							s1.addVariable("width","320");
+							s1.addVariable("height","240");
+							s1.addVariable("autostart","false");
+							s1.addVariable("file","{REL_PATH}main/default_course_document/video/flv/example.flv");
+							s1.addVariable("repeat","false");
+							s1.addVariable("image","");
+							s1.addVariable("showdownload","false");
+							s1.addVariable("link","{REL_PATH}main/default_course_document/video/flv/example.flv");
+							s1.addParam("allowfullscreen","true");
+							s1.addVariable("showdigits","true");
+							s1.addVariable("shownavigation","true");
+							s1.addVariable("logo","");
+							s1.write("player810625");
+						</script>
+					</div>
+					</div>
+
 					</td>
 					<td style="background: transparent url({IMG_DIR}faded_grey.png) repeat scroll center top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; vertical-align: top; width: 50%;">
 					<h3><br>