Batch reset hits

Phoca Gallery - image gallery extension
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Batch reset hits

Post by phidias81 »

Is there a way to reset hits of the images all togheter, other than going inside each picture and putting manually the input to 0? Thank you!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Batch reset hits

Post by Jan »

Hi, I think, the easiest way is to run some sql query in phpmyadmin to do this.
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Batch reset hits

Post by phidias81 »

Ok, thank you!
If somebody else have to do it and doesn't know how, the string to write in phpmyadmin>SQL is

Code: Select all

UPDATE csoph_phocagallery
SET hits='0'
change the prefix if you have different!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Batch reset hits

Post by Jan »

Ok, thank you for the guide.

Jan
If you find Phoca extensions useful, please support the project
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Batch reset hits

Post by phidias81 »

Actually only now I recognized that the hits are not recorded anymore. After I set everything to 0, now is just staying to 0, is not updating. What's wrong?
phidias81
Phoca Enthusiast
Phoca Enthusiast
Posts: 70
Joined: 05 Jan 2012, 01:20
Contact:

Re: Batch reset hits

Post by phidias81 »

Actually I eventually found out that the problem was that unfortunately Highslide only image is not storing the hits :(
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Batch reset hits

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply