Changing hit counts Changing hit counts
 

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

Changing hit counts

Started by casp3r, July 01, 2014, 01:23:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

casp3r

I'm migrating my images from joomgallery (joomla) to Coppermine. I have 4200+ images to move. I can recreate the category and album structure in Coppermine and upload the images. Time consuming I know but has to be done. The images in joomgallery have over 1.6 million hits and I'd like to preserve these hits. Is there any admin tool that will allow me to change the hit count on individual images in Coppermine. I know I can change them to zero. I really don't want to have to go in to the database and make the changes there. Any help would be greatly appreciated.

Many thanks in advance
Michael

Version: 1.5.28

Αndré

There's no interface to do that. I don't know how the Joomla gallery stores the hits, but I'm sure they can be transferred to the Coppermine database. It all depends on the information the Joomla gallery stores. For example, Coppermine stores data like each file's path and name, which is probably also available in the Joomla gallery. With some knowledge of both database structures it should be a quite simple task to create a script that updates the hit stats of the images in your Coppermine gallery.

casp3r

Hi Αndré
many thanks for the reply. I suspected as much. Would it be possible to edit the editpics.php file to show the hits for each photo and allow me to change them individually? I don't mind doing them this way. Unfortunately don't know enough php/mysql to do this myself so again any help would be very much appreciated.

Αndré

Should be possible. I'll check if this is even possible as a plugin.

casp3r

Again many thanks and I really do appreciate the help.