Youtube Plugin Change [message #159682] |
Tue, 16 June 2009 12:34  |
|
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 13:36] Report message to a moderator
|
|
|
|
|
|
|
Re: Youtube Plugin Change [message #159771 is a reply to message #159691] |
Mon, 22 June 2009 03:54  |
The Witcher
 Messages: 675 Registered: May 2009 Location: USA
Karma: 3
|
Senior Member |
add to buddy list ignore all messages by this user
|
|
Ok I think I get your point BBCode (FUDcode) is now recognized for video where I don't believe that was available before (I could be wrong) without allowing HTML.
I guess I am still way behind you all and trying to play catch up, but I will pay closer attention to it. I imagine it would be more practical to embed the video within the forum itself, and I know that many users would appreciate it.
Regex On the other hand is way beyond me.
Thanks
"I'm a Witcher, I solve human problems; not always using a sword!"
|
|
|