Batch reset hits
-
phidias81
- Phoca Enthusiast

- Posts: 70
- Joined: 05 Jan 2012, 01:20
- Contact:
Batch reset hits
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!
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Batch reset hits
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

- Posts: 70
- Joined: 05 Jan 2012, 01:20
- Contact:
Re: Batch reset hits
Ok, thank you!
If somebody else have to do it and doesn't know how, the string to write in phpmyadmin>SQL is
change the prefix if you have different!
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'- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Batch reset hits
Ok, thank you for the guide.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
phidias81
- Phoca Enthusiast

- Posts: 70
- Joined: 05 Jan 2012, 01:20
- Contact:
Re: Batch reset hits
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

- Posts: 70
- Joined: 05 Jan 2012, 01:20
- Contact:
Re: Batch reset hits
Actually I eventually found out that the problem was that unfortunately Highslide only image is not storing the hits 
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Batch reset hits
If you find Phoca extensions useful, please support the project