YAFLogo

chriscoe71
  • chriscoe71
  • 79.4% (Friendly)
  • YAF Forumling Topic Starter
2009-09-30T13:19:00Z
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
2009-09-30T13:47:50Z
herman_herman
2009-09-30T13:53:08Z
Excellent.Thanks
Jaben
  • Jaben
  • 100% (Exalted)
  • YAF Developer
2009-10-01T16:53:03Z
Committing to the trunk... thanks!
UserPostedImage 
chriscoe71
  • chriscoe71
  • 79.4% (Friendly)
  • YAF Forumling Topic Starter
2009-10-02T01:11:39Z
Jaben wrote:

Committing to the trunk... thanks!

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.