MyBB Community Forums

Full Version: Automatic embedding of videos
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(2008-09-29, 02:06 PM)InFlames20 Wrote: [ -> ]Wow, this one for youtube is amazing.
Can you make one for Google video, MetaCafe and DailyMotion?

(2008-09-29, 02:06 PM)InFlames20 Wrote: [ -> ]Wow, this one for youtube is amazing.
Can you make one for Google video, MetaCafe and DailyMotion?

is that aimed at me?

i'll make some anyway and will be back shortly.
Heres an updated youtube one and also one for metacafe (untested) dailymotion looks a bit different and seems as though they dont want anyone to easily embed their videos automatically (i know its possible to embed each video one by one).

YouTube

Title: Youtube auto embed
Description: Auto embed a youtube video from the link.

Regular Expression:
http://(www\.)?youtube.com/watch\?v=([A-Za-z0-9_-]*)(.*)?

Replacement:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

Enabled: Yes

Parse Order: 0



Metacafe

Title: MetaCafe auto embed
Description: Auto embed a metacafe video from the link.

Regular Expression:
http://(www\.)?metacafe.com/watch/([0-9]*)/([A-Za-z0-9_-]*)/(.*)?


Replacement:
<embed src="http://www.metacafe.com/fplayer/$1/$2.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed>

Enabled: Yes

Parse Order: 0
(2008-10-15, 09:34 AM)SonicRC Wrote: [ -> ]very nice mycode Smile

But it seems not working with links like this one:
http://www.youtube.com/watch?v=ucir-9kOYzk

any idea?

updated, see post above =]
I've moved this thread directly to Mod Releases because there already seems to be a solution here Smile
What we need is a plug-in like the Auto Media Embedder for vBulletin. Which automatically turns links for dozens of different media sites into viewable content in posts.

But, that would be a huge undertaking.
I made a YT Video modification called Youtube VideoBox' if anyone forgot. The administrator can define the style of the box videos are posted in through Admin CP. And also the package includes editor buttons which paste the tags into the post.

Although our site is down right now, so you can't download it..
http://www.mybbworkshop.co.cc
I just wanted to update this thread and see if anyone knows if a full fledged video embedding modification has been released? And this is not "just" for youtube, there are maybe 100 - 200 video hosting sites out there. We need support for youtube, metacafe, dailymotion, google video, veoh, break, tubemongel, revver, aol video and yahoo video - just to name a few.

Vbulletin has an Automatic embedding media modification. This modification supports about 100 video hosting sites.

SMF has an automatic video embedding modification. This modification supports over 100 video sites.

Lack of automatic embedding is one of the reasons why I have not installed MYBB on any of my sites. I have maybe 4 - 6 domains ready for a forum, but there has to be support for this type of modifcation in mybb.

So I am updating this thread and asking if anyone knows if an automatic embedding modifcation has been released?
not that i know of but its a relatively easy one to implement just no one has the time to do it.
(2008-09-29, 05:47 PM)goughy000 Wrote: [ -> ]Heres an updated youtube one and also one for metacafe (untested) dailymotion looks a bit different and seems as though they dont want anyone to easily embed their videos automatically (i know its possible to embed each video one by one).

YouTube

Title: Youtube auto embed
Description: Auto embed a youtube video from the link.

Regular Expression:
http://(www\.)?youtube.com/watch\?v=([A-Za-z0-9_-]*)(.*)?

Replacement:
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/$2&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/$2&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>

Enabled: Yes

Parse Order: 0

Thanks for the code, it works really well but is it normal that if text is added under the YouTube URL, it doesn't show under the video in the post? Is there a workaround?

BTW, the Metacafe code doesn't work.

Thanks,
Gene
~kev~ Wrote:SMF has an automatic video embedding modification. This modification supports over 100 video sites.

Yes, it's called Aeva (Auto-Embed Video & Audio) and supports 180 video/audio sites, I sure wish someone would create such a plugin for MyBB, not with 180 sites but at least the most popular ones.

In the meantime, even though I started playing around with MyBB over a week ago and do prefer it over SMF and phpBB, I have to stick with SMF on account of Aeva plus the multitude of "packages" SMF offers for my entertainment forum.

Cheers,
Gene
(2008-10-15, 08:09 PM)Baldilocks Wrote: [ -> ]What we need is a plug-in like the Auto Media Embedder for vBulletin. Which automatically turns links for dozens of different media sites into viewable content in posts.

But, that would be a huge undertaking.

There is a new plugin released that does exactly what you want:

http://test.edidesign.ro/showthread.php?tid=6

Description: Copy links from your favorite video or audio sharing sites and paste in your posts. No mycode or other modification needed.

Cheers,
Gene
(2008-09-29, 05:47 PM)goughy000 Wrote: [ -> ]Thanks for the code, it works really well but is it normal that if text is added under the YouTube URL, it doesn't show under the video in the post? Is there a workaround?

That must be a bug, and would be great if it could be fixed.
Pages: 1 2 3