Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Embed XHTML valid YouTube and Google Video into your posts Details »»
Embed XHTML valid YouTube and Google Video into your posts
Mod Version: 2.2.0, by Viper007Bond (Coder/Designer) Viper007Bond is offline
Developer Last Online: May 2012 I like it Show Printable Version Email this Page

vB Version: 3.6.8 Rating: (73 votes - 4.74 average) Installs: 1039
Released: 05 Nov 2006 Last Update: 24 Oct 2007 Downloads: 4161
Not Supported Uses Plugins Additional Files Re-usable Code  

==============================
DON'T FORGET TO CLICK INSTALL!
==============================


Just thought I'd share what I did to allow my users to embed YouTube and Google Video videos into posts on my forum. This is my very first mod I've made since switching to vB, so forgive me if I screwed something up.


Demo:

http://forums.finalgear.com/test-for...-thread-14892/

The black bar will be different for you as it'll match your theme (it uses the same style as the whole quick reply box).


Upgrading from v1.x:

Just remove the plugin you added before (manage plugins -> delete) and then continue on to the installation instructions.

If you already have v2.x installed, you do NOT need to do this.


Installation:

Download and install the attached product. It will automatically create the new custom BBCode and add in some filtering plugins.

Save the two attached images and upload them to /images/editor/.


Usage:

Here's some examples:


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


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

Using vBAdvanced? It lacks the hook this plugin uses apparently, so if you wish to use this plugin with it, you need to use only the video ID and NOT the full URL for it to display correctly. Nothing I can do about it, it's vBAdvanced's fault.


How do I customize the look of the new box thingies?

Just edit the new custom BBCode items. It's in the admin area, near the bottom.

Download Now

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

Screenshots

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 05 Nov 2006, 23:08
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
CHANGELOG:
  • v2.2.0: new feature -- increase video size (to 150%)
  • v2.0.2: update to YouTube video sizes to match YouTube
  • v2.0.1: minor bug in the resetting invalid BBCode calls plugin
  • v2.0.0: complete recode from the ground up!
  • v1.0.1: allow for no "www." in YouTube URLs (thanks alahnae!)
  • v1.0.0: initial release

Last edited by Viper007Bond; 24 Oct 2007 at 12:06.
Reply With Quote
  #3  
Old 05 Nov 2006, 23:43
boyrules boyrules is offline
 
Join Date: Oct 2006
Not Showing your tube Video

Everything Is Looking Fine ..

..but The yutube video is not showing in the post....

please fix it
Reply With Quote
  #4  
Old 05 Nov 2006, 23:48
abramelin's Avatar
abramelin abramelin is offline
 
Join Date: Mar 2006
too much tables :/ why dont you use less tables or make tableless . if you optimize the code then it will be great.
Reply With Quote
  #5  
Old 06 Nov 2006, 00:14
Wachtmeister's Avatar
Wachtmeister Wachtmeister is offline
 
Join Date: Apr 2004
Isn't it easier to define a custom vbCode?

I have one to insert Youtube Videos very easy:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/ejOJkcs-a7s"></param><embed src="http://www.youtube.com/v/ejOJkcs-a7s" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
__________________
Gastrohammer
Reply With Quote
  #6  
Old 06 Nov 2006, 00:37
SuperJETT SuperJETT is offline
 
Join Date: Jan 2006
Very nice, installed.
Reply With Quote
  #7  
Old 06 Nov 2006, 00:42
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Originally Posted by boyrules
Everything Is Looking Fine ..

..but The yutube video is not showing in the post....

please fix it
Link me to a page where it doesn't please so I can see what's wrong.
Reply With Quote
  #8  
Old 06 Nov 2006, 00:42
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Originally Posted by abramelin
too much tables :/ why dont you use less tables or make tableless . if you optimize the code then it will be great.
Super simple to make it tableless. Heck, you could even just do a standard <object> and nothing else if you wanted. I just used a table to make it match most forums.
Reply With Quote
  #9  
Old 06 Nov 2006, 00:44
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Originally Posted by Wachtmeister
Isn't it easier to define a custom vbCode?
That's exactly what I did. However, via the standard vbCode, you cannnot have it accept the full video URL, only the ID. My little snippet of PHP transforms the full URL into a format that vB can handle.

Originally Posted by Wachtmeister
I have one to insert Youtube Videos very easy:

<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/ejOJkcs-a7s"></param><embed src="http://www.youtube.com/v/ejOJkcs-a7s" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Yeah, that's exactly what mine does, just with a table for style and no <embed> as that's not valid XHTML.

As said though, you can do any styling/HTML you want, it's the PHP that is the real meat of my little plugin.
Reply With Quote
  #10  
Old 06 Nov 2006, 00:59
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Someone just posted this the other day.

http://www.vbulletin.org/forum/showt...hlight=youtube
__________________
-=morrow=-
Reply With Quote
  #11  
Old 06 Nov 2006, 01:49
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Originally Posted by morrow
Someone just posted this the other day.

http://www.vbulletin.org/forum/showt...hlight=youtube
That's just standard custom BBCode. Anyone can do that and I only provided how to do it for those who couldn't figure out how to do it themselves.

The real meat and point of this plugin is that it can accept full URLs rather than just the ID of the video.

Last edited by Viper007Bond; 06 Nov 2006 at 02:17.
Reply With Quote
  #12  
Old 06 Nov 2006, 08:14
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Real name: André
Can you add wma and qt at the next Update please ?

Deinstalled the Plugin - to much Serverload. Take a look at the AnyMedia Code.

Last edited by redlabour; 06 Nov 2006 at 08:29.
Reply With Quote
  #13  
Old 06 Nov 2006, 08:38
Viper007Bond's Avatar
Viper007Bond Viper007Bond is offline
 
Join Date: Oct 2006
Originally Posted by redlabour
Can you add wma and qt at the next Update please ?
Standard custom BBCode should be enough to take care of that. Google will provide you with the needed HTML to do it.

Originally Posted by redlabour
Deinstalled the Plugin - to much Serverload.
Eh, how so? It's just a little bit of regex that's run on each post. And actually, think it only runs on new posts and is cached on old ones.
Reply With Quote
  #14  
Old 06 Nov 2006, 10:52
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
Looks good, Is there a way to enable/disable this to certain forums only tho?
Reply With Quote
  #15  
Old 06 Nov 2006, 14:34
Pagandream Pagandream is offline
 
Join Date: Jan 2004
great work!
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
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 05:26.

Layout Options | Width: Wide Color: