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 was wondering if there is a way to edit the template for this mod or a way to remove the table that holds the flash object. I want it just to display the embedded code and not the complete table that holds the video in the post.
Could that be possible?
Thanks...
Yeah, just go into the custom BBCode area of your admin area and edit the replacement HTML.
Does anyone have a clue on how to hack the files in order to allow only a certain usergroup to post the Youtube videos? I tried to call $vbulletin->userinfo['usergroupid'], but that doesn't do any good :-/
This plugin uses the built in BBCode system to do it, so you'd need a plugin like the BBCode permissions or whatever to control it probably.
Hi...Trying to install this and obviously I am doing something wrong. It says on the first page it will create the custom BBcode tags...but I don't see then anywhere. I uploaded the two GIF images to my server using an FTP client and then installed this "product"
Yet nothing happens...no buttons, [youtube][/youtube] dont work...nothing. I know I did not do something I am supposed to, but don't know what? Help?
I am having a small problem with displaying the youtube bbcode in vblogetin. The author thinks the following line can cause the problem. Is there any way to modify it to work with vBlogetin. Here is a link with no video . Thanks in advance
Code:
if ( $_REQUEST['editorid'] || $_REQUEST['towysiwyg'] || ($_POST['preview'] && $_REQUEST['do'] != 'updatepost') || ($vbulletin->userinfo['showvbcode'] == 2 && $_REQUEST['do'] == 'editpost') ) {
// Do nothing (it was easier this way than to reverse the if statement)
Any ideas why this won't work with vBadvanced? I just get a box saying
"ERROR: If you can see this, then YouTube is down or you don't have Flash installed."