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: Counters Main Page Log In  (Read 2139 times)

0 Members and 1 Guest are viewing this topic.

rufride

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Counters Main Page Log In
« on: March 09, 2007, 06:48:12 pm »

Is there a way to place a counter on our Coppermine Photo Book
main page log in screen?

We need a way to count the individuals entering the photo book,
not the number of times each photo is viewed. 
 

Thank You for your help.
Don
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Counters Main Page Log In
« Reply #1 on: March 09, 2007, 07:14:15 pm »

Sure, go ahead and add your counter code to themes/yourtheme/template.html (if you want to count all page impressions and your counter is client-driven, e.g. written in JavaScript) or login.php (if you want to count only the visits per login page, PHP-counter possible as well as a JavaScript-driven one or a webbug).
If you have a counter driven by server-sided scripting (e.g. PHP or Perl) I suggest using the custom header feature for this purpose.

Out of the box, Coppermine doesn't come with counter scripts, but the web is full of them. Choose the one that suits your needs best and apply it as you see fit. Make sure to decide for a counter that doesn't need to manipulate the file header, as such counters are hard to get to work with Coppermine (if at all).
Logged
Pages: [1]   Go Up
 

Page created in 0.024 seconds with 20 queries.