Advanced search  

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

Pages: [1]   Go Down

Author Topic: rating  (Read 3343 times)

0 Members and 1 Guest are viewing this topic.

nex

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
rating
« on: April 05, 2004, 01:02:14 am »

how to reset rating of pictures to 0?
Logged

Nibbler

  • Guest
rating
« Reply #1 on: April 05, 2004, 01:24:59 am »

You can reset pic ratings using 'edit pics' from the album properties menu. Tick the 'Reset votes' box on the pic(s) then apply. If you want to reset *all* the ratings, then use an SQL query like:

Code: [Select]

UPDATE `cpg_pictures` SET `pic_rating` = '0', `votes` = '0';


in phpmyadmin or eq.
Logged

lamama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 404
Re: rating
« Reply #2 on: November 10, 2004, 01:20:02 pm »

Quote
UPDATE `cpg_pictures` SET `pic_rating` = '0', `votes` = '0';

What (side)effect will this have to the cpg_votes table? Is there any need to delete or update anything there?

I have problems with users try to mirror or "leech" my coppermine gallery - one sideeffect is a lot of zero-ratings caused by the download tools who just follow every link they find. It'd like to reset all zero-votes by users (because they also influence the regular votes), but I'm not sure what's the best solution for that problem.

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: rating
« Reply #3 on: November 11, 2004, 06:48:40 am »

my first advice would be to use the most recent stable version cpg1.3.2, not the outdated cpg1.2.x
The query you refer to will reset all votings on your gallery.

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 18 queries.