The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Playing Windows Media Files Inline Details »» | |||||||||||||||||||||||||
This just a port over from my existing hack for version 3.0.x
https://vborg.vbsupport.ru/showthread.php?t=78235 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:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
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. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
I always wonder about this new feature of VB3.5, but I don't know where to begin. It would be good if we can have certain guide line |
#13
|
|||
|
|||
LOVE IT....but file edits
If only you could make it use plugins....I might still consider it once we go 3.5 gold....or 3.5.1. |
#14
|
||||
|
||||
getting this db error when i install the product...
Quote:
|
#15
|
||||
|
||||
just as an addition to this, the sql error was sorted, it was my fault...lol
BUT....nothing shows up on the board saying its working... where are you supposed to look, or is there something that has to be activated for it to work at all? im using 3.5 GOLD btw |
#16
|
||||
|
||||
3.5 GOLD work ?
|
#17
|
||||
|
||||
Does this work for 3.5 Gold? Would love it if it did
Thanks |
#18
|
||||
|
||||
I just installed this, and I have 3.5.0 Gold.
However, it needs to be mentioned that as it is, it will NOT work, without one more modification which was not mentioned. In ACP, go to Extensions & Sizes. Click Add New Attachment Type. (you must do this for each file type - mp3 is given as an example) ************************************************** ********** Extension: mp3 Max Filesize(in bytes) 5000000 Mime Type: Content-type: audio/mp3 Display thumbnail for this type? No Open this attachment in a new browser window? No (Really this is your choice) Enabled Yes ************************************************** ********** For a temporary demo, click here |
#19
|
||||
|
||||
I've also made edits to include wav if anyone is interested.
http://www.christianboards.org/showthread.php?t=409 For a limited time only. |
#20
|
|||
|
|||
I want this to play avi, mva, mpeg, basic video files, I have 3.5, I tried it and all I get is a link.... any suggestions?
|
#21
|
|||
|
|||
I get this with, avi, mov, and mpg, all formats...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|