Youtube filter

Youtube filter

door Adam Schechter -
Aantal antwoorden: 9
This is the main discussion thread for the Youtube filter.

http://moodle.org/mod/data/view.php?d=13&rid=2489&filter=1

Browse the source freely and enter bugs into the tracker as needed.

Best,
Adam Schechter
Gemiddelde van de beoordelingen: Useful (1)
Als antwoord op Adam Schechter

Re: Youtube filter

door Melissa Benson -

Is it possible to enable the youtube filter but somehow have a work around where if I don't want the video auto embedded I can choose NOT to and just ahve it be a link like it is when the youtube filter is not enabled?

 

For instance, having 5 links to youtube video links in a label on a course page and NOT having them all load on the page, just have a text link. Or perhaps a link via an image?

 

I tried making a link to the youtube video link when clicking on an image thinking making it will be a work around and NOt embed it but it have displayed some code, like it was broken code.

 

I know filters are global in 1.9 but is there a work around with some sort of HTML code until we upgrade to 2.0?

 

Thanks guys!

 

Gemiddelde van de beoordelingen:  -
Als antwoord op Melissa Benson

Re: Youtube filter

door Mary Cooch (personal account) -
Foto van Documentation writers Foto van Testers

Try this

adding ?forcedownload=1 to the end of the URL

Gemiddelde van de beoordelingen:  -
Als antwoord op Mary Cooch (personal account)

Re: Youtube filter

door Melissa Benson -

hmm..didn't make a difference. i did:

 

<a href="http://www.youtube.com/watch?v=Kxh7yJC9Jr0?forcedownload=1" target="_blank" title="test">click here for video</a>

 

and it still embedded it. I disabled the youtube filter and I'm hoping others aren't relying on it but it'd be great if something like this would work before we upgrade to 2.0, so we can enable the filter and also be able to NOT embed it when desired so.

Gemiddelde van de beoordelingen:  -
Als antwoord op Melissa Benson

Re: Youtube filter

door Mary Cooch (personal account) -
Foto van Documentation writers Foto van Testers

Ah -OKglimlach Try this instead - worked for me just now (having to show as image in case the code gets cut off)

Gemiddelde van de beoordelingen:  -
Als antwoord op Mary Cooch (personal account)

Re: Youtube filter

door Melissa Benson -

I've done: <nolink><a title="tesstttt" target="_blank" href="http://www.youtube.com/watch?v=Kxh7yJC9Jr0">click here for video</a>!</nolink> <br />

 

And same thing..embedded...should the "nolink" go somewhere else?

Gemiddelde van de beoordelingen:  -
Als antwoord op Melissa Benson

Re: Youtube filter

door Mary Cooch (personal account) -
Foto van Documentation writers Foto van Testers

Well I did it like this -however, if you search for nolink in the docs, this isn't a particularly well-phrased bit of code and there's a better way to do it - but it worked for me

Gemiddelde van de beoordelingen: Useful (3)
Als antwoord op Mary Cooch (personal account)

Re: Youtube filter

door Kathy Cannon -

I cannot replicate this solution in Moodle 2.0.2.  It results in a broken link.  I would be interested to see what the HTML source code looks like when this page is delivered to the browser. In my case I get this resulting link. (NOTE: I'm substituting the actual domain name with a placeholder named "mymoodledomain.net" and I have had to create an image to display the code because the <nolink> tagging on this site is not working the way I expect.)


Gemiddelde van de beoordelingen:  -
Als antwoord op Kathy Cannon

Re: Youtube filter

door rob smith -

I've found a solution.

If you want to maintain youtube embedding functionality but control some youtube links on a per link basis then you can use the URL shortner.

http://y2u.be/

Moodle won't recognise that as a youtube link to embed.

Gemiddelde van de beoordelingen:  -