PDA

View Full Version : [php help] newattachment.php


Aurous
06-05-2004, 07:43 PM
Scenario:

I have "Attachments Per Post" set to "5" and created a new extension type "rar".

I would like to restrict the maximum number of rar files to 1 per post. But any number of attachments (less than or equal to 5 as set above) for other extensions (gif, jpg, etc)

For example: If a user uploads .rar file, and tries to upload another .rar file, he should get an error in the attachment page.

Now from what I understand, I'd need to edit newattachment.php file.

Please help me out here.

Thanks

Aurous

Aurous
06-07-2004, 12:03 AM
*bump*

Aurous
06-07-2004, 07:33 PM
*bump*

Aurous
06-09-2004, 12:09 PM
*bump*

eoc_Jason
06-10-2004, 03:11 AM
And what would prevent a user from making several posts in a row just to attach several rar files?

Aurous
06-10-2004, 03:01 PM
LOL, I knew that was coming. Well that has already been sorted here:

https://vborg.vbsupport.ru/showthread.php?t=64493

Aurous
06-12-2004, 09:43 PM
*bump*

Aurous
06-13-2004, 09:41 AM
*bump*

dstruct2k
06-14-2004, 02:41 AM
*bump upside the head*

Bump it again and we ignore you. :p


As for that, I could do it but I'm currently busy with a larger project.

Aurous
06-14-2004, 05:06 PM
Thanks for that useless post. If you guys cant help, then please dont bother posting here.