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 |
#172
|
||||
|
||||
Can't get this to work. I enter the full url or just the video number and then wrap the youtube code around it and it just shows:
[youtube] h6KBiuVxOOY [/youtube] |
#173
|
|||
|
|||
click Installed. Works great on 3.6.4
thanks |
#174
|
||||
|
||||
Boo hoo, how you get it to work?
|
#175
|
|||
|
|||
Same thing here !
|
#176
|
||||
|
||||
I like this, it's nice that users can put the id or full URL as it saves me having to explain how to get the url a hundred times to members. :P
Just noticed one bug and not sure if it was posted. I was trying to make a quick explanation to users by writing the code [youtube]URL[/youtube] inside of [noparse] tags but your code still removes the full url and changes it to just an id which is a bit confusing to members (they don't know where the id came from :P). Not a big deal but you should make your hack detect if the tag is inside of [noparse] tags or not. |
#177
|
|||
|
|||
I use full url, haven't tried ID yet..works great with youtube and googlevideo. Just download the xml, and wrap around it using the tag.
Here is an example of youtube http://www.quantnet.org/forums/showthread.php?t=1506 Here is an example of googlevideo http://www.quantnet.org/forums/showthread.php?t=1229 |
#178
|
||||
|
||||
Quote:
Code:
[youtube]h6KBiuVxOOY[/youtube] |
#179
|
||||
|
||||
[QUOTE=rossco_2005;1139905]I like this, it's nice that users can put the id or full URL as it saves me having to explain how to get the url a hundred times to members. :P
Just noticed one bug and not sure if it was posted. I was trying to make a quick explanation to users by writing the code [youtube]URL[/youtube] inside of [noparse] tags but your code still removes the full url and changes it to just an id which is a bit confusing to members (they don't know where the id came from :P). Not a big deal but you should make your hack detect if the tag is inside of [noparse] tags or not. [/QUOTE] I didn't know about that tag (I'm kinda new to vB). :surprised: I do this to show users: [you[b][/b]tube]blah[/youtube] It's kinda ugly, but it gets the job done. Oh, and I'll work on making it not do anything inside [noparse] tags. My plugin transforms the URL -> ID so that the internal BBCode parser can parse it, but I didn't code it to look for [noparse]. |
#180
|
||||
|
||||
Ha har, working now. Brilliant thankyou.
|
#181
|
|||
|
|||
Quote:
Please share some ideas Thank you -K |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|