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 |
#182
|
||||
|
||||
Is there someway that this can be used for like User Profiles? so they just need to insert the link and a profile field and it would show up in their profile?
|
#183
|
|||
|
|||
Quote:
AS for a common tag, thats what Anymedia does, unfortantly it's still beta. I'd rather lose the ability to have it just play based on ID, to gain the ability to type one tag and have to enter the full URL. |
#184
|
||||
|
||||
Quote:
Quote:
Remove it and it should work fine. Code:
[YOUTUBE]http://www.youtube.com/watch?v=90M39W9FIKA[/YOUTUBE] |
#185
|
||||
|
||||
Quote:
Something like this: Code:
<if condition="$post['field9']"><object width="425" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/$post['field9']"><param name="movie" value="http://www.youtube.com/v/$post['field9']" /><param name="wmode" value="transparent" /></object></if> |
#186
|
||||
|
||||
Quote:
I will make sure to add Streetfire in the recode that I'm currently working on. |
#187
|
|||
|
|||
Quote:
Code:
Did I miss something? Late Model Rollover Crash (VIDEO) www.localracechat.com |
#188
|
||||
|
||||
All my plugin does is transform the full URL into just the ID so the built in BBCode parser can use the custom BBCode this plugin adds to it can replace it with some working HTML.
So, since you're directly entering the ID and you're using vBAdvanced which doesn't even make use of my plugin, all you're left with is the custom BBCode that's been added to the list in the admin area by my plugin. So, did you modify the BBCode at all there or something? I ask 'cause this is the HTML that should be displayed: HTML Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" style="margin:10px 0"> <thead> <tr> <td class="tcat" colspan="2" style="text-align:center"> <a href="http://www.youtube.com/watch?v=hl2UUunlI2Q" title="View this video at YouTube in a new window or tab" target="_blank">YouTube Video</a> </td> </tr> </thead> <tbody> <tr> <td class="panelsurround" align="center"> <object width="425" height="340" type="application/x-shockwave-flash" data="http://www.youtube.com/v/frRx1CD-gts"> <param name="movie" value="http://www.youtube.com/v/frRx1CD-gts" /> <param name="wmode" value="transparent" /> <em><strong>ERROR:</strong> If you can see this, then <a href="http://www.youtube.com/">YouTube</a> is down or you don't have Flash installed.</em> </object> </td> </tr> </tbody> </table> HTML Code:
<table class="tborder" cellpadding="6" cellspacing="1" border="0" width="400" style="margin:10px 0"> <thead> <tr> <td class="tcat" colspan="2" style="text-align:center"> <a |
#189
|
|||
|
|||
No I installed it per the instructions.. Uploded the plugin then the images. I made no changes to the custom bb codes at all.
|
#190
|
||||
|
||||
I added the mod, seems to work only if I do not use the full url, when I use the full url I am getting the box, but not video
|
#191
|
||||
|
||||
Weird. Does it work on your actual forum?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|