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: Is it possible to easily get the total view count to be used elsewhere?  (Read 237 times)

0 Members and 1 Guest are viewing this topic.

Longshadow

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • My Mind's Eye

I would like to grab the total view count (90,874) as displayed on the gallery main (index) page:

"723 files in 34 albums and 8 categories with 9 comments viewed 90,874 times."

I would like to use that number in another "visits" display.

Thanks.
Logged

Phill Luckhurst

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4710
    • Windsurf.me

What version of Coppermine are you using? 1.4.x has been unsupported for a very long time now. It has some known security issues. If you can update to 1.6.x then that would be a very good move. Then we can advise how you can read the view count from the database and display it on another page. If you need help in upgrading then please ask on the CPG 1.6.x upgrading forum.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Longshadow

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • My Mind's Eye

Thanks for your reply.
I'm currently using v1.5.48.

If I can access the file and do a read via PHP, hopefully all I need is the file name where the info is stored.
I'm guessing I can parse the info to obtain the number.
Did they change the file name for that data in v1.6?

Bill
Logged

Longshadow

  • Coppermine newbie
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 6
    • My Mind's Eye

It seems that the upgrade/install procedure has changed?
I used to push all the files except anycontent and albums to the server and run update.php.
I can only find instructions for installing v1.5, and they appear vague to me.
I'm not going to do 1.6 yet for fear of screwing up what I have.
Logged

ron4mac

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Posts: 1550

It seems that the upgrade/install procedure has changed?
I used to push all the files except anycontent and albums to the server and run update.php.
I can only find instructions for installing v1.5, and they appear vague to me.
I'm not going to do 1.6 yet for fear of screwing up what I have.

I moved your previous, similar post here:
https://forum.coppermine-gallery.net/index.php/topic,80241.msg388303/topicseen.html#msg388303
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.