4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: TIMT on March 26, 2006, 10:23:27 PM

Title: put the number of hits automatically to 0 at the end of month
Post by: TIMT on March 26, 2006, 10:23:27 PM
Hi,

is there a possibility to put the number of hits automatically to 0 at the end of month?

I have to do that each month manually.

Thanks for helping me.

TIMT
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: IcEcReaM on March 26, 2006, 11:04:13 PM
Do you update the hits manually in phpmyadmin?
If not, i think that would be the easiest way.
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: TIMT on March 26, 2006, 11:22:02 PM
I do that in ACP. There ist a function for that... very easy to do.
The only thing is, I have to rember to do this task. I mean, if there is not an easy solution.... I let it be and will do it manually in the ACP.
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: IcEcReaM on March 27, 2006, 12:21:05 AM
the main problem is,
that php doesn't support time related stuff very well.

if you do it automaticcly only useing php,
then every time e.g. the global.php is called,
a function in it, has to check if already one month is over.

But if you wish anyway to do it automaticcly,
fore sure it can be done.
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: wallpapers on March 30, 2006, 09:34:37 PM
You can use cron-jobs :D
the can automatic do some db fun(c)tions in mysql :D
I havo not the knowlege to write it i'm sorry  :roll: :oops:
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: IcEcReaM on March 31, 2006, 03:01:25 AM
of course there are the option of cron job,
but i think most users doesn't have that option.
Title: Re: put the number of hits automatically to 0 at the end of month
Post by: wallpapers on March 31, 2006, 06:04:34 AM
No that's for sure.
I must ask my webhosting to install it
but it works fine
and i don't use it now

but it is a easy way to do this task