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
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!
Try this
adding ?forcedownload=1 to the end of the URL
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.
Ah -OK Try this instead - worked for me just now (having to show as image in case the code gets cut off)

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?
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
![]()
so....that worked perfectly (I couldn't display it correctly on here )
thanks so much!! : )
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.)
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.
Moodle won't recognise that as a youtube link to embed.