Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 02 Jul 2009, 03:29
z0diac z0diac is offline
Join Date: Dec 2006
Is there an easier way to split posts?

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. ( ? )


Last edited by z0diac; 06 Jul 2009 at 12:14.
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 07:32.

Layout Options | Width: Wide Color: