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
| Unsubscribe from topic | Remove from bookmarks 
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: 3775
Registered: December 2004
Karma: 28
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
icon6.gif  Re: Youtube Plugin Change [message #159688 is a reply to message #159684] Tue, 16 June 2009 16:02 Go to previous messageGo to next message
The Witcher is currently offline  The Witcher   United States
Messages: 675
Registered: May 2009
Location: USA
Karma: 3
Senior Member
add to buddy list
ignore all messages by this user
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'm a Witcher, I solve human problems; not always using a sword!"
Message by nozafc is ignored  [reveal message]  [reveal all messages by nozafc]  [stop ignoring this user] Go to previous messageGo to next message
icon6.gif  Re: Youtube Plugin Change [message #159771 is a reply to message #159691] Mon, 22 June 2009 03:54 Go to previous message
The Witcher is currently offline  The Witcher   United States
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!"
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: Sat Apr 26 23:02:47 EDT 2025

Total time taken to generate the page: 0.07197 seconds