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: 793
Released: 01 Apr 2011 Last Update: 23 May 2011 Downloads: 3750
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.
  #91  
Old 22 May 2011, 01:21
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
The Mod is made vor vbulletin 4 as you can see in the details in the first post, so I give no guarantee that it runs on older versions, now you know why
Reply With Quote
  #92  
Old 22 May 2011, 02:02
Angelyco Angelyco is offline
 
Join Date: Jun 2009
Yep, I did see that, and didn't see anyone else using anything much older to know if it worked or not, so it didn't hurt to ask! So assuming I had a newer version, I wouldn't need to add anything else to the code?
Reply With Quote
  #93  
Old 22 May 2011, 15:36
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
in theory, you must check the script files where the according hooks are located and see how video tags are parsed there. Then you replace the function name with the current in the script, which doesn't seem to exist prior to vb4. The rest of the code should be generative enough that it works on vb3 too.
Reply With Quote
  #94  
Old 22 May 2011, 19:14
inigo inigo is offline
 
Join Date: May 2010
Great mod,

working without problems, v4.1.2

thanks
Reply With Quote
  #95  
Old 23 May 2011, 17:15
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Updated with version 1.4:

iPad shows replacement properly
Reply With Quote
  #96  
Old 24 May 2011, 09:54
Gamelobby's Avatar
Gamelobby Gamelobby is offline
 
Join Date: Jul 2007
Possible to do Game Trailers.?
http://www.gametrailers.com/video/de...-dirt-3/702436

Here is the embed code..

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


>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?

Thanks
Reply With Quote
  #97  
Old 24 May 2011, 12:11
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Originally Posted by Gamelobby View Post
Possible to do Game Trailers.?
http://www.gametrailers.com/video/de...-dirt-3/702436

Here is the embed code..

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


>> Or is it possible to even just add Game Trailers to work with the Video BBCode Button.?

Thanks
Hello,

Possible: yes.
But: This would go way beyond the scope of this mod.
If you'd like to have an individual solution, you can contact me via PM.
Reply With Quote
  #98  
Old 25 May 2011, 12:48
rhorman rhorman is offline
 
Join Date: Oct 2008
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?

Thanks!
__________________
-Ryan
Respawn Gaming - Co-Founder
Battle Me // Follow Me // Stalk Me
Reply With Quote
  #99  
Old 25 May 2011, 15:14
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Originally Posted by rhorman View Post
This is awesome! Could you make it so it will center the video? Or where do I change that in the XML?

Thanks!
Open the xml file, search for this code occurence:

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

Replace with:

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

3 times.

Not tested but should work.
Reply With Quote
  #100  
Old 27 May 2011, 01:19
porschegruven porschegruven is offline
 
Join Date: Jun 2010
Originally Posted by grc View Post
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?
Is there any chance you can get your plugin to work with Picasaweb slide show? Picasa is Google's photo depository.
Reply With Quote
  #101  
Old 27 May 2011, 02:08
Disasterpiece's Avatar
Disasterpiece Disasterpiece is offline
 
Join Date: Apr 2007
Sry, this is just not what it's made for. I'll think about it as a separate plugin. In the meantime you can post in the mod request section, maybe someone else picks this up before me.
Reply With Quote
  #102  
Old 04 Jun 2011, 19:53
voter's Avatar
voter voter is offline
 
Join Date: Dec 2006
After update to 4.1.3 all of our previous links based on Passive Video mode were no more useful.
Mode developer is no more "online" and I was already thinking to go "hard steps" replacing in SQL all that urls.

Thanks man, you are our life-guard, now all is working.
__________________
viparmenia.com
viparmenia.com
viparmenia.com
Reply With Quote
  #103  
Old 05 Jun 2011, 22:34
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Real name: Col
spectacular and so so easy ....superb
Reply With Quote
  #104  
Old 19 Jun 2011, 16:59
CaptCom CaptCom is offline
 
Join Date: Apr 2011
Excellent stuff, thank you!!!
Works on 4.1.3 #1
Reply With Quote
  #105  
Old 23 Jun 2011, 00:43
slozz slozz is offline
 
Join Date: Jun 2011
awesome works like a charm on 4.1.4


Regards,
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 04:55.

Layout Options | Width: Wide Color: