Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: AaaTeX - elokuu 08, 2014, 01:03:08 IP

Otsikko: Zeroing Ban Hits
Kirjoitti: AaaTeX - elokuu 08, 2014, 01:03:08 IP
I was looking for a way to zero the Ban hits in smf_ban_errors.

First is there a way to do with within smf now? If so then I can use it.

If not then when I have attempted to add a module to add to an existing module I am getting the famous
'Hacking Attempt ...'.

The SQL is straight forward and works in phpMyAdmin.  I have tried to do a query first.

Everything I tried gives me the error.

So how due I add/mod it to zero out the hits.

I have already changed the item ban to display, sort the hits.  Now clearing them is all I need (for now:-).

Thanks

Otsikko: Re: Zeroing Ban Hits
Kirjoitti: margarett - elokuu 08, 2014, 01:20:24 IP
Just go to phpmyadmin and directly write 0 on the "hits" column for the appropriate ban.
Otsikko: Re: Zeroing Ban Hits
Kirjoitti: AaaTeX - elokuu 09, 2014, 01:14:55 IP
That is what I have been doing but not what I want to do.
Otsikko: Re: Zeroing Ban Hits
Kirjoitti: margarett - elokuu 09, 2014, 01:19:13 IP
So, what do you want to do?
Otsikko: Re: Zeroing Ban Hits
Kirjoitti: Ninja ZX-10RR - elokuu 09, 2014, 03:13:56 IP
This is exactly what you are looking for --> http://custom.simplemachines.org/mods/index.php?mod=2586

Install it and whenever you want to purge the ban errors just delete all the filtered results by this mod :D (currently installed and working with SMF 2.0.8)