![]() |
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 |
Excellent I always wanted a hack like this one instead of the image gallery that limits the user to one upload!
|
thanks for the hack.
|
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 |
Quote:
-jim |
I'm using .php3, shall I rename the files only?
Thanks :) |
Yes, just rename the files, and be sure to change the form action in the upload template as well.
-jim |
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:
<? |
Fred, did you add the upload_file function to global.php as specified in the install.txt file?
-jim |
Yes
|
All times are GMT. The time now is 02:43 PM. |
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:
|