vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Embed Break.com Videos - BBCode (https://vborg.vbsupport.ru/showthread.php?t=145229)

Get Shorty 04-18-2007 10:00 PM

Embed Break.com Videos - BBCode
 
  • 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.

Code:

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

[break]MjU3ODkx[/break]

On to the BBCode:

Title: Break.com Video

Tag: break

Replacement:

HTML Code:

<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: [break]MjU3ODkx[/break] (or choose another video that you'd like to use)

Use {option}: No

Live Demo - No Registration Required

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

Quote:

Originally Posted by BamaStangGuy (Post 1231050)
Nice hack. Wish they all used the same format for serving their videos. Would make it so much easier.

I know! :mad:

Quote:

Originally Posted by rjmjr69 (Post 1231067)
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

Quote:

Originally Posted by rinkrat (Post 1231423)
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..


All times are GMT. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01092 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete