z0diac
07-02-2009, 02:29 AM
I run a picture-based forum. Thread display is show 5 posts per page. I have a 3rd party uploader that allows batch-selecting of files.
Now, when uploading 1000 pictures at once, I obviously don't want 1000x5posts on one page, so we're trying to figure out an easy concept of accepting all 1000 (500, 2000, whatever) attachments in one shot, then write some code that will split it into smaller posts of say 50 per post. I don't want users to have to sit there and make 20 individual posts themselves to upload all their photos. I just need to mod the vB code so it accepts all of them, then splits them into smaller individual posts.
The coder I'm working with right now says it will probably be easiest to have vB accept them all into one post, then have the mod split it after.
I thought it might be easier to insert some code somewhere after the user clicks Submit and take the attachments from wherever they reside, and make multiple-posts right away. Some code that would take the first X attachments, make a post, the next X attachments, make another post, etc. I don't care either way, just so long as we're going about the easiest method.
Can anyone here suggest an easy concept of doing this? I don't know PHP myself but I'm trying to help him go about the easiest way as I think he's struggling with it :) I thought it would be relatively simple - have a loop just take small #'s of attachments and make posts until they're all done. ( ? )
UPDATE - THIS IS BEING DONE FOR ME - NO HELP NEEDED
Now, when uploading 1000 pictures at once, I obviously don't want 1000x5posts on one page, so we're trying to figure out an easy concept of accepting all 1000 (500, 2000, whatever) attachments in one shot, then write some code that will split it into smaller posts of say 50 per post. I don't want users to have to sit there and make 20 individual posts themselves to upload all their photos. I just need to mod the vB code so it accepts all of them, then splits them into smaller individual posts.
The coder I'm working with right now says it will probably be easiest to have vB accept them all into one post, then have the mod split it after.
I thought it might be easier to insert some code somewhere after the user clicks Submit and take the attachments from wherever they reside, and make multiple-posts right away. Some code that would take the first X attachments, make a post, the next X attachments, make another post, etc. I don't care either way, just so long as we're going about the easiest method.
Can anyone here suggest an easy concept of doing this? I don't know PHP myself but I'm trying to help him go about the easiest way as I think he's struggling with it :) I thought it would be relatively simple - have a loop just take small #'s of attachments and make posts until they're all done. ( ? )
UPDATE - THIS IS BEING DONE FOR ME - NO HELP NEEDED