News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

No Log Certain User Errors

Started by dougiefresh, April 26, 2015, 11:33:51 PM

Previous topic - Next topic

dougiefresh

Link to Mod



NO LOG CERTAIN USER ERRORS v1.5
By Dougiefresh -> Link to Mod



What It Does
This mod adds several new settings to the forum to allow admin to suppress some errors generated by users.

Admin Settings
New settings are in Admin => Configuration => Security and Moderation => General:
o Log activation errors
o Log incorrect password errors
o Log Restricted Email Provider errors (works if Restrict Email Providers on Registration mod is installed)
o Log Member Is A Spam error (works if Stop Forum Spam mod is installed)
o Log Cannot Register with Spam Name (works if TapaTalk mod is installed)
o Log reserved username errors

New settings are in Admin => Forum => Attachments and Avatars => Attachment Settings:
o Log attachment timeout errors

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

If you use Restrict Email Providers on Registration, it should be installed prior to installation of 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.

Kimmie

Thank goodness. I have spent years looking at millions of "incorrect password errors" until I am blue in the face and nobody knows how to fix that problem. Mine goes all the way back to SMF 1.0. While this won't resolve the actual problem and users will still have to deal with having to log in 3 or 4 times before it finally lets them in, I won't have to deal with the errors anymore. :P

Falcyn

Great mod. In case anyone else has trouble finding the new settings: they're under Security and Moderation instead of Server Settings as the description says.

dougiefresh

@Falcyn:  Thank you for pointing that out.  I've updated the the mod's documentation to reflect this!

dougiefresh

Uploaded v1.1 - September 23rd, 2016
o Added ability to block "attachment timeout" errors in the log.
o Removed the "log if user is banned" option because SMF source didn't log those errors.
o Removed some unnecessary/redundant code to streamline the operation.

dougiefresh

Uploaded v1.2 - September 14th, 2017
o Fixed syntax error found in Sources/LogInOut.php.

Steve

Can this mod be made to ignore Arcade errors?
My pet rock is not feeling well. I think it's stoned.

dougiefresh

Quote from: Steve on September 15, 2017, 01:42:45 PM
Can this mod be made to ignore Arcade errors?
Point me to the Arcade mod and tell me which error(s) you want ignored.

Steve

Arcade (it is currently on RC5 but I haven't upgraded due to it not saving scores from flash games so I'm on RC4)

Error image attached though there are other types ... it would be nice to not see any errors generated by the arcade.
My pet rock is not feeling well. I think it's stoned.

dougiefresh

This mod exists to attempt to suppress USER generated errors (banned, wrong password, etc).  Those errors in the attachment that you provided are definitely NOT user generated, and represent programming errors that the mod author needs to address.  You need to open an issue at the GitHub repository and notify the user that such is happening...  I can't do anything about them with this mod.

Steve

Got it. Was just wondering and thanks for the clarification. :)
My pet rock is not feeling well. I think it's stoned.

dougiefresh

Just further clarification: If the code does a fatal_lang_error or fatal_error or log_error (or similar calls) call, I can add code to not log the error....

Steve

Nah, leave the mod doing what it does. :D
My pet rock is not feeling well. I think it's stoned.

dougiefresh

Uploaded v1.3 - November 25th, 2017
o Added ability to suppress "Member is a Spam" error from Stop Forum Spam mod.

-Rock Lee-

As always a great job besides as usual I leave the translation to Spanish :)


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

dougiefresh

@Rock Lee:  Can you translate these strings for me?  It's for the new version that I will release once I get the translation:
$txt['log_cannot_register_spam'] = 'Log Cannot Register with Spam Name<div class="smalltext"><strong>NOTE:</strong> Only occurs with Tapatalk mod</div>';

Thanks!

-Rock Lee-

@dougiefresh I have no problem it should be something like:

$txt['log_cannot_register_spam'] = 'El registro no puede registrarse con un nombre de spam<div class="smalltext"><strong>NOTA:</strong> Solo ocurre con el mod Tapatalk</div>';

Anything let me know that I help you in whatever you want :)


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

dougiefresh

One more, please:
$txt['log_reserved_username'] = 'Log reserved username errors';

-Rock Lee-

@dougiefresh Sure a pleasure to help you ;D!

$txt['log_reserved_username'] = 'Registrar errores de nombre(s) de usuario(s) reservado(s)';


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

dougiefresh

Uploaded v1.4 - November 26th, 2017
o Added Spanish Latin translation, courtsey of Rock Lee!
o Added ability to suppress "Cannot Register with Spam info" error from Tapatalk.
o Added ability to suppress "reserved username" errors.




@Rock Lee:  Thank you for the translations!  They have been included in this version!

dougiefresh

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

sah62

Will this mod be updated to work with 2.1.1?

Arantor

Seeing that the author last posted here nearly 3 years ago... no?
Holder of controversial views, all of which my own.


Diego Andrés

It claims support with SMF 2.1 RC2, so might be worth a shot with emulation and see how it goes during installation

SMF Tricks - Free & Premium Responsive Themes for SMF.

Lucarella

I tried, just to be sure, on SMF 2.1.4 and it doesn't work. The mod would be very useful if it was updated.
Or maybe these functions could be included by default in the next versions of SMF...
That would be really nice

CRM 114

Quote from: Lucarella on December 26, 2024, 04:22:28 AMOr maybe these functions could be included by default in the next versions of SMF...
This would be very nice indeed.
German Wet Shaving Forum: www.gut-rasiert.de/forum

Arantor

So how are you going to know if someone is trying to break into a specific individual's account?

This has happened before, multiple times to my knowledge (including to team members' accounts on this very site)
Holder of controversial views, all of which my own.


Lucarella

If something like this happens, how can we fix it?
No way, unless we contact the member to strengthen their password.
In any case, no one can use another user's profile, unless there are bugs, but it seems there aren't any.
In the forums that I administer, there are many errors of wrong passwords, because many users either forget or write incorrectly, and these mod functions can save time by not registering them.

Then their use would be optional...

Diego Andrés

And that's without considering brute force attacks using a leaked password or similar...

SMF Tricks - Free & Premium Responsive Themes for SMF.

Lucarella

There are possible scenarios that can happen rarely, very rarely.

Kindred

Not nearly as rare as you think.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: