No Attachment Limits for Membergroups

Started by dougiefresh, December 20, 2014, 06:56:52 PM

Previous topic - Next topic

dougiefresh

Link to Mod



NO ATTACHMENT LIMITS FOR MEMBERGROUPS v1.9
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 RC2, as well as SMF 2.0 and up.  SMF 2.1 Beta 1, 2.1 Beta 2, 2.1 Beta 3, 2.1 RC1, 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 - 2019, 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.

Masterd

Nice one. You're as hard working as ever.

dougiefresh

Uploaded v1.1 - January 19th, 2015
o License change to Simplified BSD.  No functionality change.

dougiefresh

Uploaded v1.2 - March 15th, 2015
o Fixed a few undeclared array element bugs within the mod.

mt

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.

dougiefresh

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.

dougiefresh

Uploaded v1.4 - April 5th, 2015
o Updated for SMF 2.1 Beta 1

Burt

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!

Westwegoman

Get the following error when a personal message is sent.

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
if ($context['no_attachment_limit'] || $context['num_allowed_attachments'] > 1)

dougiefresh

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!

Westwegoman

Quote from: dougiefresh on October 02, 2016, 09:09:12 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.

dougiefresh

Uploaded v1.7 - October 22nd, 2018
o No functionality change.
o Updated documentation to point to new website.

-Rock Lee-

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
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

dougiefresh

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!

dougiefresh

Uploaded v1.9 - May 22nd, 2019
o Added support for SMF 2.1 RC2.
o Removed support for previous SMF 2.1 Betas and RC1.

shadav

typo in language_english.xml
find
<file name="$languagedir/ManagePermissions.english_utf8.php" error="skip">
replace
<file name="$languagedir/ManagePermissions.english-utf8.php" error="skip">

Advertisement: