![]() |
Playing Flash and Media Files Inline
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 :D. 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 :D :D 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 ?? :D 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] Add Under Code:
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 |
bad forum, read the upper ones, you'll find the Modification Requests forum...
|
I know this is not the forum for it, but I want to see if the hack is demanded. :D :D
|
I think your best way to judge demand is to place your hack in beta.
|
Fine for me,waiting for your release....thanks.
|
what do u mean by Playing Flash and Media Files Inline ??
|
Quote:
When you attach window media files, real media, wmv, flash in vb, most likely they are not played within your posts. They will be in attachment for download. |
that would be like streaming the media right?
it would be great i think... |
You can do it pretty easy with bbcode
|
^Update^
|
thanks
|
while i'm not sure about media files, flash files are a huge secruity risk i would suggest you note that in your initial post
|
can i make it avelable to any usergroups i want?
it well be great :) thx alot |
i dont get whats the difference from using just bbcodes for both instead of hacking the files
|
Nice hack, wrong forum.
Show thread modifications would be more appropriate. |
Hi..
It looks like a nice hack IF it will allow you to play ONLY media files (different formats: mp3, wav, wmv, au, rm, mov..etc.) because it is well known and tried before the security risk arising from playing flash files stored on your domain.. unless we can find a solution like to be able to store attachments on a different domain -or sub domain- and then try to call it from VB.. I am not a coder.. but I thaught 'll share my idea.. |
Quote:
This hack uses attachment system on vb. You can set the permission there. |
Quote:
|
Quote:
With bbcode: You have to upload the files on your forum thru certain means like ftp, or the like. Then you have to use bbcode for the link With this one: You use the vb built in attachment system. |
Quote:
|
Quote:
Does every member have access to your ftp? |
Quote:
|
hi, i have a problem!
with upload comes the error: Quote:
|
I think you have a server restriction on allowable upload filesize. I think the standard is 2MB. You should ask your host to increase the upload filesize.
|
my php.ini
upload_max_filesize = 5M and the file is 3 mb |
This is not a php error, but a mysql error.
Check your mysql configuration file for 'max_allowed_packet'. |
max_allowed_packet = 1M
No comment LOL :nervous: Ok is good :) a 1 problem ..... i push play and nothing happens :ermm: http://www.your-topic.de/vbulletin/s...3&page=2&pp=10 |
For some reason your $vboptions[bburl] doesn't display your forum path.
Replace this PHP Code:
PHP Code:
|
Big THX :)
must that automatically or can be that manually??? |
On my board $vboptions[bburl] is automatically filled, but on your board it is not. So you will have to do it manually.
|
I am a little confused about the last part....
are you saying to created templates for each section? or including each file type into the postbit template? I installed this hack but when I upload a swf attachment nothing happens. |
me too :ermm:
|
works not by me. I had installed the hack, but the forum displaying 'blank' attachments.
can you examine your hack? |
Quote:
Hi John You will have to create new templates for each media. I have inclued them in the attached files |
Quote:
mmdmk and DjJoschimo Is it possible for me to take a look at an example link? Thanks |
This might solve some issues, or maybe not... I noticed in your hack that you make reference to "'postbit_attachmentflash". I looked in my postbit templates, and couldn't find one called 'postbit_attachmentflash', but did find one called 'postbit_attachmentswf'. I changed the code to refernce that template instead, and then it worked!
Now, that being said, I have one more question. You think we could alter it somehow to diplay in the correct height/width? Perhaps if you set the height/width in the name of the file somehow (ie 125x300.swf) and then extract that height/ width and display as part of the postbit_attachmentswf template? Dunno... I'm not that familar with PHP, so this is jsut a guess... |
In case anyone is interested, I figured out a way to do the above working off of the really great code above-- just for flash though. I'm just going to go ahead and post all the code I found to work for me. I'm not a PHP queen, so some of this is guessed-- feel free to make suggestions on the messiness. Follow the placement instructions as above.
When in place, you should be able to attach any swf and have it embedded at the correct width X height as long as the file begins with the format w_h.swf or wxh.swf or wXh.swf. i.e., something like this: 120_300_myfile.swf 130x400.swf 140X500_thisRocks.swf **** VERY SERIOUS SECURITY RISKS HERE. REALLY. SERIOSLY. IF you don't care if someone uses this to hack your board and blow it up, then you can use it. heh heh. Here's the code. functions_showthread.php: find PHP Code:
PHP Code:
PHP Code:
Add under: PHP Code:
PHP Code:
PHP Code:
Var: attached_flash Text: Attached Flash File: Templates: Go to your Postbit template (edit templates) Find Code:
$post[imageattachments] Code:
<if condition="$show[flashattachment]"> Code:
<br> |
Stitch, I have decided to take some time and work with this, it's a great mod and I have it tweaked they way I need it. The only thing prevent me from putting into production is the fact that it preloads the file (wmv or mp3) and that is a killer when you have an attachment in ever post on the page.
I set it not to autoplay but I need a paramater of some kind that prevents it from preloading until the play button is pushed. |
Quote:
Hi Eric I think the preloading or buffering is set locally under window media setup. I don't think we can control it though |
so is this safe to use then? which forums have it? just so i can check em out before installing!
this is a great idea btw. |
All times are GMT. The time now is 09:26 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|