Its i Bit complicated, and it needs i litle hard work.
To upload images you can use this
http://kcfinder.sunhater.com/, but it need's i diferent aproach how the picture are stored in the file system. Here is one away you can do it but need's change the osclass core files.
1. every user has directory in the file system
-- user
---ad1
------pictures
--ad2
------Pictures
2. on the post-ad part, when the user clicks on insert ad, i new directory will by created has
--user
----ad-tmp
--------pictures
3. after you can use the
http://kcfinder.sunhater.com/ and configure just to use that directory "user/ad-tmp/pictures"
you can upload all the files, make resize, whatever.
4. When the user clicks on the submit form, you only need to save on the database the file system path of images "ad", and rename the "ad-tmp" to "ad-$id" - the $id will be the last inserted record id from the database.
5. View part of the ad you just need i function to read all picture inside the path of user->ad$id->pictures.
When i have time i will try to do it this aproach.
Best Regards
www.reportula.orgwww.newitperson.com