The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Playing Attached Media Files Inline Details »» | |||||||||||||||||||||||||
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: 0 Queries to run: 0 Uses Product: Yes Template Edits: 1 Open postbit_attachment and add to very top HTML Code:
<tr> <td width=450 colspan="2"> <if condition="$show[realattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_real] $realfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[realattachments] </div> </fieldset> </if> <if condition="$show[movattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_mov] $movfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[movattachments] </div> </fieldset> </if> <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[pdfattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_pdf] $pdffilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[pdfattachments] </div> </fieldset> </if> <if condition="$show[aviattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_avi] $avifilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[aviattachments] </div> </fieldset> </if> <if condition="$show[mpgattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_pdf] $mpgfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[mpgattachments] </div> </fieldset> </if> <if condition="$show[mpegattachment]"> <fieldset class="fieldset"> <legend>$vbphrase[attach_pdf] $mepgfilename</legend> <div style="padding:$stylevar[formspacer]px"> $post[mepgattachments] </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> </td> </tr> https://vborg.vbsupport.ru/attachmen...chmentid=24797 https://vborg.vbsupport.ru/attachmen...chmentid=24798 https://vborg.vbsupport.ru/attachmen...chmentid=24799 https://vborg.vbsupport.ru/attachmen...chmentid=24800 Attachment Content Types: WMA ? Content-type: audio/x-ms-wma WMV ? Content-type: video/x-ms-wmv MP3 ? Content-type: audio/x-mp3 SWF ? Content-type: application/x-shockwave-flash AVI ? Content-type: video/x-ms-avi MOV ? Content-type: video/quicktime MP4 ? Content-type: video/quicktime MPEG ? Content-type: video/mpeg MPG ? Content-type: video/mpeg RAM ? Content-type: audio/x-pn-realaudio RM ? Content-type: audio/x-pn-realaudio SWC ? Content-type: application/x-shockwave-flash NOTE: This hack use your board attachment.php to play those specified media files. Therefore, you will have to set up user right to download attachement in under forum permissions. Playing inline attachments under firefox has proven to be problemsome since I noticed firefox does not pass the cookie info in for the inline video playing. So if you want attachments to play inline in firefox you must set it so that guests can view attachements. (I am currently looking for fixes to this if possible) This is a clean up and rerelease of this hack: https://vborg.vbsupport.ru/showthread.php?t=99871 If you have that hack installed just install the product file and you will be good. If you have her one before that then follow her template reverses from that thread. I tried to contact the author but they havent been on the site in well over a month. Pms and emails were unresponded to. I will remove this hack if the hack author requests. Whats fixed: Fixed the problem with attachments being shown multiple times when more then one of the same file type was uploaded in a single post. Cached all the templates used by this hack. Show Your Support
|
Comments |
#12
|
||||
|
||||
Quote:
|
#13
|
|||
|
|||
Hi, Can someone tell me where I might find the "postbit_attachment" file? I can't find it anywhere in my vb directory. Also, does this mod work with 3.6.1? Thanks.
|
#14
|
|||
|
|||
Quote:
|
#15
|
|||
|
|||
Quote:
|
#16
|
|||
|
|||
Installed and added the codes how ever i tried to use it i dont see those extra obtions what am i doing wrong ?
|
#17
|
|||
|
|||
This caused pretty big issues with pdf attachments also displaying inline on my forum. Any idea why? I didn't change anything from the default install.
|
#18
|
|||
|
|||
Quote:
Log into your adminCP area, scroll doen the left navbar and expand the Attachments menu, you should then see the following: Attachment Manager Attachment Permissions Search Moderate Attachments Attachment Statistics Attachment Storage Type Click on Attachment Manager At the bottom of this Click on Add New Extention. next you need to add the following one at a time with whatever size upload you wish to allow. New Attachment Content Types: WMA WMV MP3 SWF AVI MOV MP4 MPEG MPG RAM RM SWC Hope that helps. |
#19
|
|||
|
|||
Quote:
|
#20
|
|||
|
|||
Is there any way to control what size the attachments are? Like if I upload a flash game in swf file format at 640x640 it comes out smaller when added to the post?
|
#21
|
|||
|
|||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|