Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Auto Youtube Link-Converter Details »
Auto Youtube Link-Converter
Mod Version: 1.4, by Disasterpiece (Coder) Disasterpiece is offline
Developer Last Online: Sep 2018 I like it Show Printable Version Email this Page

vB Version: 4.1.2 Rating: (82 votes - 4.88 average) Installs: 787
Released: 01 Apr 2011 Last Update: 23 May 2011 Downloads: 3711
Not Supported Uses Plugins Re-usable Code  

So basically this is a total easy-to-implement plugin, which converts standard youtube links to video-embeds on the fly without urging users to use the video-button because I think it is unnecessary.


On post display, the plugin checks if the post contains at least 1 youtube link in the form of

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and converts them using the default vB video bbcode parser.

Code can be modified to fit your needs, altough there shouldn't be much to add.
If you're the special performance-freak, I'm curious if you can enhance data/query-performance. So let me know if you do.

INSTALL:

- Download attached XML File and import it as an addon.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Now every post containing youtube-links should display the embedded video instead.
Works with any number of youtube-links and any kind of text surrounding them.

Let me know if you have trouble/questions.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
  #46  
Old 14 Apr 2011, 18:35
dealzoid dealzoid is offline
 
Join Date: Dec 2010
I'm getting 3 copies of the same video, it's a youtube rss link, before this mod I would just get a clickable image that would redirect to youtube, undesired, so any fix? or can I disable this mod just for 1 forum

the rss link is http://gdata.youtube.com/feeds/base/...rss&time=today

thanks
Reply With Quote
  #47  
Old 16 Apr 2011, 13:49
zelnik zelnik is offline
 
Join Date: Aug 2008
Hey, any chance of getting this to work with the new youtu.be url structure?

Here's further info:

http://tracker.vbulletin.com/browse/VBIV-11734
Reply With Quote
  #48  
Old 16 Apr 2011, 20:43
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by zelnik View Post
Hey, any chance of getting this to work with the new youtu.be url structure?

Here's further info:

http://tracker.vbulletin.com/browse/VBIV-11734
Yes, that would be excellent if this mod could support this new YouTube standard ...

Regards,
Doug
Reply With Quote
  #49  
Old 22 Apr 2011, 14:45
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Supports new youtube links
Reply With Quote
  #50  
Old 22 Apr 2011, 14:55
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by Disasterpiece View Post
Supports new youtube links
Updated to 1.2 with thanks ..

Regards,
Doug
Reply With Quote
  #51  
Old 22 Apr 2011, 15:11
zelnik zelnik is offline
 
Join Date: Aug 2008
Brilliant thanks!
Reply With Quote
  #52  
Old 22 Apr 2011, 16:54
theoutlawed's Avatar
theoutlawed theoutlawed is offline
 
Join Date: Sep 2010
Good stuff, thanks for the update!
Reply With Quote
  #53  
Old 23 Apr 2011, 00:07
blue-c blue-c is offline
 
Join Date: Jan 2011
excellent - works perfectly, thanks
Reply With Quote
  #54  
Old 24 Apr 2011, 21:08
ttran ttran is offline
 
Join Date: Aug 2010
HI Disasterpiece
This 1.2 works well on 4.0.8 Thank You!
I wonder if you can do this kinda code for Flickr and Photobucket Video as well? I think this would be great.
Thanks
Reply With Quote
  #55  
Old 24 Apr 2011, 22:07
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Real name: Doug
Originally Posted by ttran View Post
HI Disasterpiece
This 1.2 works well on 4.0.8 Thank You!
I wonder if you can do this kinda code for Flickr and Photobucket Video as well? I think this would be great.
Thanks
That's a really interesting idea.....

Perhaps convert the Photobucket [URL] link to an [IMG] link ...

Drives me crazy when folks are too lazy (or don't know how) to do anything but post an HTTP:// link to their pic which takes them off our site.

Regards,
Doug
Reply With Quote
  #56  
Old 24 Apr 2011, 23:44
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
hmm, well you could. But every check costs render time the way it is now. I think this is not the appropriate way to auto-replace more than 1 particular link structure.

I coded and released this mod, because in my case, youtube links are 99% of all links which makes sense to convert them and actually improves usability. For everything else, I suggest to keep an eye out for other similar mods which cover this case.

Flickr can't be easily translated from url to embed, because it's an additional query necessary to check if the author allowed embedding, etc. So that's a bit more difficult to handle than youtube.
Reply With Quote
  #57  
Old 25 Apr 2011, 00:50
yin9 yin9 is offline
 
Join Date: Dec 2010
Thanks for this mod, it work with almost all videos in my forum, but I can't do that with this URL format:

http://www.youtube.com/v/2jql3tUuiFU


My forum have many videos with that format. Can you help me?

Too have many videos with spanish subdomain in URL and Without "www", but i solved this changing in RegEx "www\.youtube\.com" by ".*\youtube\.com":


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Thanks in advance, greetings.

Last edited by yin9; 25 Apr 2011 at 02:58.
Reply With Quote
  #58  
Old 04 May 2011, 17:16
grc grc is offline
 
Join Date: Oct 2005
Sorry if this has already been asked, but I don't see it....

A few users are complaining that their browser/device doesn't see the videos when they are embedded in a post. If they have the link to youtube, they can view in youtube (why is beyond me).

Anyway, is there a way that, say, beneath the video, the link to it on youtube can be shown?

Thanks for the nifty mod.
Reply With Quote
  #59  
Old 04 May 2011, 20:10
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Originally Posted by grc View Post
Sorry if this has already been asked, but I don't see it....

A few users are complaining that their browser/device doesn't see the videos when they are embedded in a post. If they have the link to youtube, they can view in youtube (why is beyond me).

Anyway, is there a way that, say, beneath the video, the link to it on youtube can be shown?

Thanks for the nifty mod.
I noticed this as well, but I can't explain it yet. Fact is: The mod only replaces the link code to embed code. Maybe for special devices (iphone, smartphones in general) there is a special code necessary.
I'll check this out and keep you posted.
Reply With Quote
  #60  
Old 05 May 2011, 18:57
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Updated to 1.3

Supports mobile devices for flash/embed-less browsers

Last edited by Disasterpiece; 12 May 2011 at 11:53.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:30.

Layout Options | Width: Wide Color: