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

vB Version: 4.1.2 Rating: (79 votes - 4.90 average) Installs: 730
Released: 01 Apr 2011 Last Update: 23 May 2011 Downloads: 3290
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.
Comments
  #2  
Old 01 Apr 2011, 17:55
voglermc's Avatar
voglermc voglermc is offline
 
Join Date: Oct 2006
Real name: Mark V
Sweet! Nominated!
Reply With Quote
  #3  
Old 01 Apr 2011, 18:06
fragov fragov is offline
 
Join Date: Mar 2005
Location: UA
You da man!
Reply With Quote
  #4  
Old 01 Apr 2011, 19:00
fragov fragov is offline
 
Join Date: Mar 2005
Location: UA
How it can be changed to replace link to bbcode on newpost & newreply not in quotes?
Reply With Quote
  #5  
Old 02 Apr 2011, 04:30
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Works as it says.
Reply With Quote
  #6  
Old 02 Apr 2011, 13:14
Sforums Sforums is offline
 
Join Date: Dec 2010
Great job!
5 star and nominated.
Reply With Quote
  #7  
Old 02 Apr 2011, 14:21
grc grc is offline
 
Join Date: Oct 2005
10 second install! Works as described. Good job!

I wonder if the code can be modified to do the same with links to Picasa web albums, presenting them as slide shows?
Reply With Quote
  #8  
Old 02 Apr 2011, 20:40
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
@grc: sure it can. It basically checks for an occurence in the html-string, grabs a part of it (in this case the video-id) and replaces it with another string.
If you can give me specific information on how that picasa thing is formed, I can write you a plugin for that purpose.
Reply With Quote
  #9  
Old 02 Apr 2011, 20:55
thr45h3r's Avatar
thr45h3r thr45h3r is offline
 
Join Date: Mar 2010
Thanks works great
Reply With Quote
  #10  
Old 02 Apr 2011, 23:12
Gemma's Avatar
Gemma Gemma is offline
 
Join Date: Apr 2004
Real name: Gemma
Thanks a lot
__________________

Reply With Quote
  #11  
Old 03 Apr 2011, 09:19
SpeedyHire SpeedyHire is offline
 
Join Date: May 2005
Real name: Phil
nice one, thanks
Reply With Quote
  #12  
Old 03 Apr 2011, 10:52
ProFifaLeagues's Avatar
ProFifaLeagues ProFifaLeagues is offline
 
Join Date: Aug 2009
Real name: Rob
Will this work below 4.1.2????
Reply With Quote
  #13  
Old 03 Apr 2011, 18:18
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Originally Posted by rammieone View Post
Will this work below 4.1.2????
It should work, yes. Only one way to find out :P
I started and developed the plugin on vB 4.1.2 so I can't guarantee it works with older versions.
Reply With Quote
  #14  
Old 03 Apr 2011, 18:41
zelnik zelnik is offline
 
Join Date: Aug 2008
brilliant thanks
Reply With Quote
  #15  
Old 03 Apr 2011, 18:43
grc grc is offline
 
Join Date: Oct 2005
Originally Posted by Disasterpiece View Post
@grc: sure it can. It basically checks for an occurence in the html-string, grabs a part of it (in this case the video-id) and replaces it with another string.
If you can give me specific information on how that picasa thing is formed, I can write you a plugin for that purpose.
Cool - here's a link to a slide show:


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

username: nazarenealvin
albumname: 2010NewCross

Is it do-able?

Last edited by grc : 03 Apr 2011 at 19:53. Reason: Edited to supply correct embed code
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 08:21.

Layout Options | Width: Wide Color: