PDA

View Full Version : Image uploader


ZEJUX
01-23-2005, 04:56 PM
Is there a mod here that would make it so that when a user signs up he can use an image uploader to put images onto the site and all images will be saved in folders seperated by the username he signed up on the vBulletin forums with? (I hope that made sense, if it didn't I'll try to explain it better)

Thanks,
ZEJUX

jokaroo
02-09-2005, 08:23 AM
Very cool idea...

Marco van Herwaarden
02-09-2005, 08:44 AM
If you set attachments to be stored in the file system instead of in the database, this is already done.

Files are not stored on username, but on userid.

For example if your attachment base-dir is set to 'forum/files', and a member with userid 123 uploads an attachment (picture, zip file or whatever), this file would be stored on the server in the directory:
'forum/files/1/2/3/'

Files are placed in subdirectory names made up from splitting all the number from the userid.

So member with userid = 98, would use directory:
'forum/files/9/8/'