Advertisement:

Author Topic: No Attachment Limits for Membergroups  (Read 5083 times)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
No Attachment Limits for Membergroups
« on: December 20, 2014, 06:56:52 PM »
Link to Mod


NO ATTACHMENT LIMITS FOR MEMBERGROUPS v1.8
By Dougiefresh -> Link to Mod


Introduction
This mod makes a number of changes to the forum so that the following limits don't apply to selected membergroups:
o Maxmimum number of attachments per post
o Maxmimum attachment file size
o Maxmimum size of all attachments per post
o Allowed attachment extensions

With the PM Attachments mod installed, it also removes the following limits:
o Maxmimum number of attachments per PM
o Maxmimum PM attachment file size
o Maxmimum size of all attachments per PM
o Allowed PM attachment extensions

Admin Settings
Under Admin -> Members -> Permissions, two permission permissions are available per membergroup:
o "No Post attachment limits"
o "No PM attachment limits" (available only with PM Attachments mod installed)

Related Discussions
o No attachment limit for admins

Compatibility Notes
This mod was tested on SMF 2.0.9, but should work on SMF 2.1 Beta 3, as well as SMF 2.0 and up.  SMF 2.1 Beta 1, 2.1 Beta 2, and 1.x will not be supported.

If you use PM Attachments, it must be installed before this mod.

Changelog
The changelog can be viewed at XPtsp.com.

License
Copyright (c) 2015 - 2018, Douglas Orend
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
« Last Edit: January 19, 2015, 09:46:35 AM by dougiefresh »

Offline Masterd

  • SMF Hero
  • ******
  • Posts: 3,895
  • Gender: Male
Re: No Attachment Limits for Membergroups
« Reply #1 on: December 29, 2014, 05:47:49 AM »
Nice one. You're as hard working as ever.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #2 on: January 19, 2015, 09:46:45 AM »
Uploaded v1.1 - January 19th, 2015
o License change to Simplified BSD.  No functionality change.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #3 on: March 15, 2015, 03:06:03 PM »
Uploaded v1.2 - March 15th, 2015
o Fixed a few undeclared array element bugs within the mod.

Offline mt

  • Semi-Newbie
  • *
  • Posts: 24
Re: No Attachment Limits for Membergroups
« Reply #4 on: March 16, 2015, 06:16:20 PM »
In version 1.2 the install.xml is broken.

The operation
search position="replace"><![CDATA[// !!! These won't work if you're posting an event!]]></search

has no closing operation tag which results in a bugged patch.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #5 on: March 18, 2015, 07:21:24 PM »
Uploaded v1.3 - March 18th, 2015
o Fixed unclosed operation tag within install.xml in the mod package, as reported by mt.



@mt:  This update fixes this issue.  Thank you for the bug report.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #6 on: April 06, 2015, 05:02:47 PM »
Uploaded v1.4 - April 5th, 2015
o Updated for SMF 2.1 Beta 1

Offline Burt

  • Semi-Newbie
  • *
  • Posts: 97
Re: No Attachment Limits for Membergroups
« Reply #7 on: December 22, 2015, 09:33:31 PM »
Thank you for taking the time to make this mod. Good time saver... Much appreciated.


Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: No Attachment Limits for Membergroups
« Reply #8 on: October 01, 2016, 04:58:30 PM »
Get the following error when a personal message is sent.

Code: [Select]
8: Undefined index: no_attachment_limit
Apply Filter: Only show the errors from this file
File:/Themes/default/PersonalMessage.template.php
Line: 1162

Line 1162
Code: [Select]
if ($context['no_attachment_limit'] || $context['num_allowed_attachments'] > 1)

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #9 on: October 02, 2016, 09:09:12 PM »
Uploaded v1.5 - October 2nd, 2016
o Fixed several undefined element errors found by Westwegoman.



@Westwegoman:  Thank you for the bug report!  It's been fixed!

Offline Westwegoman

  • Jr. Member
  • **
  • Posts: 199
  • Gender: Male
    • westwegoman on Facebook
    • Westwegoman on LinkedIn
    • Bayou State Fishing
Re: No Attachment Limits for Membergroups
« Reply #10 on: October 02, 2016, 11:02:39 PM »
@Westwegoman:  Thank you for the bug report!  It's been fixed!

Anytime! Thanks for the mod.

I'll try it out when I get a chance. So many mods on my site, I get tons of errors when I attempt to uninstall. Have to go do them manually when my brain is functioning better.

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #11 on: October 22, 2018, 10:19:58 PM »
Uploaded v1.7 - October 22nd, 2018
o No functionality change.
o Updated documentation to point to new website.

Offline Rock Lee

  • Native Language Support Specialist
  • SMF Hero
  • *
  • Posts: 1,990
  • Gender: Male
  • I also speak english :D
    • BomberCode.Oficial on Facebook
    • RockLee-BC on GitHub
    • @Bomber_Code on Twitter
    • Bomber Code ~ La nueva era del conocimiento
Re: No Attachment Limits for Membergroups
« Reply #12 on: October 23, 2018, 01:39:55 PM »
Just what I was thinking I needed :D, in passing I leave the translation to Latin Spanish! 8)


Regards!
¡Regresando como cual Fenix! ~ Bomber Code © 2018
Ayudas - Aportes - Tutoriales - Y mucho mas!!!


Ayudame via PayPal

Offline dougiefresh

  • SMF Hero
  • ******
  • Posts: 2,815
  • Mod King
    • XPtsp.com Community
Re: No Attachment Limits for Membergroups
« Reply #13 on: November 09, 2018, 09:33:43 PM »
Uploaded v1.8 - November 9th, 2018
o Added Spanish Latin translation, courtsey of Rock Lee!



@Rock Lee:  Thank you for the translation!  It's been included in this version!