I suspect someone is trying to maniplulate my "most viewed" totals by hitting certain images over and over again. Is there a way that I can edit the totals for a given image on "most viewed"? The visitor(s) comes in on a dial-up service so blocking the ip address wouldn't work very well. Has anyone else experienced this problem?
http://www.espanolaonline.com/imagegallery/
You can manually edit the `hits` column in the pictures table using a db admin tool such as phpmyadmin.
Quote from: Nibbler on April 10, 2005, 11:15:14 PM
You can manually edit the `hits` column in the pictures table using a db admin tool such as phpmyadmin.
Arrrgh! Ok, I just don't know anything about mysql. I was hoping there was an easy way of doing this without learning databases. I'm willing to learn though...
You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.
That's what I was looking for! I hadn't seen that before. Thanks! ;D
Quote from: tomrock on April 12, 2005, 03:26:02 PM
You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.
Quote from: merletweb on April 12, 2005, 04:23:25 PM
That's what I was looking for! I hadn't seen that before. Thanks! ;D
This feature only exists in cpg1.4.x (devel version), it's not in the stable cpg1.3.2 yet.
Joachim
It is actually in 1.3, although I hadn't realised it either :)
ok, sorry for the confusion I caused:
- both in cpg1.3.x and cpg1.4.x, you can reset the views counter per file when in editpics.php
- only in cpg1.4.x, but not in cpg1.3.x, you can reset the views counter for all files within a particular album with one click when editing the album properties (in modifyalb.php)
HTH
Joachim
Quote from: tomrock on April 12, 2005, 03:26:02 PM
You could also go into Admin mode, click "Edit Files" for the abused gallery and check Reset View Counter. that might be easier but of course will set the views to zero.
Did this but ran into a problem. If the album has more than 100 photos how do you get beyond 100. Edit files only shows up to 100. ???
That's why there is a new option in the next version. :)
If you can get yourself into phpmyadmin, you can run:
UPDATE cpg_pictures SET `hits` = 0 WHERE aid = x
chaging cpg_ to the actual prefix chosen during installation and x to the id of the album you want to reset viewcount in. Backup your db before you do this of course :)