Celtics Basketball > Celtics Media and Video

Auto Embed Video Clips

(1/4) > >>

Bob Day:
I just pulled the old YouTube video embed setup out of here. It wasn't working right and was just too much of a pain to deal with. I have something to replace it though. I'll let developer Karl Benson tell you all about it...


--- Quote ---Introduction
A modification to automatically convert links from Youtube/Myspace/GoogleVideo/Metacafe/Stage6 and MANY other sites into embedded clips without the need for bbcode.

Just post a plain link to the page in the post and the mod will do the rest.
Its the ultimate user friendly way of posting clips, but safe from a security standpoint.

New in v1.3
Use [noembed][/noembed] bbcode to prevent links being converted (By this mod only)

Requires: Auto Convert Links to be enabled.

Note: Due to a problem/bug in SMF.  If you try to post with only a link to a clip on any of the supported video sites in it, you will get an "empty message" error because there is no actual content to the post.
However I have posted a Mod to Fix the issue for this and ALL other video clip embed/type mods.

Features
o Supports the following Video sites
- YouTube (Standard & Playlists)
 > Global | Brasil | France | Ireland | Italia | Japan | Nederland | Polska | Espaņa | United Kingdom
 > Australia | Hong Kong | Mexico | New Zealand
- Google Video
 > Global(.com) | Australia(.com.au) | United Kingdom(.co.uk) | Deutsch(.de) | Espaņa(.es)
 > France(.fr) | Italia(.it) | Nederland(.nl) | Polska(.pl) | Canada(.ca)
- MetaCafe
- MySpaceTv
- Stage6 *(Requires Installation of Dixv Plugin)
- Veoh
- Gametrailers
- LiveLeak
- CellFish
- MyVideo.de
- ClipFish.de
- Liberio.it
- 123video.nl
- VSocial
- IFilm
- Sevenload
- Revver
- BrightCove
- Aniboom
- Vimeo
- Guba
- Glumbert
- Tudou
- dv.ouou
- Biku
- GameVideos
o Safe from security standpoint
- Properly validates/sanitizes/parses the video id before including it in the url
- Disables script access (allowScriptAccess="never")
o Use [noembed][/noembed] bbcode to prevent links being converted to embedded clips
o Includes a 'hard-coded' limit to the number of links PER PAGE that can be converted to embedded objects (default: 12)
- Prevents overloading pages with flash
- The limit ONLY applies to links converted by this mod (not other video clip mods)
--- End quote ---
I don't think the SMF quirk he mentioned will affect since everyone here who posts video talks about it a bit anyway. Have fun!

Roy Hobbs:
Let's test this thing:

http://youtube.com/watch?v=rlaAEvYvl5o

Roy Hobbs:
Wow.  That's tremendously easy.  Good job, Bob.

(For anybody too lazy to read through that whole post, the important part for most of us was "Just post a plain link to the page in the post and the mod will do the rest."  Very nice.)

Bob Day:

--- Quote from: Roy Hobbs on November 04, 2007, 12:27:00 AM ---Wow.  That's tremendously easy.  Good job, Bob.

(For anybody too lazy to read through that whole post, the important part for most of us was "Just post a plain link to the page in the post and the mod will do the rest."  Very nice.)

--- End quote ---
Yep, this is about as easy as it gets for video embed. I would also remind people to post at least a little bit of text with your embed post. That will allow you to make your post without me hacking SMF core files. Without the text SMF will read the post as empty. It won't count the url.

professorperkins:
Sweet. I've tried to embed some youtube clips before, and it almost made my head explode. This is a great feature.

Navigation

[0] Message Index

[#] Next page

Go to full version