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.
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]
[youtube]hl2UUunlI2Q[/youtube]
[youtube="http://www.youtube.com/watch?v=hl2UUunlI2Q"]Aston Martin Crash[/youtube]
[youtube="hl2UUunlI2Q"]Aston Martin Crash[/youtube]
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.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
It would be cool if the tag was switched to just "video" and could be a link from googe, youtube, break.com, streetfire.net, fquick.com, ebaumsworld .....
It would be cool if the tag was switched to just "video" and could be a link from googe, youtube, break.com, streetfire.net, fquick.com, ebaumsworld .....
Then how would it tell them apart if only the ID was entered?
As for the other sites, Break.com's embed code has nothing in common with the URL you view the video at, so it's out. Streetfire is doable. fquick.com wouldn't be used by many people, so it's not worth my time. ebaumsworld is also nearly there (is it really that hard to link to the video rather than embed it?).
I was just saying entire urls ... Not sure how many people picked up on the ability for it to embed with just the ID.
I just liked the idea of embedding it because it keeps users on my site. Keeps them looking at my ads, keeps my traffic up. At least to a small extent.
Great mod, but shouldn't it be able to extract the title of a youtube video?
Define "shouldn't it be able".
Is it possible? Of course, assuming you have a server that allows fsockopen(). Will I add the feature to my plugin? Nope, there are other plugins out there if you want that. Mine's simple on purpose.
Is it possible? Of course, assuming you have a server that allows fsockopen(). Will I add the feature to my plugin? Nope, there are other plugins out there if you want that. Mine's simple on purpose.
Thanks for the quick answer. Great mod none-theless.
Nope, only YouTube and Google Video currently. I plan on adding IFILM and Metacafe at some point though.
Break.com won't work because their embed code has nothing in common with the URL in your address bar. I mean, it could work, but it'd be too hard for the average use to be worth it. Better off linking to Break.com.