Embedding video in forum home or CMPS

go yo this thread
Code:
http://www.vbteam.info/vb-3-7-x-addons-template-modifications/9892-flash-bbcode-size-option.html
If you think i have helped you plz click thanx
 
That's great stuff thanks. I have it working as far as embedding a SWF file in a post. I also learned how to use HTML to embed the SWF file into a side column on forum home.

Here's the code if will help someone:

<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>

How do I incorporate the SWF file into a CMPS module?
 
I figured it out, very easy. Go to CMPS control panel and add a BB code module using the same code as for embedding the SWF in a post. Works and looks great. Thanks again axes.
 
mmmxiv, can you please explain how? I use AME to embed remotely hosted video and also some locally hosted video formats. But AME puts them in a player box and they don't autoplay. The SWF mod autoplays the file and also plays it endlessly. I'd prefer to embed FLV files and use streaming video if possible. I found FLV code to use with AME, here it is:


Upload flvPlayer.swf to your server.

In your Controlpanel go to your AME CP section then click: Add New Definition.

New Media Definition

Title:
<b><i>Flash Files at YOURSITENAME</i></b>

Description:
Embed Locally Hosted <b>.flv</b> Files

Display Order:
0

Active:
Yes

Contain:
Yes

Regular expression:
([http://]*[\w]*[\.]*YOURSITENAME\.[\w/&;%-\.]+\.flv)

Replacement:
<object width="580" height="480" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/
shockwave/cabs/flash/swflash.cab#version=8,0,0,0">
<param name="flashvars" value="file=$p1&fullscreen=true" />
<param name="allowfullscreen" value="true">
<param name="movie" value="http://www.YOURSITENAME.com/flvplayer.swf" />
<embed src="http://www.YOURSITENAME.com/flvplayer.swf" width="580" height="480" bgcolor="#FFFFFF" allowfullscreen:"true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" allowfullscreen="true" flashvars="file=$p1&fullscreen=true" />
</object>

Extract destination data:
Yes

Save


But again this code will embed the video in a player box and will not autoplay.
 
Back
Top