vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   [php help] newattachment.php (https://vborg.vbsupport.ru/showthread.php?t=65879)

Aurous 06-05-2004 06:43 PM

[php help] newattachment.php
 
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-06-2004 11:03 PM

*bump*

Aurous 06-07-2004 06:33 PM

*bump*

Aurous 06-09-2004 11:09 AM

*bump*

eoc_Jason 06-10-2004 02: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 02: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 08:43 PM

*bump*

Aurous 06-13-2004 08:41 AM

*bump*

dstruct2k 06-14-2004 01: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 04:06 PM

Thanks for that useless post. If you guys cant help, then please dont bother posting here.


All times are GMT. The time now is 05:47 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01722 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete