Playing Windows Media Files Inline
This modification is in the archives.
This just a port over from my existing hack for version 3.0.x
Playing Flash and Media Files Inline What this hack does:: This hack allows your users to upload media files via your board file management and play the media fields within their post.. It is adivisable to have one inline per post. Foreword: This hack might not work on all system due to different configuration, platform, and such. I will try to help you all as much as I can. This hack will use your board attachment system to run mp3, wma, wmv, flash files. It is a bit server intensive. So be warned Security Risk: It has been known that flash files can be used to exploit and compromise certain securities on user computer. You might want to verify your flash attachment before enable flash playing inline on your forum. Files To edit: 1 Queries to run: 0 Uses Product: Yes Template Edits: 2 File Edit includes/class_postbit.php Find PHP Code:
function process_attachments()
PHP Code:
// flash attachment
PHP Code:
PHP Code:
//start Play inline
PHP Code:
else
Add Undder PHP Code:
Template Edit Postbit template Look for HTML Code:
$post[imageattachments] </div> </fieldset> </if> Add Under HTML Code:
<if condition="$show[flashattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attached_flash] $flashfilename </legend> <div style="padding:$stylevar[formspacer]px"> $post[flashattachments] </div> </fieldset> </if> <if condition="$show[wmaattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wma] $wmafilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmaattachments] </div> </fieldset> </if> <if condition="$show[wmvattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wmv] $wmvfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmvattachments] </div> </fieldset> </if> <if condition="$show[mp3attachment]"> <fieldset class="fieldset"> <legend> $vbphrase[attach_mp3] $mp3filename</legend> <div style="padding:$stylevar[formspacer]px"> $post[mp3attachments] </div> </fieldset> </if> Postbit legacy template Look for HTML Code:
$post[imageattachments] </div> </fieldset> </if> Add Under HTML Code:
<if condition="$show[flashattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attached_flash] $flashfilename </legend> <div style="padding:$stylevar[formspacer]px"> $post[flashattachments] </div> </fieldset> </if> <if condition="$show[wmaattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wma] $wmafilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmaattachments] </div> </fieldset> </if> <if condition="$show[wmvattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_wmv] $wmvfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[wmvattachments] </div> </fieldset> </if> <if condition="$show[mp3attachment]"> <fieldset class="fieldset"> <legend> $vbphrase[attach_mp3] $mp3filename</legend> <div style="padding:$stylevar[formspacer]px"> $post[mp3attachments] </div> </fieldset> </if> Upload the included XML as product. Demo If you use this hack please click install. Download This modification is archived and cannot be downloaded. |
Similar Mods
Playing Windows Media Files Inline Using Plugin | vBulletin 3.5 Add-ons |
Show Thread Enhancements Playing Attached Media Files Inline | Modification Graveyard |
Playing Flash and Media Files Inline | vBulletin 3.0 Full Releases |