YAFLogo

chriscoe71
  • chriscoe71
  • 79.4% (Friendly)
  • YAF Forumling Topic Starter
14 years ago
One of our requirements was to limit the number of attachments that could be placed on a single post.

Attached is the Patch file for the changes that were done.

This adds a new textbox under Admin > Host Settings called "Maximum Number of Attachments per Post". I set the Default to 5, which was our requirement.

If the number is greater than 0 and the user has uploaded the maximum, then the Upload table row is hidden from the client. If they delete one of their attached files, then the Upload table row is displayed again.

Jason


Sponsor
midwestSS
14 years ago
herman_herman
14 years ago
Excellent.Thanks
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
14 years ago
Committing to the trunk... thanks!
chriscoe71
  • chriscoe71
  • 79.4% (Friendly)
  • YAF Forumling Topic Starter
14 years ago

Committing to the trunk... thanks!

Jaben wrote:

Thanks to you and the rest of the contributors! This is an excellent project and I am happy to help where and when I can.