PDA

View Full Version : Mini Mods - Embed Break.com Videos - BBCode


Get Shorty
04-18-2007, 10:00 PM
XHTML 1.1 Transitional valid
Tested on VB 3.6.5


I had a few users requesting the ability to embed videos from Break.com in their posts, so this is what I came up with.

Keep in mind that this is not user friendly. You'll see why in a minute. :o

Because of the URL structure that Break.com uses, it's not a simple task to find the code that you'll need to use. Here is what your users will have to do to embed a video:

If you find a video on Break.com that you'd like to embed, click on the "Embed & Blog" button. You'll be presented with the html code to embed the video on a web site. That code will look something like this, and the important part is in bold.


<object width="425" height="350">
<param name="movie" value="http://embed.break.com/MjU3ODkx"></param>
<embed src="http://embed.break.com/MjU3ODkx" type="application/x-shockwave-flash" width="425" height="350"></embed></object><br><font size=1><a href="http://www.break.com/index/cruise_ship_caught_in_cyclone.html">Cruise Ship Caught In Cyclone</a> - <a href="http://www.break.com/">Click Here for more great videos and pictures!</a></font>


Sample:

MjU3ODkx

On to the BBCode:

Title: Break.com Video

Tag: break

Replacement:

<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://break.com" title="Break.com" target="_blank">Break.com Video</a>
</td>
</tr>
</thead>
<tbody>
<tr>
<td class="panelsurround" align="center">
<object type="application/x-shockwave-flash" width="425" height="350" data="http://embed.break.com/{param}">
<param name="movie" value="http://embed.break.com/{param}" />
<param name="wmode" value="transparent" />
</object>
</td>
</tr>
</tbody>
</table>

Example: MjU3ODkx (or choose another video that you'd like to use)

Use {option}: No

Live Demo - No Registration Required (http://forum.alcoholreport.com/t6681/)

This is my first contribution to vB.org, so take it easy on me if I've done anything wrong. If anyone has a button image to use, please post it. If anyone has any suggestions or improvements, feel free to contribute. :)

Get Shorty
04-19-2007, 03:00 AM
Reserved.

BamaStangGuy
04-19-2007, 07:10 AM
Nice hack. Wish they all used the same format for serving their videos. Would make it so much easier.

rjmjr69
04-19-2007, 07:38 AM
Do you have a button image for this? So hard to remind users of tags

Get Shorty
04-19-2007, 10:24 AM
Nice hack. Wish they all used the same format for serving their videos. Would make it so much easier.

I know! :mad:

Do you have a button image for this? So hard to remind users of tags

I sure don't.

rinkrat
04-19-2007, 07:05 PM
Good work!! I'll use this for sure.

alqloob alsahya
04-19-2007, 07:34 PM
thank"s

Barakat
04-19-2007, 09:10 PM
installed

Get Shorty
04-24-2007, 07:32 PM
Good work!! I'll use this for sure.

Glad to hear other people are interested. I just wish that I could think of a more user friendly method...

turbo.:R
05-18-2007, 10:59 PM
i installed a image too.. works great..

Get Shorty
05-19-2007, 06:07 AM
i installed a image too.. works great..

Awesome. :)

rjmjr69
06-09-2007, 06:09 AM
I need to find a button Members can't remember the bb codes

Mikecp421
01-26-2011, 01:50 AM
perfect, thanks