Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Picture hit counter problem  (Read 4564 times)

0 Members and 1 Guest are viewing this topic.

whmeeske

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • WHMEESKE.NL
Picture hit counter problem
« on: April 05, 2005, 11:12:05 am »

I've installed a local webserver (see my profile) and Coppermine 1.3.2 to test it before I will put it on my online webserver.
I made an album and have uploaded some pictures in it. This works all very nice.

After that I viewed the album and all the pictures in it. The first time I viewed them the picture hit counter was set to 1.
But when I viewed them a few more times, the picture hit counter stays 1 instead of increasing to higher numbers.

It seems that this doesn't work...

Has anyone a suggestion how to solve this problem?
Logged

tomrock

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • My Coppermine Gallery
Re: Picture hit counter problem
« Reply #1 on: April 05, 2005, 07:43:56 pm »

My guess is you just have to wait a little longer btween the "hits" to your local server or make sure you actually click a button to go back rather than use "back" in your browser. I have a similar setup for testing and it works just fine.

Not that it matters but I'm using Apache 1.3, MySQL 4.1 and PHP 4.3.10.
Logged

whmeeske

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • WHMEESKE.NL
Re: Picture hit counter problem
« Reply #2 on: April 05, 2005, 10:53:05 pm »

I can wait longer and use the buttons, but nothing changes at all  :(
I'm using Apache 2.0.49 / PHP 4.3.7 / MySQL 4.0.18.
I view the pictures in Coppermine on the server (localhost) itself. Can it make a difference if I view the pictures with another computer?

I really hope that there's a solution for this problem, because I like Coppermine very much and intend to use it on my online server.
Logged

donnoman

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From donovanbray.com
    • Donovan Bray
Re: Picture hit counter problem
« Reply #3 on: April 06, 2005, 04:11:49 am »

If you are logged in as an admin, you are not increasing the hit counters, as that would artificially inflate the numbers.

Make sure you log out and use a test account to test the hit counters.
Logged

tomrock

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • My Coppermine Gallery
Re: Picture hit counter problem
« Reply #4 on: April 06, 2005, 04:41:51 am »

If you are logged in as an admin, you are not increasing the hit counters, as that would artificially inflate the numbers.

Make sure you log out and use a test account to test the hit counters.

I know this is true of CPG 1.4 but my local install of 1.3.2 counts admin-logged hits. Weird.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Picture hit counter problem
« Reply #5 on: April 06, 2005, 07:28:44 am »

There is a hack to not count admin hits. It's not built-in in 1.3x
Logged

whmeeske

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 68
    • WHMEESKE.NL
Re: Picture hit counter problem
« Reply #6 on: April 06, 2005, 09:53:47 am »

I also thought about the user-issue, i'll try it.

For some reason the numbers are changing sometimes, but I don't know how and why...

Can you tell me more about the hack?
Logged

blackicx

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Picture hit counter problem
« Reply #7 on: August 06, 2005, 06:09:45 pm »

when i display an image the hit counter only counts for 1 times only ,when i refreshed it  does not work !  I tried what u said to other users : logout from admin, reseted counter all but not effected ? how can i solve it?
« Last Edit: August 06, 2005, 07:35:21 pm by blackicx »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Picture hit counter problem
« Reply #8 on: August 06, 2005, 08:24:43 pm »

in 1.32 admin hits get counted too... if you've visited an image and which one is stored in the cookie. So you'lll have to delete the cookie, login again and bingo, hitcounter+1

tomrock

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 29
    • My Coppermine Gallery
Re: Picture hit counter problem
« Reply #9 on: August 06, 2005, 09:25:26 pm »

I don't think there's really anything to solve here. If you want to see the hits go up, delete the cookie the server sends you between each view and they'll go up. Or view from different computers -- each one will count.

But I'm pretty sure that repeatedly viewing the same picture from the same computer won't increment the count.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 15 queries.