Removed <object> tag that wraps around flowplayer link, which causes the movies are...
authorcindy li <cli@ocad.ca>
Thu, 6 Jan 2011 17:04:49 +0000 (17:04 -0000)
committercindy li <cli@ocad.ca>
Thu, 6 Jan 2011 17:04:49 +0000 (17:04 -0000)
http://atutor.ca/view/3/21543/1.html

docs/mods/_standard/flowplayer/module_format_content.php

index 520f21c..983686c 100644 (file)
@@ -10,26 +10,22 @@ $flowplayerholder_def = '$f("*.'.$flowplayerholder_class.'"';   // javascript de
 
 // .flv
 preg_match_all("#\[media[0-9a-z\|]*\]([.\w\d]+[^\s\"]+)\.flv\[/media\]#i",$_input,$media_matches[],PREG_SET_ORDER);
-$media_replace[] ="<object>\n".
-                  "  <div>\n".
+$media_replace[] ="  <div>\n".
                   "    <a class=\"".$flowplayerholder_class."\" style=\"display:block;width:##WIDTH##px;height:##HEIGHT##px;\" href=\"##MEDIA1##.flv\"></a>\n".
                   "  </div>\n".
                   "  <div style=\"margin-top:-2em;\">\n".
                   "    <a href=\"##MEDIA1##.flv\">##MEDIA1##.flv</a>\n".
-                  "  </div>\n".
-                  "</object>";
+                  "  </div>\n";
 
 // .mp4
 preg_match_all("#\[media[0-9a-z\|]*\]([.\w\d]+[^\s\"]+)\.mp4\[/media\]#i",$_input,$media_matches[],PREG_SET_ORDER);
 //$media_replace[] ="<a class=\"".$flowplayerholder_class."\" style=\"display:block;width:##WIDTH##px;height:##HEIGHT##px;\" href=\"".AT_BASE_HREF."get.php/".$_content_base_href."##MEDIA1##.mp4\"></a>";
-$media_replace[] ="<object>\n".
-                  "  <div>\n".
+$media_replace[] ="  <div>\n".
                   "    <a class=\"".$flowplayerholder_class."\" style=\"display:block;width:##WIDTH##px;height:##HEIGHT##px;\" href=\"##MEDIA1##.mp4\"></a>\n".
                   "  </div>\n".
                   "  <div style=\"margin-top:-3em;\">\n".
                   "    <a href=\"##MEDIA1##.mp4\">##MEDIA1##.mp4</a>\n".
-                  "  </div>\n".
-                  "</object>";
+                  "  </div>\n";
 
 //// .mov
 //preg_match_all("#\[media[0-9a-z\|]*\]([.\w\d]+[^\s\"]+)\.mov\[/media\]#i",$_input,$media_matches[],PREG_SET_ORDER);