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: manual set of counter  (Read 2238 times)

0 Members and 1 Guest are viewing this topic.

empfl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • cy tha game
manual set of counter
« on: December 08, 2007, 02:54:02 pm »

hello,

i had to upload a file oncemore after i have deleted it.

now my question, how can i set the counte rmanually to f. example to 199 ???

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: manual set of counter
« Reply #1 on: December 08, 2007, 02:59:23 pm »

Why did you delete it in the first place?
Anyway: there's no method built into the coppermine user interface to set the counter to a specific value. You'll need to manipulate the database directly, using a tool like phpMyAdmin. I'm pretty sure that this has been discussed in detail already, so please use the search.
Logged

empfl

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Male
  • Posts: 54
  • cy tha game
Re: manual set of counter
« Reply #2 on: December 08, 2007, 04:11:15 pm »

Thx GauGau,

i've used the search, i searched von manual counter set.
i've nothing, really, even perhaps i gave up to soon ;-)
sorry
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: manual set of counter
« Reply #3 on: December 08, 2007, 06:27:17 pm »

Something like
Code: [Select]
UPDATE `CPG_pictures` SET `hits` = '199' WHERE `pid` =1234 LIMIT 1 ;should do the trick, where "1234" in the example is the ID of the pic and "CPG" is the table prefix you chose during install. Not recommended for total newbies.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.