Support > cpg1.5 miscellaneous
Is it possible to easily get the total view count to be used elsewhere?
Longshadow:
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.
phill104:
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.
Longshadow:
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
Longshadow:
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.
ron4mac:
--- Quote from: Longshadow on July 29, 2020, 04:00:40 pm ---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.
--- End quote ---
I moved your previous, similar post here:
https://forum.coppermine-gallery.net/index.php/topic,80241.msg388303/topicseen.html#msg388303
Navigation
[0] Message Index
[#] Next page
Go to full version