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 :: Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Youtube Plugin Change [message #159682] Tue, 16 June 2009 12:34 Go to next message
nozafc is currently offline  nozafc   United Kingdom
Messages: 75
Registered: April 2009
Karma: 0
Member
remove from buddy list
stop ignoring 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

Re: Youtube Plugin Change [message #159683 is a reply to message #159682] Tue, 16 June 2009 13:09 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 27
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Great idea, however, that regex needs to be tightened. I get cold shivers when I see expressions with (.*) in them.
Message by nozafc is ignored  [reveal message]  [reveal all messages by nozafc]  [stop ignoring this user] Go to previous messageGo to next message
Message by The Witcher is ignored  [reveal message]  [reveal all messages by The Witcher]  [stop ignoring this user] Go to previous messageGo to next message
Message by nozafc is ignored  [reveal message]  [reveal all messages by nozafc]  [stop ignoring this user] Go to previous messageGo to next message
Message by The Witcher is ignored  [reveal message]  [reveal all messages by The Witcher]  [stop ignoring this user] Go to previous message
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: DailyHaHa Plugin (embeddable games)
Next Topic: Quick Reply
Goto Forum:
  

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

Current Time: Tue Feb 07 08:45:40 EST 2023

Total time taken to generate the page: 0.00804 seconds