Reset Voting for all pictures to 0 ? Reset Voting for all pictures to 0 ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Reset Voting for all pictures to 0 ?

Started by eXess, September 19, 2006, 06:26:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

eXess

Is there a way to reset all votes for pictures to 0. I want voting for every picture to start again. Is it possible?  :o
.

Joachim Müller

Using the Coppermine user interface, you can only reset the votes/ratings by album (go to album properties, scroll to the bottom of the page, tick the corresponding checkbox, submit the form), so you would have to perform those steps for all your albums. Resetting all votes at once is not possible using the Coppermine interface - you'd have to edit your database with a third-party tool like phpMyAdmin. (not recommended). You'll have to truncate (i.e. empty, not delete!) Coppermine's votes table there. Then, you'd have to run a query like this:
QuoteUPDATE `yourCopperminePrefix_pictures` SET `pic_rating` = '0',  `votes` = '0';
I repeat: it's not recommended at all to fiddle directly with the database if you're not absolutely sure what you're doing. Backup your database before performing those steps, so you can savely go back if you mess up.