FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Plugins and Code Hacks » Youtube Plugin Change
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Return to the default flat view Create a new topic Submit Reply
Youtube Plugin Change [message #159682] Tue, 16 June 2009 12:34 Go to previous message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma:
Member
add to buddy list
ignore all messages by this user
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

[Message index]
 
Read Message
Read Message
Read Message
Read Message icon6.gif
Read Message
Read Message icon6.gif
Previous Topic: DailyHaHa Plugin (embeddable games)
Next Topic: Quick Reply
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 20 17:59:56 EST 2019

Total time taken to generate the page: 0.00658 seconds