PDA

View Full Version : Mini Mods - BB Code: Win/QuickTime/Real/Flash Media Embed


da420
01-28-2007, 10:00 PM
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:


<!-- 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: http://38.101.8.68/dl/48b60228d3d5e2bbc8698b2476e5d243/45be9890/video/skinheads_vs_skaters.wmv

Description: Embed Windows Media Files

Use {option}: NO


2. QuickTime Media Files EMBED:

Title:QuickTime Media Files EMBED

Tag: qtv

Replacement:

<!-- 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: http://pulsar.esm.psu.edu/Faculty/Gray/graphics/movies/1984.mov

Description: Embed QuickTime Media Files

Use {option}: NO


3. Real Media Files EMBED:

Title: Real Media Files EMBED

Tag: rmv

Replacement:

<!-- 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: http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm

Description: Embed Real Media Files

Use {option}: NO


4. Flash Media Files EMBED:

Title: Flash Media Files EMBED

Tag: fmv

Replacement: <!-- 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: http://72.55.133.118/~fg/fgames/game6131/files/1694.swf

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.

abramelin
01-29-2007, 09:20 PM
are these xhtml valid?

da420
01-29-2007, 11:07 PM
Sorry, copy and paste the replacement code for the Windows Media to overwrite the previous one.

Thanks!

are these xhtml valid?

As far as I know, yes. How would I find out exactly?

Fungsten
01-29-2007, 11:20 PM
Sorry. I'm a newbie!

Sorry, copy and paste the replacement code for the Windows Media to overwrite the previous one.

Thanks!



As far as I know, yes. How would I find out exactly?

da420
01-29-2007, 11:23 PM
No worries, did it end up working for you?

Fungsten
01-29-2007, 11:25 PM
:( :confused: :eek:

No worries, did it end up working for you?

da420
01-30-2007, 12:00 AM
I just re-edited it, and tested. Works now. I wasnt able to test myself before because my MPlayer plug-ins were acting funny, and there was something wrong. Now it works on my forum after reinstalling the code, and updating my MPlayer browser plug ins.

Fungsten
01-30-2007, 12:28 AM
:D ;) :cool:

I just re-edited it, and tested. Works now. I wasnt able to test myself before because my MPlayer plug-ins were acting funny, and there was something wrong. Now it works on my forum after reinstalling the code, and updating my MPlayer browser plug ins.

furst
01-30-2007, 05:03 PM
Is this going to create security vulnerabilities?

da420
01-30-2007, 05:15 PM
*I know there may be exploits especially with FLASH media types, so use these BB Codes at your own risk.

The only one I am aware of is Flash security vulnerabilities. If you wish to install that particular BB Code that is up to you.

Fungsten
01-30-2007, 05:17 PM
Anyways, is it possible to have members upload wmv files as an attachment and play them?

da420
01-30-2007, 05:26 PM
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.

WrestlingAcadem
02-17-2007, 05:33 AM
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.

Mad Kayaker
02-17-2007, 08:55 AM
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

buidoi
02-17-2007, 03:31 PM
not working for me!!!

Thermit
02-17-2007, 06:44 PM
Neat.

Could someone explain how I go about installing this? Thanks...

da420
02-19-2007, 03:21 PM
In the ACP there should be a custom BB Codes section. That's where you would input this information.

Fungsten
03-08-2007, 04:53 PM
what should I enter as the URL? In other words, in the ACP - Custom BB Codes - New, when it says:


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.

da420
03-08-2007, 04:54 PM
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.

rolfw1
03-12-2007, 08:15 PM
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?

da420
03-12-2007, 11:20 PM
Change...

width="320" height="285"

To whatever you want.

Subah
03-18-2007, 06:09 PM
Not work with me ?
3.6.5
when i want to add media i try this code on the post: (Example)
http://song.6arab.com/rashed_Jalmoud.ram
not work , i add it like this:
http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm
and its still not work ??

Subah
03-22-2007, 10:16 PM
Windows Media and QuickTime work with me but the real player not work !!

basilrath
03-28-2007, 12:14 AM
:) hey nice system the windows media embed i tweaked the coding and added to the sidebar in the style...............have a look pretty hope you think lol


www.thebigfatsofa.com

rolfw1
03-31-2007, 07:53 PM
Change...

width="320" height="285"

To whatever you want.

Windows Media Files EMBED

Thanks, that worked in firefox, but still shows the screen in IE6 as soon as you press play. Sorry for the delay in coming back to you. :)

As per another poster, with firefox the sound clip auto starts, is there any way around this?

Fungsten
03-31-2007, 07:58 PM
Is there any place to get it? Thanks.

Fungsten
03-31-2007, 09:58 PM
da420,

You have for the example:

[rpv]http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm[/prv]

The tags should be [rmv]!! Now it works for Real Player!! :up: :D :eek:

On Edit.

Make sure your other Players are updated too!

Subah
03-31-2007, 10:43 PM
da420,

You have for the example:

[rpv]http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm[/prv]

The tags should be [rmv]!! Now it works for Real Player!! :up: :D :eek:

On Edit.

Make sure your other Players are updated too!

You are 100%

da420
04-01-2007, 03:56 PM
Windows Media Files EMBED

Thanks, that worked in firefox, but still shows the screen in IE6 as soon as you press play. Sorry for the delay in coming back to you. :)

As per another poster, with firefox the sound clip auto starts, is there any way around this?

The first post tells you how to turn auto start on/off and other configuration changes.

Is there any place to get it? Thanks.

You can make custom image buttons, or find them elsewhere. I do not need them so did not make them for this BB Code.

You have for the example:

[rpv]http://www.homelandabsurdity.com/audio-video/beefheart_tribute.rm[/prv]

