If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Daily Counter not resetting back to zero on new day  XML
Forum Index » Support Forum
Author Message
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

Yes, the offset is currently set as 0. Whenever I check the visitors.php log and it show the time correctly.

The problem is, at midnight it will changed to 1, then i uses another ip to visit the site and it suddently jump to 12 instead of 2. I am sure at that time there is no one else visited the by site.

Please advice and thanks for your help.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

The title of this thresad states that the counter is not resetting at midnight. This is not your problem hence my fix would not work for your prolem.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

Sorry, It should be "It would sometime changed to 1" but not all the time. But eventhough it change to 1, it will suddently jump to + 10.

Sorry for the typo
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Ok so the problem is that it resets to 1and then jumpt to double figures after the next visitor?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

Yes
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I'l download it again at some point and take another look.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

open counter.class.php and replace

with

Then replace

with

Again not tested but try it.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

OK, will test it out at post back later.

Thank you very much for the help.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Did it work?

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

After testing for 2 days, it seems to work.

It reset to 1 at midnight and the number no longer jump +10 or whatsover.

Thanks for the tips. Thank You.
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

It happen again on 4th day .

It change to one on next day, then it jumps to 12 when a 2nd visitor visited the site.

Maybe this is difficult to solve and I think I have to leave with it having + 10 from 2nd visitor onwards.

If anyone have a solution, I am happy to test it.

Thanks.
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

I'll peruse the code again. It sounds like it's putting the 2 onto the end of the 1 for some bizarre reason.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
akira
Beginner

Joined: 04/06/2005 04:53:41
Messages: 28
Offline

Thank you very much.

I think those website with many visitors may not notice this problem. For mine, it's hardly reach 10 visitors per day.

If it is really take time, it's OK. I dont want to trouble you much on this minor defect. +10 is not big deal for me.

Thanks for all the help, Carbonize.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum