I followed the instructions installing the mod and it works great, except the attachment order was sporadic.
So, I added a sleep cycle to the new code in ./posting.php
Code: Select all
foreach ($_FILES as $key => $value) {
sleep(1);
$message_parser->parse_attachments($key, $mode, $forum_id, $submit, $preview, $refresh);
}
Doesn't make sense, but it seems like there's a timing issue on my side when uploading the image files in order. I haven't tried non-image files yet.
Everything works so I tried getting rid of the plus/minus signs and making it automatic.
I got rid of the +/- onclick from the add_more_upload() routine found in styles/prosilver/template/posting_buttons.html and removed some code from the styles/prosilver/template/posting_attach_body.html. Reference here...
http://www.phpbb.com/community/viewtopi ... 5#p3191115
And did this...
http://www.phpbb.com/community/viewtopi ... 4#p3191474
Except this is what I used...
Code: Select all
<!-- IF S_SHOW_ATTACH_BOX -->
for(i=0; i < {MAX_ATTACHMENTS}; i++){
add_more_upload();
}
<!-- ENDIF -->
It works uploading files (Descending & Ascending), but when I try to delete a single file, it deletes the file and everything subsequent to it during an upload (by attachment #). For example...
Ascending:
1.jpg (attachment4)
2.jpg (attachment3)
3.jpg (attachment2)
4.jpg (attachment1)
5.jpg (attachment0)
If I choose to delete just 3.jpg (attachment2), 3.jpg, 2.jpg and 1.jpg are deleted.
Any ideas?
Somehow some variable gets lost when calling the add_more_upload() routine from the styles/prosilver/template/posting_layout.html file, but I could be wrong.
Thanks in Advance!