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.
I have one question though
Is there any way to add the quick icon function in the quick replies? because i only have the icon when you go to "advance reply"
this is an awesome hack, but my site is all automotive and i wanna add www.streetfire.net video posting ability on my site. how can i do that??
I'll be adding it to the next version.
Quote:
Originally Posted by raagaswaram
hey
im using rss feed to get youtube rss feed to post it in thread i put
{rss:description}
[youtube]{rss:link}[/youtube]
and in the thread it displays as this since there is no watch in the link is there anyway i can just get the id or is there any way you can modify the code so it works like this
First off, the BBCode to HTML is done by vB itself, not my plugin. I didn't want to reinvent the wheel. So if this was actually a bug, it'd be a vB one.
Second, it's not a bug, it's actually intended behavior:
Code:
some text underlined text
If you don't want something to parse, then use the [ noparse ] tag.
Code:
some text [u]underlined text[/u]
What you posted only works here because this site doesn't have my plugin installed and therefore doesn't know about / parse the [youtube] tag.
outstanding add on. Worked very well. I have 2 quick questions...
1. Is there any plans to upgrade or add where a hosted video (Other than google or youtube) can be embedded in the thread. Say if I hosted a video on my web space, would there be an ability to embed it?
2. Is there a way to not have "Google Video" appear in the box of the video player?