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. :)
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. :)