label does not show embedded flash

label does not show embedded flash

by Ger Tielemans -
Number of replies: 2

I want to embed a Flash as an <object>/<embed> piece in a label of  a questionnaire.

  • In edit mode I see the flash
  • in the student-fill-in-mode not
  • in the student-view-my-own-response it is there again (see picture)

How can I make it visible for the student in ALL modes? 

Attachment vb004.png
Average of ratings: -
In reply to Ger Tielemans

Re: label does not show embedded flash

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Ger > I want to embed a Flash as an <object>/<embed> piece in a label of a questionnaire.

When you say "a label of a questionnaire", do you mean you want to embed a Flash object in the text of a question of the "label" type? If this is what you want, then please try the following hack and report if it's working for you (it's working for me). If you mean something else, please specify.

In the latest version of file questionnaire/questiontypes/questiontypes.class.php, line 1345, replace:

format_text($this->content, FORMAT_HTML).'

with

$this->content.'

Joseph

Attachment image00.jpg