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: Oct 2019 I like it Show Printable Version Email this Page

vB Version: 4.1.2 Rating: (82 votes - 4.88 average) Installs: 794
Released: 01 Apr 2011 Last Update: 23 May 2011 Downloads: 3770
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.
  #106  
Old 10 Jul 2011, 00:30
MySaltyreef's Avatar
MySaltyreef MySaltyreef is offline
 
Join Date: Jun 2011
sweet nominated it, very usable hack
Reply With Quote
  #107  
Old 25 Jul 2011, 23:12
DailyAppDream DailyAppDream is offline
 
Join Date: Jun 2011
Hey - I was wondering if it would be possible to get a quick port of this to convert iTunes links into a custom iTunes BB Code as follows?

Convert http://itunes.apple.com/app/consume-...es/id404175354

to [itunes]http://itunes.apple.com/app/consume-mobile-isp-packages/id404175354[/itunes]

(Basically replace http://itunes.apple.com with [itunes]http://itunes.apple.com then put [/itunes] at the next available space).

More than happy to ping over a bit of cash/ make a donation if it's possible?

Let me know.

Cheers,
- Adam G
Reply With Quote
  #108  
Old 27 Jul 2011, 18:14
sdavis2702 sdavis2702 is offline
 
Join Date: Apr 2008
Works great on 4.1.4... thanks buddy
Reply With Quote
  #109  
Old 14 Aug 2011, 09:08
titter's Avatar
titter titter is offline
 
Join Date: Sep 2005
Excellent mod.

Any chance to also incorporate some of the other built in video formats? Would be great to see Vimeo especially.
__________________
Justin
Reply With Quote
  #110  
Old 23 Aug 2011, 23:53
dmandem dmandem is offline
 
Join Date: Aug 2011
Works great on 4.1.5

Thank you.
Reply With Quote
  #111  
Old 18 Sep 2011, 13:49
trackpads's Avatar
trackpads trackpads is offline
 
Join Date: Aug 2003
Real name: Jason
Very nice Thanks!!!!
Reply With Quote
  #112  
Old 02 Oct 2011, 01:41
hoatran hoatran is offline
 
Join Date: Aug 2008
Something going not right here. the first post is OK, but it not work from the second post???

Can anyone help?
Reply With Quote
  #113  
Old 16 Oct 2011, 03:43
420 420 is offline
 
Join Date: Nov 2004
Does this work on VB 3.86?
Reply With Quote
  #114  
Old 24 Oct 2011, 00:45
Juggernaut's Avatar
Juggernaut Juggernaut is offline
 
Join Date: Dec 2009
Originally Posted by hoatran View Post
Something going not right here. the first post is OK, but it not work from the second post???

Can anyone help?
Same problem here.
Reply With Quote
  #115  
Old 24 Oct 2011, 14:23
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Originally Posted by Juggernaut View Post
Same problem here.
Can you give me an example link where the problem occurs?
Reply With Quote
  #116  
Old 25 Oct 2011, 07:44
rjmjr69's Avatar
rjmjr69 rjmjr69 is offline
 
Join Date: Jan 2007
Works great very speedy and seemless on 4.1.7
Reply With Quote
  #117  
Old 02 Nov 2011, 12:08
spencerp spencerp is offline
 
Join Date: Dec 2009
Hi, I'm trying to use your code to spit out the video's thumbnail which is linked. Like, making a custom bbcode for "youtubepop"

[youtubepop]JFwCCL0Vh6U[/youtubepop]

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

Youtube Popup: [youtubepop]YouTube ID[/youtubepop]
Which of course works, now trying to do your plugin as such for Fall back code:

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

Doesn't work. Any suggestions? Doing that example for your own code, still puts out an embedded video... Any thoughts? Or maybe just try the bbcode in there instead of yours? LOL
Reply With Quote
  #118  
Old 02 Nov 2011, 13:46
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
the fallback code only prints, if the detected browser is a mobile browser.

I'm not sure what you're actually trying to accomplish... do you want only the image to be displayed and no embed code at all?
Reply With Quote
  #119  
Old 02 Nov 2011, 13:58
spencerp spencerp is offline
 
Join Date: Dec 2009
Originally Posted by Disasterpiece View Post
the fallback code only prints, if the detected browser is a mobile browser.

I'm not sure what you're actually trying to accomplish... do you want only the image to be displayed and no embed code at all?
Ohhhh okay... But yeah, rather than not have it embed at all, I'd rather it provide a decent sized thumbnail from the video, and make the thumbnail link to video itself.
Reply With Quote
  #120  
Old 15 Nov 2011, 14:00
fishwestend fishwestend is offline
 
Join Date: Jun 2008
Like a dream on 4.1.8!
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 16:05.

Layout Options | Width: Wide Color: