The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Flash in posts - I will pay for this hack!!
I need a hack that enables me to upload flash movies into posts so that they are viewable in the message area.
We use our forum as a company intranet so I am not worried about the usual security issues with flash on open forums. All I need is a way to upload the movies into a post so that the flash movies actually play in the post. I searched the posts, I know you can do it by referencing a remote swf file but I want to be able to attached the file to the post. Its for our designer who is not very technical so I need something easy to use. I know the method for referencing a remote flash file but I want to be able to upload and view the flash movies just like you would a gif/jpg My boss is screaming for this feature, he is willing to pay for someone to do this hack, if you are interested post your details and how much you are looking for the job. Once its created I have no problems with having it as a hack that everyone can download. This feature would be of great use to us so we have no problem paying someone for their hard work. To conclude I need a hack that lets you upload a flash movie and have the movie playing in the actual post. Thanks in advance. |
#2
|
||||
|
||||
surely if u add the *.swf extension into the allowed extensions list in the admin cp... and have it so images display in posts ... it wud work...
don't quote me on it .. as im not a very technical person.. |
#3
|
||||
|
||||
There is a very long and famous thread in vbulletin.com something like "share your vbcode" where many people contributed vbcode samples which you can enable inside your CP.
I may be wrong but I recall some vbcodes about Flash, may be you should check it out. Regards, |
#4
|
|||
|
|||
the simpliest way is to modify the view image part of the post bit, this is the bit which automatically shows the image in the post if it attached.
You could modify this within functions.php in the getpostbit function. |
#5
|
|||
|
|||
actually heres the code, i've tested it on my development board and it works.
This is for shockwave movies i hope this is what you wanted if not tell me and i'll change it. In your Admin Panel under General Options go to the Attachments section Add swf to valid extensions turn View Images to On Add the following template postbit_attachmentswf Code:
<!--<p>--><smallfont>$post[username] has attached this movie:<br> <embed src="attachment.php?s=$session[sessionhash]&postid=$post[postid]" width="400" height="200" type=application/x-shockwave-flash></embed> </smallfont><!--</p>--> Open /admin/functions.php look for PHP Code:
PHP Code:
|
#6
|
||||
|
||||
Cool...
Satan |
#7
|
|||
|
|||
Excellent hack m8.
Just installed it and works an absolute treat |
#8
|
|||
|
|||
Thanks that works brilliant! But one query is there any way to control the size it displays the flash movie at?
I know I can change the width and height value in the template code, but is there any way to get it so that it matchs the size of the flash movie? Eg if the movie is 200 wide by 150 tall it will display it 200 by 150 tall as opposed to just showing it based on the dimension values in the template? I tried changing the values to 100% but the code did not work, any ideas? Thanks in advance. Brian |
#9
|
|||
|
|||
I had a look for something like this when trying to find the code but unforunately I couldn't find a function that would open the flash movie and get the width/height.
I'll try and find a way to do it if i get enough time between jobs and exams. |
#10
|
|||
|
|||
Thanks I appreciate the help. Would there be some way to allow the user to manually input the width and height when uploading the file?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|