[Xerte] Re: Moodle filter

Pat Lockley patrick.lockley at googlemail.com
Sat Apr 21 17:26:32 BST 2012


http://moodle.org/plugins/pluginversions.php?plugin=filter_xerteonlinetoolkitsfilter

On Sat, Apr 21, 2012 at 4:19 PM, Pat Lockley
<patrick.lockley at googlemail.com> wrote:
> https://github.com/patlockley/moodle-xerteonlinetoolkitsfilter
>
> updated to accept XOT[] and / or any URL (see config panel).
>
> Franck - je voudrais une version francais? M'aidez? Dans "lang"
> c'etait une livre "en" avec
> https://github.com/patlockley/moodle-xerteonlinetoolkitsfilter/blob/master/lang/en/filter_xerteonlinetoolkits.php
>
> (bad french)
>
> On Wed, Apr 18, 2012 at 5:03 AM, Franck Petit <franck-petit at live.fr> wrote:
>> I know that I'm being greedy but I vote for the Mahara plugin too!!!
>> Franck
>>
>> -----Message d'origine-----
>> De : xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] De la part de Ron Mitchell
>> Envoyé : mardi 17 avril 2012 21:04
>> À : 'Xerte discussion list'
>> Objet : [Xerte] Re: Moodle filter
>>
>> yes sounds like a good combination.
>>
>> Mahara has plug-ins and filters and by default doesn't allow any old iframe
>> to be embedded without a dedicated filter or block type at least not prior
>> to 1.5. So in 1.3 and 1.4 it's not possible to embed XOT LO's but in the new
>> release of 1.5 there's a new safeIframe feature where base url's can be
>> added to a php script and then iframes from those sites aren't stripped out
>> by the html purifier.
>> http://manual.mahara.org/en/1.5_STABLE/site_admin/extensions.html
>>
>> But I suspect it will be a while before at least some organisations upgrade
>> so a 1.3/1.4 XOT filter/block type would still be popular.
>> http://htmlpurifier.org/docs/enduser-youtube.html
>>
>> -----Original Message-----
>> From: xerte-bounces at lists.nottingham.ac.uk
>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>> Sent: 17 April 2012 17:20
>> To: Xerte discussion list
>> Subject: [Xerte] Re: Moodle filter
>>
>> so XOT by default, and then base url if added - maybe use a * afterwards to
>> say convert?
>>
>> Mahara has plugins?
>>
>> On Tue, Apr 17, 2012 at 5:03 PM, Ron Mitchell <ronm at mitchellmedia.co.uk>
>> wrote:
>>> Yes true and in fact what if someone wants the embedded iframe and
>>> below
>> that a link to open the LO in a new window which is what I usually promote
>> during training sessions. Without something unique like XOT[url] presumably
>> the current filter would try to turn that second link to an iframe too?
>>>
>>> But Franck's point is valid too - switching to html view to paste
>>> embed
>> code does cause problems for less IT confident students and staff. However
>> as I mentioned in a lot of places in Moodle, even the default 800 x 600
>> dimensions cause problems either because the activity type or the overall
>> theme and block layouts etc.
>>>
>>> Perhaps if the filter looks for the base url if configured and/or
>>> XOT[url]
>> that sorts those options and a site wide admin option for dimensions sorts
>> the dimensions at least site wide and for more control the user reverts to
>> iframe etc.
>>>
>>> Mahara XOT filter next? ;-)
>>>
>>> Ron
>>>
>>> -----Original Message-----
>>> From: xerte-bounces at lists.nottingham.ac.uk
>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat Lockley
>>> Sent: 17 April 2012 16:25
>>> To: Xerte discussion list
>>> Subject: [Xerte] Re: Moodle filter
>>>
>>> I can add parameters at the end but does that not defeat the point of
>>> the
>> filter? Surely it's easier pasting the iframe in?
>>>
>>> Then do I override if default set?
>>>
>>> I will have a look for filters that apply to certain areas but not
>>> sure if
>> it is possible - thats why I preferred the XOT[] approach as you had to
>> explicitly opt for it.
>>>
>>> On 17 Apr 2012, at 16:14, "Ron Mitchell" <ronm at mitchellmedia.co.uk> wrote:
>>>
>>>>> The filter seems to apply to all text - not sure how you tell it
>>>>> which bits to change. Moodle's documentation really sucks.<
>>>> Agreed ;-)
>>>>
>>>>> How can a link contain parameters for size?<
>>>> The multimedia filter looks for something like ?d=400x300 and resizes
>>>> the video player
>>>> http://docs.moodle.org/22/en/Media_FAQ#My_embedded_video_is_too_big.2
>>>> F small._How_can_I_change_its_display_size.3F
>>>>
>>>>> I can have XOT[] work as well<
>>>> sounds good.
>>>>
>>>> -----Original Message-----
>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat
>>>> Lockley
>>>> Sent: 17 April 2012 15:56
>>>> To: Xerte discussion list
>>>> Subject: [Xerte] Re: Moodle filter
>>>>
>>>>> The filter seems to apply to all text - not sure how you tell it
>>>>> which bits to change. Moodle's documentation really sucks.<
>>>> Agreed ;-)
>>>>
>>>>> How can a link contain parameters for size?<
>>>> The multimedia filter looks for something like ?d=400x300 and resizes
>>>> the video player
>>>> http://docs.moodle.org/22/en/Media_FAQ#My_embedded_video_is_too_big.2
>>>> F small._How_can_I_change_its_display_size.3F
>>>>
>>>>> I can have XOT[] work as well<
>>>> sounds good
>>>>
>>>> On 17 Apr 2012, at 14:30, "Ron Mitchell" <ronm at mitchellmedia.co.uk>
>> wrote:
>>>>
>>>>> Hi Pat
>>>>> just tried this and it does indeed replace the xerte LO link with
>>>>> iframe
>> code but a few issues/comments...
>>>>>
>>>>> 1. I added an LO link as part of a moodle label so that it appears
>> within the course home page and at the moment there's a bit of an issue! -
>> it breaks the rest of the course page so that nothing else is shown
>> including the links and icons to be able to edit the label and remove the
>> link.
>>>>>
>>>>> 2. For this to be useful in a production environment it really needs
>>>>> to
>> be able to take parameters for width and height as part of the link or as
>> part of the filter configuration. I know it's possible to edit filter.php
>> and change the dimensions there but that's less flexible than having
>> parameters or dimensions configurable via the admin interface. Ideally both
>> so that admin sets optimum dimensions for the moodle site wide install/theme
>> but if a link contains dimension parameters these override the defaults. At
>> the very least I'd suggest the dimensions set in filter.php should be no
>> more than 800 x 600 and probably less - in my experience most topic areas in
>> Moodle installations are narrower than 800px. I know this mostly only
>> applies to Lables but that's what a lot of people will use.
>>>>>
>>>>> 3. Having the base url is good but as use of XOT expands wouldn't
>>>>> that
>> limit potential sharing e.g. what about being able to embed
>> http://www.nottingham.ac.uk/toolkits/play_560 in the same way? Perhaps the
>> filter could look for XOT[url] as well as the base url?
>>>>>
>>>>> HTH
>>>>> Ron
>>>>>
>>>>> -----Original Message-----
>>>>> From: xerte-bounces at lists.nottingham.ac.uk
>>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Pat
>>>>> Lockley
>>>>> Sent: 17 April 2012 13:00
>>>>> To: Xerte discussion list
>>>>> Subject: [Xerte] Re: Moodle filter
>>>>>
>>>>> What does the iframe show as the src?
>>>>>
>>>>> On 17 Apr 2012, at 12:08, "Franck Petit" <franck-petit at live.fr> wrote:
>>>>>
>>>>>> Thank you Pat. It doesn't seem to work yet, unless I misunderstood
>>>>>> something. I updated the filter, modified the base url in the
>>>>>> settings as requested on the settings page by replacing the text
>>>>>> with the following
>>>>>> line: http://www.mydomain.eu/authoringtool/play.php?template_id=
>>>>>> (authoringtool is the name of the directory for my xot install) Did
>>>>>> I do something wrong?
>>>>>> Franck
>>>>>>
>>>>>> -----Message d'origine-----
>>>>>> De : xerte-bounces at lists.nottingham.ac.uk
>>>>>> [mailto:xerte-bounces at lists.nottingham.ac.uk] De la part de Pat
>>>>>> Lockley Envoyé : mardi 17 avril 2012 12:13 À : Xerte discussion
>>>>>> list Objet : [Xerte] Moodle filter
>>>>>>
>>>>>> Updated it, try again please
>>>>>>
>>>>>> _______________________________________________
>>>>>> Xerte mailing list
>>>>>> Xerte at lists.nottingham.ac.uk
>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>>>
>>>>>> This message and any attachment are intended solely for the
>>>>>> addressee and may contain confidential information. If you have
>>>>>> received this message in error, please send it back to me, and
>>>>>> immediately delete it.   Please do not use, copy or disclose the
>>>>>> information contained in this message or in any attachment.  Any
>>>>>> views or opinions expressed by the author of this email do not
>> necessarily reflect the views of the University of Nottingham.
>>>>>>
>>>>>> This message has been checked for viruses but the contents of an
>>>>>> attachment may still contain software viruses which could damage
>>>>>> your
>> computer system:
>>>>>> you are advised to perform your own checks. Email communications
>>>>>> with the University of Nottingham may be monitored as permitted by
>>>>>> UK
>> legislation.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Xerte mailing list
>>>>>> Xerte at lists.nottingham.ac.uk
>>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>>
>>>>> _______________________________________________
>>>>> Xerte mailing list
>>>>> Xerte at lists.nottingham.ac.uk
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>>
>>>>> This message and any attachment are intended solely for the
>>>>> addressee
>> and may contain confidential information. If you have received this message
>> in error, please send it back to me, and immediately delete it.   Please do
>> not use, copy or disclose the information contained in this message or in
>> any attachment.  Any views or opinions expressed by the author of this email
>> do not necessarily reflect the views of the University of Nottingham.
>>>>>
>>>>> This message has been checked for viruses but the contents of an
>> attachment may still contain software viruses which could damage your
>> computer system:
>>>>> you are advised to perform your own checks. Email communications
>>>>> with
>> the University of Nottingham may be monitored as permitted by UK
>> legislation.
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Xerte mailing list
>>>>> Xerte at lists.nottingham.ac.uk
>>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>>
>>>> This message and any attachment are intended solely for the addressee
>>>> and
>> may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it.   Please do not
>> use, copy or disclose the information contained in this message or in any
>> attachment.  Any views or opinions expressed by the author of this email do
>> not necessarily reflect the views of the University of Nottingham.
>>>>
>>>> This message has been checked for viruses but the contents of an
>> attachment may still contain software viruses which could damage your
>> computer system:
>>>> you are advised to perform your own checks. Email communications with
>>>> the
>> University of Nottingham may be monitored as permitted by UK legislation.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Xerte mailing list
>>>> Xerte at lists.nottingham.ac.uk
>>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>>
>>> This message and any attachment are intended solely for the addressee
>>> and
>> may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it.   Please do not
>> use, copy or disclose the information contained in this message or in any
>> attachment.  Any views or opinions expressed by the author of this email do
>> not necessarily reflect the views of the University of Nottingham.
>>>
>>> This message has been checked for viruses but the contents of an
>> attachment may still contain software viruses which could damage your
>> computer system:
>>> you are advised to perform your own checks. Email communications with
>>> the
>> University of Nottingham may be monitored as permitted by UK legislation.
>>>
>>>
>>>
>>> _______________________________________________
>>> Xerte mailing list
>>> Xerte at lists.nottingham.ac.uk
>>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>> This message and any attachment are intended solely for the addressee and
>> may contain confidential information. If you have received this message in
>> error, please send it back to me, and immediately delete it.   Please do not
>> use, copy or disclose the information contained in this message or in any
>> attachment.  Any views or opinions expressed by the author of this email do
>> not necessarily reflect the views of the University of Nottingham.
>>
>> This message has been checked for viruses but the contents of an attachment
>> may still contain software viruses which could damage your computer system:
>> you are advised to perform your own checks. Email communications with the
>> University of Nottingham may be monitored as permitted by UK legislation.
>>
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>>
>>
>>
>> _______________________________________________
>> Xerte mailing list
>> Xerte at lists.nottingham.ac.uk
>> http://lists.nottingham.ac.uk/mailman/listinfo/xerte



More information about the Xerte mailing list