Hiding number of times viewed Hiding number of times viewed
 

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

Hiding number of times viewed

Started by marian, July 05, 2004, 10:03:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

marian

My boss doesn't like the fact that the public can see how many times each picture has been viewed. She has a valid reason - ie. some of our pix will be supplied by top pro photographers and it could be embarrassing if one of their pics doesn't attract many views. She wants this changed, so that only Admin can see the individual views.

I suspect this means I will have to delve into the php  ??? which I was really scared of, but I have now been told that my previous disaster with another php script was because I edited it in Word. So I shall double back up & then have ago.

What I will need is very explicit instructions about what I have to alter. Can someone please help?

Casper

This is admin settable. Go into config, and turn it off there.
No need to mess with php code.

When you do code, you are advised to use a plain text editor, such as notepad, which does not add formatting of it's own.

You must not use a wysiwyg editor, or progs such as word.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

marian

Quote from: Casper on July 05, 2004, 11:06:36 PM
This is admin settable. Go into config, and turn it off there.
Thanks Caspar, I had expected to find it in config but couldn't see it. I still cant see it, am I just dumb?
I've attached a jpeg of the relevant (I think) config bits.

[attachment deleted by admin]

Joachim Müller

"Display number of views below the thumbnail" in cpg1.3.0.
Option not available in cpg1.2.1

GauGau

[attachment deleted by admin]

marian

Quote from: GauGau on July 06, 2004, 10:27:29 AM
"Display number of views below the thumbnail" in cpg1.3.0.
Option not available in cpg1.2.1

GauGau
Thanks, so that means I either have to mess with the php, or attempt an upgrade? Yes?? As everything is going so well, I think altering the php could ne the lesser evil. Could you point me in the right direction?

Casper

It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

marian

#6
Quote from: Casper on July 06, 2004, 12:47:00 PM
Oops  :-[

http://forum.coppermine-gallery.net/index.php?topic=4079

upgrading is very easy if you don't have too many mods.
My first successful php mod.  :)

I couldn't find Nibbler's .(($rowset[$key]['title'])?"-":"").sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits'])
but I found something else containing ($lang_get_pic_data['n_views'] and removing that worked! I'm so pleased with myself and grateful to you!  :) :) :)

Is there any way I can make those figures visible to Admin only, or am I getting too ambitious?