![]() |
Embed XHTML valid YouTube and Google Video into your posts
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: Code:
[youtube]http://www.youtube.com/watch?v=hl2UUunlI2Q[/youtube] Code:
[gvideo]http://video.google.com/videoplay?docid=3688185030664621355[/gvideo] 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. |
CHANGELOG:
|
Everything Is Looking Fine ..
..but The yutube video is not showing in the post.... please fix it |
too much tables :/ why dont you use less tables or make tableless . if you optimize the code then it will be great.
|
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> |
Very nice, installed.
|
Quote:
|
Quote:
|
Quote:
Quote:
As said though, you can do any styling/HTML you want, it's the PHP that is the real meat of my little plugin. :) |
|
Quote:
The real meat and point of this plugin is that it can accept full URLs rather than just the ID of the video. ;) |
Can you add wma and qt at the next Update please ? :)
Deinstalled the Plugin - to much Serverload. Take a look at the AnyMedia Code. ;) |
Quote:
Quote:
|
Looks good, Is there a way to enable/disable this to certain forums only tho?
|
great work!
|
Great Hack! Thanks for sharing!
Maybe you can help me and possibly a few other users. Currently I use YouTube's embed HTML to post YTs on my forum, though you hack will make it easier. It works great! I have hacked my site to send out HTML emails of posts but the video is not shown in the html email, even though it works on the website. Is this possible? Do you know what I need to do to make it work? Thanks! Barry |
if we start to show some videos from those sites , is it use bandwidth of our server ??
Tnx |
Quote:
It's probably possible to write a plugin to disable certain BBCodes in certain forums, but this one is not it. ;) |
Quote:
It just transforms: [youtube]http://www.youtube.com/watch?v=9VOYF4jVo-Q&eurl=[/youtube] to: [youtube]9VOYF4jVo-Q[/youtube] so that the built-in custom BBCode parser can make use of it. |
thanks great job.
|
How do you install this? I tried to import but it told me it was a plugin. Where do you need to attach it, and what do I fill in the fields?
Thanks =) |
great thanks
just put a <center></center> on both and its perfect |
Quote:
|
Quote:
Sorry man, I was a bit dumb, thanks for the help =) |
No worries. :)
|
Since this hack uses a feature which is built in the code of vbulletin, I wonder if there is a way to embed mp2 and wmv videos hosted in the forum's server.
Quote:
Processor usage I imagine that it is on the machine of the user executing the video. |
Quote:
Quote:
As for CPU usage, uh, I guess technically yeah, but it's just a Flash file. Flash is all over the web and is probably gonna use like 0.1% of your CPU... |
why does the parser work just for goolge and not for the youtube?
tested it with this http://youtube.com/watch?v=BWW4Np5Tn0M |
Thank you this great video hacks.
|
Quote:
Plugin updated to make "www." optional. :) |
Installed thanks so much l love it ...... xoxoxoxoxox
|
I'm using the following code for the plugin:
PHP Code:
|
Don't forget that the Google Video ID can be negative. ;)
And I wasn't aware of Google.co.uk. I'll update and good thinking on the integer only. Thanks. :) |
Great plug-in and works perfectly - thanks.
One thing - can you put update details in a revision list in the main entry post (above) for the plug-in - that way we don't have to scroll through pages of posts to find out what updates and new features have been made and added. Thanks. |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=130868#2 |
Quote:
|
Great hack- thank you sir
|
Youtube seemed to install fine, but googlevideo isnt showing up. Any ideas?
|
Quote:
PHP Code:
|
Quote:
|
All times are GMT. The time now is 04:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|