PDA

View Full Version : Mini Mods - LiveLeak/DailyMotion/CollegeHumor Vid Embed


da420
12-21-2006, 10:00 PM
This is BB Code for Embedding LiveLeak (http://www.liveleak.com) and Daily Motion (http://www.dailymotion.com) Videos. It was something I did very quick once I realized how it was done.

To add this to your forum go to:

ACP > Custom BB Codes > Add New BB Code

In the fields found in that form use this information to create the working BB Codes...



LiveLeak BB Code:


Title: Live Leak Vid Embed

Tag: llv

Replacement:

<embed src="http://www.liveleak.com/player.swf" width="450" height="370" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="autostart=false&token={param}" scale="showall" name="index" />

Example: 96feee086c

Description: For embedding LiveLeak Vids

Use {option}: No



DailyMotion BB Code:


Title: Daily Motion Vid Embed

Tag: dmv

Replacement:

<div><object width="425" height="335"><param name="movie" value="http://www.dailymotion.com/swf/{param}"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/{param}" type="application/x-shockwave-flash" width="425" height="334" allowfullscreen="true"></embed></object></div>

Example: 74Kct2CLI6oTj5HBX

Description: For embedding Daily Motion Vids

Use {option}: No



CollegeHumor BB Code:


Title: College Humor Vid Embed

Tag: chv

Replacement:

<embed src="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id={param}" quality="best" width="400" height="300" type="application/x-shockwave-flash"></embed>

Example: 1732680

Description: For embedding College Humor Vids

Use {option}: No



That's it... now put the video ID in between the BB Code and you will have embedded vids from those sources.

TO get the video ID from Live Leak you take it directly from the url... just copy and paste the number highlighted in red.

http://www.liveleak.com/view?i=a98e3ec03b


To get it from Daily Motion you have to get it from the HTML code like so:

Below the video in the Daily Motion pages you will see an option that says Embeddable Player in that is the HTML code for embedding it into HTML enabled pages. Highlighted in red is the ID that will be needed to put inbetween the BB Codes.

<div><object width="425" height="356"><param name="movie" value="http://www.dailymotion.com/swf/1ldwfCLqBNIFH5UQN"></param><param name="allowfullscreen" value="true"></param><embed src="http://www.dailymotion.com/swf/1ldwfCLqBNIFH5UQN" type="application/x-shockwave-flash" width="425" height="334" allowfullscreen="true"></embed></object><br /><b><a href="http://www.dailymotion.com/video/xu83l_railpart">Rail-part</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/dimitri-stankowicz">dimitri-stankowicz</a></i></div>


To get the video ID from college humor just use the number after video: as shown in example by the red highlighted text.

http://www.collegehumor.com/video:1732680


For embedding google, youtube, and other such videos from video hosts do a quick search, there are many, I just didn't come around hacks for these two sites that I use other than the AnyMedia one that Adult SEO (https://vborg.vbsupport.ru/member.php?u=145253) is doing but as for now that is not working, so this is tiding me over till then.

Thanks for your interest. If you use this enjoy, and please click install (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=134547). :)

emdee
12-22-2006, 09:35 AM
any example of implementations?

da420
12-23-2006, 01:40 AM
Yes, I do have an example of implementation. Don't see what good it will do, but here it is...

http://www.mindifidoaj.com/forum/new-feature-embed-vids-t4716.html?p=94658&styleid=46#post94658
*site contains adult language

If you look at post 6 you will see the LiveLeak, and DailyMotion examples.

I have also added College Humor to this BB Code set, and post 8 shows an example of that.

Thanks...

iran.gs
12-23-2006, 10:37 PM
Installed Excellent thanks

da420
12-23-2006, 10:44 PM
Thanks for installing... I will be adding more video sites to this as I get them to work for anyone interested. :)

FockerFGAA
12-26-2006, 01:22 AM
the main thing i see is that you included the Uploaded by such and such user at the end of the bb code for dailymotion this part here should be able to be just removed from the code since it serves no functional purpose.

<br /><b><a href="http://www.dailymotion.com/video/xt4tx_bw">B&amp;W</a></b><br /><i>Uploaded by <a href="http://www.dailymotion.com/pjkproductions">pjkproductions</a></i>

da420
12-26-2006, 01:26 AM
You are right. I have taken that part out of the code.

I will be adding more this week. If anyone has a site that they use for vids, post it here, and if I can I will post the embedding BBCode. :)