The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
![]() |
|||||||||||||||||||||||||
Is it possible? Is there any security issue? I am thinking of releasing this hack, but I am not sure about the demands and security issue on this.
History: Originally, I have window media files played directly (inline) in phpbb. When I moved to vb, I tried to seek help from vb.com to modify their attachment system without success. I understand that Vb's attachment system for security purpose. Therefore, I have to find other means to achieve what I want. I come up with this hack when my board is at its infancy stage. It probably still is infancy because, it is used as a test and fun board when I am at work ![]() Requirement: 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. Enut with the blah blah ?? ![]() Open your functions_showthread.php Find PHP Code:
PHP Code:
Find PHP Code:
Add Under PHP Code:
Find PHP Code:
Add Under PHP Code:
Var: attach_wmv Text: Window Media Video Var: attach_mp3 Text: MPEG-1 layer 3 Audio Encoding : Var: attached_flash Text: Attached Flash File: Var :attach_wma Text : Window Media Audio : Templates: Go to your Postbit template Find Code:
$post[imageattachments] </div> </fieldset> </if> Add Under 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> Go to your board admin and add the templates under postbits. The included templates file uses the existing templates on my board. Feel free to modified. If you need help drop a line here or at www.aotrangmongmo.com Show Your Support
|
Comments |
#72
|
||||
|
||||
![]()
Borgs8472,
You still have the control over what is moderated or not. Hi Tuan, I looked into your board and uploaded a wma song. It works for your board |
#73
|
|||
|
|||
![]()
thanks
|
#74
|
|||
|
|||
![]()
<param name="URL" value="$wmafilenameandlocation"> ------original, but it did not play
I try this and it work <param name="URL" value="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]"> is the right way to fix it?? |
#75
|
|||
|
|||
![]()
some update the intruction
if your board using postbit legacy then modify it instead of postbit template do exactly the same open postbit legacy then find: Code:
$post[imageattachments] </div> </fieldset> </if> 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> and thanks for your hack stitch i learn a lot vbb code from your hack keep going man |
#76
|
||||
|
||||
![]() Quote:
Can I take a look at your site? |
#77
|
||||
|
||||
![]()
Is there any way to make this player via a buffer? It waits until it's done downloading before it plays. Not a big deal, but I'm using it with 14 meg files.
![]() |
#78
|
||||
|
||||
![]() Quote:
|
#79
|
||||
|
||||
![]() Quote:
Well, the file does play, but it waits until it's done downloading. I was hoping something was able to set it, so it would download and play at the same time.. When I hit play, it doesn't play until the file is done downloading it seems. So on a 14meg file, it takes a minute to play... |
#80
|
|||
|
|||
![]()
Hi,
Great hack, but...works not by me. I had installed the hack, but the forum displaying 'black' WMV display window. Please, I need help. TIA |
#81
|
||||
|
||||
![]()
Any plans on porting this to 3.5.x?? Great hack, and nothing for 3.5 and playing attachments...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|