The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Embed XHTML valid YouTube and Google Video into your posts Details »» | |||||||||||||||||||||||||||
Embed XHTML valid YouTube and Google Video into your posts
Developer Last Online: Dec 2017
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] [youtube]hl2UUunlI2Q[/youtube] [youtube="http://www.youtube.com/watch?v=hl2UUunlI2Q"]Aston Martin Crash[/youtube] [youtube="hl2UUunlI2Q"]Aston Martin Crash[/youtube] Code:
[gvideo]http://video.google.com/videoplay?docid=3688185030664621355[/gvideo] [gvideo]3688185030664621355[/gvideo] [gvideo="http://video.google.com/videoplay?docid=3688185030664621355"]1980's Izuzu Gemini Advertisement[/gvideo] [gvideo="3688185030664621355"]1980's Izuzu Gemini Advertisement[/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. Show Your Support
|
Comments |
#232
|
|||
|
|||
works great with 3.6.5
Thanks |
#233
|
|||
|
|||
Great hack, means user doesn't have to learn just the right thing to put in there
Didn't seen to like videos with the v, e.g http://www.youtube.com/v/8O6kci9orm8 (some use that format as was the old system) ended up adding the lines: Code:
'#\[YOUTUBE\]http://(www.youtube|youtube)\.com/v([\w-]+)(.*?)\[/YOUTUBE\]#i', '[VALIDYOUTUBE' . $ytgv_key . ']$2[/VALIDYOUTUBE' . $ytgv_key . ']', not important but I also didn't want all that table data and such, so replaced the code with basic embed code as shown is on youtube pages for anyone seeing the attachment, it is NOT the correct version/file, download that from the top post of this page the attached file has the edits I mentioned above(accepts /v/ and outputs simple embed code), works for me |
#234
|
|||
|
|||
Quick question. You said this in instructions:
Quote:
Thanks |
#235
|
|||
|
|||
OK I got it installed but isn't working. I am using version 3.6.0
Will this work on that version?? Anybody else using that same version? |
#236
|
||||
|
||||
How can I get this to work in the quick reply box?
|
#237
|
||||
|
||||
<< installed
working great in 3.6.0 and 3.6.5 thanks and great job!! yah me too!! would love and appreciate if someone can say how to get this working in the QR box. |
#238
|
||||
|
||||
Sorry, don't know.
|
#239
|
||||
|
||||
no worries... as the saying goes..
beggers can't be choosers great mod anyway. thanks!! oh... not to push my luck... er... how about any chance of adding other flashsites? like ... veoh, dailymotion, or metacafe? (if you even feel like it. ) |
#240
|
|||
|
|||
I installed this but it only has the Google icon, no YouTube icon.
|
#241
|
||||
|
||||
wicked m8ty works a treat 3.6.5
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|