Version: 1.00, by rake
Developer Last Online: Oct 2012
Version: 2.3.x
Rating:
Released: 04-27-2003
Last Update: Never
Installs: 87
No support by the author.
Woo! Finally! I've been working on this for 10 straight hours now.
It's a replica of the vbulletin 3 attachment feature, which supports multiple uploads. We can't have vbulletin 3 yet, but at least we can copy it.
Files to edit: 5
Queries to run: 5
New Templates: 3
Just be sure to backup before trying anything.
You can see it live at my forums. Log in as test/test, if you want to see it in action.
And don't forget to click the Install button if you like the hack.
=-=-=-=-=-=-==-=-
UPDATE - Please re-download the file. Upgrading instructions are included in instructions.php. And sorry for the wait. I had to bribe my parents with 15 math exercises to let me use the computer. :knockedout:
=-=-=-=-=-=-=-==-
=-=-=-=-=-=-=-=-=-
SECOND UPDATE - Sorry for the previous non-functioning version, everyone. I did those modifications really late at night and some errors slipped in. This update fixes permission errors, allows you to specify a maximum number of attachments, fixes 65535 bytes error and includes repairing instructions for editpost.php
I have tested it on a clean 230 test board and it worked fine.
=-=-=-=-=-=-=-=-=-
=-=-=-=-=-=-=-=-=-=
THIRD REVISION - This update fixes the 3 largest errors reported so far:
1. The view image atachments option now works
2. Attaching more than one file with a new thread now works
3. Deleting a post with attachments now works
=-=-=-=-=-=-=-=-=-=
To everyone who used attachment.php from the old zip: Please replace it with your original one. attachment.php was added in the zip by mistake.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
If you do NOT have the "Private Attachments" hack, open attachment.php
Find:
PHP Code:
if (!$attachmentinfo=$DB_site->query_first("SELECT filename,filedata,dateline,visible
FROM attachment
WHERE attachmentid='$attachmentid'".iif($privateok==0, 'AND private=0', ''))){
Replace With:
PHP Code:
if (!$attachmentinfo=$DB_site->query_first("SELECT filename,filedata,dateline,visible
FROM attachment
WHERE attachmentid='$attachmentid'")){
Now, with that error gone, all the attachments that I just posted are being cutoff at 65535 bytes. Any ideas why?
YES!!! YES YES YES YES YES YES!!!! IT WORKS!!!!!!....
only thing not working would be the edit post thing....i did the edits....or at least tried (since i got 2.2.6 and the codes are crazily different)...yeah....and i dont have the add attachments when editing hack either....anyway...
link, you probably have to edit the code and change the "MAX_FILE_SIZE" gto something......or change the max file size in the admin options...or sommat....who knows, i have no idea what im talking about..lol...thanks for that newattachment.php fix....it works :ninja:
Something in functions.. I just added my old functions and the old attachments show again.. but multiple ones do not.. Just the first picture in a multiple attachment thread.