The tags should be [rmv]!! Now it works for Real Player!! :up: :D :eek:

On Edit.

Make sure your other Players are updated too!

Thank you, made that correction.

Thanks for installing all.

Fungsten
04-03-2007, 06:11 PM
Here's what shows in the "Replacement"

http://pulsar.esm.psu.edu/Faculty/Gray/graphics/movies/1984.mov

Here's your 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>

da420
04-03-2007, 06:35 PM
Maybe I am misunderstanding, but you add the code posted above in the replacement.

Fungsten
04-03-2007, 06:41 PM
So instead of the Replacement code this shows up.


http://pulsar.esm.psu.edu/Faculty/Gray/graphics/movies/1984.mov


Maybe I am misunderstanding, but you add the code posted above in the replacement.

da420
04-03-2007, 06:56 PM
I just checked and the code in my initial post worked for me. I would suggest deleting that BB Code, and reimplementing it making sure you do everything right..

Fungsten
04-03-2007, 07:03 PM
I've already done that but I'll do it again.

I just checked and the code in my initial post worked for me. I would suggest deleting that BB Code, and reimplementing it making sure you do everything right..

On Edit:

I made a boo boo! I had enabled "Use Options". Now it works! Sorry.

On Edit again:

In the instructions I would really add a note next to the "NO" for options.

da420
04-03-2007, 07:45 PM
Ah, yeah, that's why I stressed the NO with capital letters... glad you got it working...

Fungsten
04-03-2007, 10:30 PM
Anyways it's working.

:)

Ah, yeah, that's why I stressed the NO with capital letters... glad you got it working...

lheliosl
04-15-2007, 12:37 AM
I tried changing the width and height but the video still shows up in the same small size, is there something im doing wrong?

TechDawg
04-30-2007, 04:57 AM
Nice stuff. You have the .swf or 'Flash Media' option, which potentially has risks, etc. However, I don't think that .flv (Flash Video) has the same risk level. Is it possible to convert one of these to a .flv embed option?

Thanks

GrendelKhan{TSU
04-30-2007, 09:46 AM
thank you !!

installed. :)

JamieJ
05-03-2007, 09:58 AM
Hello,

This code is great and implemented on my site. However, is there anyway I can only let registered users view the movies? At the moment everyone including guests can see the movies. I would like to stop guests from being able to see the clips...

Any pointers would be helpful! :)

KURTZ
05-03-2007, 10:17 AM
that's what i need!!! thank you so much!

installed! ;)

laura66a
05-05-2007, 05:40 PM
Hi.

I'm using the Quicktime BBcode. Is there a way to get the movie to start automatically?

Thanks.

Laura

da420
05-05-2007, 05:46 PM
Yes, please read the bullets at the begining of the original post to set it to auto start.

glorify
05-06-2007, 11:42 PM
I can get video in my admincp, but not on a post or post preview. I get audio, black screen for video. Any idea? (Real Player)

ayaam
06-07-2007, 03:24 PM
great !

I made icons :)

pedrovazquez10
08-24-2007, 12:31 PM
sorry donĀ“t work swf

MiMiC
09-20-2007, 11:37 PM
Any way to enable users to Attache a file and have that file be embeded into their post.

Tom S
03-02-2008, 06:24 PM
I do have it playing .wmv in posts, but I also have it in another BB code for a smaller footprint for mp3 that I have downloaded to my server. Please help, this will be such a great way for Members and viewers to hear the audio.

I removed this so that it would not show:

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

See here what I get when trying to play: http://www.bigfootreferenceguide.com/showpost.php?p=245&postcount=1

zeus_r6
03-02-2008, 11:46 PM
I would like to use this with .avi media files...

Any input on this?

Tom S
03-03-2008, 04:27 PM
I do have it playing .wmv in posts, but I also have it in another BB code for a smaller footprint for mp3 that I have downloaded to my server. Please help, this will be such a great way for Members and viewers to hear the audio.

I figured out what was wrong. I was trying to play .mp3 and it would not work. I changed the files to .wma and working fine now for audio.

Thank You for all the help.

Tom S.

Steve993
03-11-2008, 01:21 PM
I installed this to play flash videos hosted on the same site as the forums. That works and displays the video fine. However I don't have any play or pause buttons to control the video. I have a program that can create a flv file with a swf menu with the play buttons, etc, but I can't figure out how to embed that menu into the code.

This program gives me the html code and I've messed with it as much as I can, but have reached my limited knowledge of this code. Here's the html code it gives me...



<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="320" height="240" id="player" align="middle">

<param name="movie" value="player.swf?file=test3.flv&size=false&aplay=false&autorew=false&title="/>

<param name="menu" value="false"/>

<param name="quality" value="high"/>

<param name="bgcolor" value="#FFFFFF"/>

<embed src="player.swf?file=test3.flv&size=false&aplay=false&autorew=false&title=" menu="false" quality="high" bgcolor="#FFFFFF" width="320" height="240" name="player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>

</object>



I've tried to replace my test movie (test3.flv) with {param} and all I get is a white box with no video. Any help would be much appreciated! Thanks.

Steve993
03-25-2008, 02:25 PM
Bump for any help?

legionofangels
03-25-2008, 02:46 PM
It would be nice if there was a code for something like MSNBC or something, or are they just considered Windows Media Player files?

Because that would be nice. Lemme know.

eddy315west
05-16-2008, 10:32 PM
anyway you can make one for www.simtube.com thanks

Ramya108
01-31-2010, 11:42 AM
Thank you very much!
I used flashed bbcode and it works perfectly, both in IE and Firefox.

I adjusted the width and height parameters.

ricardoNJ
05-25-2012, 03:09 AM
3.8.4 Nice work! thanks!