The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
I don't recall seeing this done exactly this way before. If it has been, I apologize to the author.
Anyway, what this will allow a user to do is upload a file to your webserver that they can insert into their post. It's modelled after the old UBB image upload hack. Please keep in mind that this was a quick and dirty hack job, and I wasn't making it with the intentions of releasing it. You can specify the maximum file size that you'd like to use - that's about it as far as security goes. Here's the file: http://www.bronx-bombers.com/forums/...age_upload.zip Here's an example: http://forums.bronx-bombers.com/ Hope someone will find this useful .-jim Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Excellent I always wanted a hack like this one instead of the image gallery that limits the user to one upload!
|
|
#3
|
|||
|
|||
|
thanks for the hack.
|
|
#4
|
|||
|
|||
|
nice one..
![]() but can we configure to accept other files format too? and it will show only file links if it is not image file |
|
#5
|
|||
|
|||
|
Quote:
-jim |
|
#6
|
|||
|
|||
|
I'm using .php3, shall I rename the files only?
Thanks
|
|
#7
|
|||
|
|||
|
Yes, just rename the files, and be sure to change the form action in the upload template as well.
-jim |
|
#8
|
|||
|
|||
|
I setup the stuff as instructed, now when I open that new window upload.php3 - I get this error:
Code:
Fatal error: Call to unsupported or undefined function upload_file() in /home/truthugs/forum/upload.php3 on line 4 The upload.php3 ONLY has 4 lines.. haha Code:
<?
require("global.php3");
eval("echo upload_file();");
?>
|
|
#9
|
|||
|
|||
|
Fred, did you add the upload_file function to global.php as specified in the install.txt file?
-jim |
|
#10
|
|||
|
|||
|
Yes
|
![]() |
|
|