Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
BB Code: Win/QuickTime/Real/Flash Media Embed Details »»
BB Code: Win/QuickTime/Real/Flash Media Embed
Version: 1.00, by da420 da420 is offline
Developer Last Online: Apr 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.4 Rating:
Released: 01-28-2007 Last Update: Never Installs: 67
 
No support by the author.

I am releasing this BB Code for you to use on your forums.

Some things to take note to customize it to your liking.
  • change all 'width="320" height="240"' settings to your desire.
  • change all autoplay or autostart to true if you want it to autoplay.
  • change all 'param name='loop'' to true if you want it to loop.
  • change all align="center" to align="right/left" in this bit of code to align it however you want '<table border='0' cellpadding='0' align="center">'
Alright, now to the BB Code.


1. Windows Media Files EMBED:

Title: Windows Media Files EMBED

Tag: wmv

Replacement:

Code:
<!-- begin embedded WindowsMedia file... --> 
<table border='0' cellpadding='0' align="center"> 
<tr>
<td>
<OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>
<param name='fileName' value="{param}"> 
<param name='animationatStart' value='true'> 
<param name='transparentatStart' value='true'> 
<param name='autoStart' value="false"> 
<param name='showControls' value="true"> 
<param name='loop' value="false"> 
<EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285" src="{param}" autostart="false" designtimesp='5311' loop="false"> 
</EMBED> 
</OBJECT> 
</td>
</tr> 
<!-- ...end embedded WindowsMedia file --> 
<!-- begin link to launch external media player... --> 
<tr>
<td align='center'> 
<a href="{param}" style='font-size: 85%;' target='_blank'>Launch in external player</a> 
<!-- ...end link to launch external media player... --> 
</td>
</tr> 
</table>
Example: [wmv]http://38.101.8.68/dl/48b60228d3d5e2bbc8698b2476e5d243/45be9890/video/skinheads_vs_skaters.wmv[/wmv]

Description: Embed Windows Media Files

Use {option}: NO


2. QuickTime Media Files EMBED:

Title:QuickTime Media Files EMBED

Tag: qtv

Replacement:

Code:
<!-- begin embedded QuickTime file... -->
      <table border='0' cellpadding='0' align="center">
        <!-- begin video window... -->
        <tr><td>
        <OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width="320"
        height="255" codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
        <param name='src' value="{param}">
        <param name='autoplay' value="false">
        <param name='controller' value="true">
        <param name='loop' value="false">
        <EMBED src="{param}" width="320" height="255" autoplay="false" 
        controller="true" loop="false" pluginspage='http://www.apple.com/quicktime/download/'>
        </EMBED>
        </OBJECT>
        </td></tr>
        <!-- ...end embedded QuickTime file -->
        </table>
Example: [qtv]http://pulsar.esm.psu.edu/Faculty/Gray/graphics/movies/1984.mov[/qtv]

Description: Embed QuickTime Media Files

Use {option}: NO


3. Real Media Files EMBED:

Title: Real Media Files EMBED

Tag: rmv

Replacement:

Code:
<!-- begin embedded RealMedia file... -->
      <table border='0' cellpadding='0' align="center">
        <!-- begin video window... -->
        <tr><td>
        <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
        width="320" height="240">
        <param name='src' value="{param}">
        <param name='autostart' value="false">
        <param name='controls' value='imagewindow'>
        <param name='console' value='video'>
        <param name='loop' value="false">
        <EMBED src="{param}" width="320" height="240" 
        loop="false" type='audio/x-pn-realaudio-plugin' controls='imagewindow' console='video' autostart="false">
        </EMBED>
        </OBJECT>
        </td></tr>
        <!-- ...end video window -->
          <!-- begin control panel... -->
          <tr><td>
          <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA'
          width="320" height='30'>
          <param name='src' value="{param}">
          <param name='autostart' value="false">
          <param name='controls' value='ControlPanel'>
          <param name='console' value='video'>
          <EMBED src="{param}" width="320" height='30' 
          controls='ControlPanel' type='audio/x-pn-realaudio-plugin' console='video' autostart="false">
          </EMBED>
          </OBJECT>
          </td></tr>
          <!-- ...end control panel -->
          <!-- ...end embedded RealMedia file -->
        <!-- begin link to launch external media player... -->
        <tr><td align='center'>
        <a href="{param}" style='font-size: 85%;' target='_blank'>Launch in external player</a>
        <!-- ...end link to launch external media player... -->
        </td></tr>
      </table>
