actually heres the code, i've tested it on my development board and it works.
This is for shockwave movies i hope this is what you wanted if not tell me and i'll change it.
In your Admin Panel under General Options go to the Attachments section
Add swf to valid extensions
turn View Images to On
Add the following template
postbit_attachmentswf
Code:
<!--<p>--><smallfont>$post[username] has attached this movie:<br>
<embed src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" width="400" height="200" type=application/x-shockwave-flash></embed>
</smallfont><!--</p>-->
Save template
Open /admin/functions.php
look for
PHP Code:
if ($post[attachmentextension]=="gif" or $post[attachmentextension]=="jpg" or $post[attachmentextension]=="jpeg" or $post[attachmentextension]=="jpe" or $post[attachmentextension]=="png") {
if (($viewattachedimages) and ($bbuserinfo[userid]==0 or $bbuserinfo[showimages])) {
eval("\$post[attachment] = \"".gettemplate("postbit_attachmentimage")."\";");
} else {
eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";");
}
} else {
eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";");
}
change to
PHP Code:
if ($post[attachmentextension]=="gif" or $post[attachmentextension]=="jpg" or $post[attachmentextension]=="jpeg" or $post[attachmentextension]=="jpe" or $post[attachmentextension]=="png") {
if (($viewattachedimages) and ($bbuserinfo[userid]==0 or $bbuserinfo[showimages])) {
eval("\$post[attachment] = \"".gettemplate("postbit_attachmentimage")."\";");
} else {
eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";");
}
} elseif ($post[attachmentextension]=="swf") {
if (($viewattachedimages) and ($bbuserinfo[userid]==0 or $bbuserinfo[showimages])) {
eval("\$post[attachment] = \"".gettemplate("postbit_attachmentswf")."\";");
} else {
eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";");
}
} else {
eval("\$post[attachment] = \"".gettemplate("postbit_attachment")."\";");
}
thats it done.