Home »
FUDforum Development »
Plugins and Code Hacks »
Youtube Plugin Change
Youtube Plugin Change [message #159682] |
Tue, 16 June 2009 16:34  |
nozafc
 Messages: 75 Registered: April 2009
Karma: 0
|
Member |
|
|
I've modified the Youtube Plugin ever so slightly. The one that comes with the forum requires you to embed only the video ID. Anything after that causes the plugin to fail. This stops the embeding of higher def videos which append &fmt=18/&fmt=16 onto the end of the URL. Having to extract only the VideoID from longer URL's has caused some of my users confusion. This way I can simply say put everything after the v= in the URL in-between the youtube tags
There is probably a better way to handle the Regex than I have done but I'm not that clued up on them but I've tested this and it works
[Updated on: Tue, 16 June 2009 17:36] Report message to a moderator
|
|
|
|
|
|
Re: Youtube Plugin Change [message #159691 is a reply to message #159688] |
Tue, 16 June 2009 20:07   |
nozafc
 Messages: 75 Registered: April 2009
Karma: 0
|
Member |
|
|
The Witcher wrote on Tue, 16 June 2009 21:02 | Clarify something would you?
I thought that embedding video was a very bad thing and a major security issue, has that changed or is it just an acceptance of what some people want?
I am still of the mind that I prefer to create image links to videos, wherever they are hosted, or in some cases saving the videos to my own server but still using image links to them, most people don't even realize it, and I have had several people ask how I get around the popup blockers.
|
I may be wrong but I think it's safe due to the fact that it need to be put inbetween BBCode tags and you can use regex to control what is input.
Anything put in between the youtube tags is converted to embedded youtube code therefore as far as I am aware there is no easy (if at all) way to exploit this
[Updated on: Tue, 16 June 2009 20:08] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Fri Mar 07 04:33:20 GMT 2025
Total time taken to generate the page: 0.05150 seconds