Example: [rmv]http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm[/rmv]

Description: Embed Real Media Files

Use {option}: NO


4. Flash Media Files EMBED:

Title: Flash Media Files EMBED

Tag: fmv

Replacement:
Code:
<!-- begin embedded Flash file... -->
      <table border='0' cellpadding='0' align="center">
        <tr><td>
        <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
        codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
        width="320" height="240">
        <param name='movie' value="{param}">
        <param name='quality' value="high">
        <param name='bgcolor' value='#FFFFFF'>
        <param name='loop' value="false">
        <EMBED src="{param}" quality='high' bgcolor='#FFFFFF' width="320"
        height="240" loop="false" type='application/x-shockwave-flash'
        pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
        </EMBED>
        </OBJECT>
        </td></tr>
        <!-- ...end embedded Flash file -->
       </table>
Example: [fmv]http://72.55.133.118/~fg/fgames/game6131/files/1694.swf[/fmv]

Description: Embed Flash Media Files

Use {option}: NO


*I know there may be exploits especially with FLASH media types, so use these BB Codes at your own risk.

Thank you, and please click Install.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 01-30-2007, 05:17 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyways, is it possible to have members upload wmv files as an attachment and play them?
Reply With Quote
  #13  
Old 01-30-2007, 05:26 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Fungsten View Post
Anyways, is it possible to have members upload wmv files as an attachment and play them?
hmmm... It works for me, try deleting the BB Code and trying again.

No with this code I do not think attachments will work.
The only way to do that would be to allow them to upload files to your server, and then put the link with teh proper extension in between the BB codes.
Reply With Quote
  #14  
Old 02-17-2007, 05:33 AM
WrestlingAcadem WrestlingAcadem is offline
 
Join Date: Jan 2007
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work with FireFox? It works fine for me in Internet Explorer, but it won't show up in FireFox. I'm using the WMV code, BTW.
Reply With Quote
  #15  
Old 02-17-2007, 08:55 AM
Mad Kayaker Mad Kayaker is offline
 
Join Date: Feb 2007
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WMV Works for me in Firefox.... but I can't get it not to autostart in Firefox. Has anyone else experienced this?



Works fine in IE.

Thanks
Reply With Quote
  #16  
Old 02-17-2007, 03:31 PM
buidoi buidoi is offline
 
Join Date: Jan 2007
Posts: 39
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

not working for me!!!
Reply With Quote
  #17  
Old 02-17-2007, 06:44 PM
Thermit Thermit is offline
 
Join Date: Feb 2007
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Neat.

Could someone explain how I go about installing this? Thanks...
Reply With Quote
  #18  
Old 02-19-2007, 03:21 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the ACP there should be a custom BB Codes section. That's where you would input this information.
Reply With Quote
  #19  
Old 03-08-2007, 04:53 PM
Fungsten's Avatar
Fungsten Fungsten is offline
 
Join Date: Jul 2006
Posts: 1,131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what should I enter as the URL? In other words, in the ACP - Custom BB Codes - New, when it says:

Quote:
Button Image (Optional) If you would like this bbcode to appear as a clickable button on the message editor toolbar, enter the URL of an image 21 x 20 pixels in size that will act as the button to insert this bbcode.
What should I enter as the URL? Is it a relative path or do I enter the full URL to the folder?

Thanks.
Reply With Quote
  #20  
Old 03-08-2007, 04:54 PM
da420 da420 is offline
 
Join Date: Nov 2005
Posts: 1,232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can enter in whatever you want. If you input a url to a image it will show up in your editor. I didn't include a button because I didn't need one.
Reply With Quote
  #21  
Old 03-12-2007, 08:15 PM
rolfw1 rolfw1 is offline
 
Join Date: Nov 2005
Location: Berkshire, England
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that, have installed, I want to use it mainly to embed very small sound clips. Is it possible to reduce the display to the controls only, as I don't need the screen?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:26 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05287 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete