Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: manual set of counter  (Read 2252 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.121 seconds with 19 queries.