Old modules and plugins

Note: This database has been replaced by the Moodle Plugins Directory.

Small Hack: FLV resource - force no frames

Type: Small Hack
Requires: Moodle 1.7 or later

This small hack forces flv files to not be displayed in a frame.

1) Modify moodle/mod/resource/type/file/resource.class.php around line 218 with following code (highlighted in blue)

$mimetype = mimeinfo("type", $resource->reference);
$pagetitle = strip_tags($course->shortname.': '.format_string($resource->name));

// GT MOD May 2007 - force no frames for flv files
if ($mimetype == "video/flash"){
// END GT MOD MAY 2007

Record added by Guy Thomas - Friday, 18 January 2008, 8:22 PM
Last modified - Friday, 18 January 2008, 8:22 PM