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: Online User  (Read 6416 times)

0 Members and 1 Guest are viewing this topic.

jamurillo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • J.A. Murillo, photographer
Online User
« on: November 30, 2005, 11:00:26 pm »

Can Online Users be added to view in CPG 1.4.2 front page ?

Ex.:

We have 437 registered users
The newest registered user is: jam
In total there is 3 user online  2 Registered, and 1 Guests
Registered Users: panama
Logged

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Online User
« Reply #1 on: December 01, 2005, 12:12:04 am »

Please read this post by another member:

http://forum.coppermine-gallery.net/index.php?topic=5373.msg100833#msg100833

Read the first page of that post to gain instructions on how to begin adding this mod.

You can also do a search for who is online and you will find the threads for this mod.
Logged

jamurillo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 23
    • J.A. Murillo, photographer
Re: Online User
« Reply #2 on: December 01, 2005, 06:27:02 pm »



Whoisonline works for cgg 1.3.x not for cpg 1.4.2 .
Logged

natrlhy

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 77
Re: Online User
« Reply #3 on: December 01, 2005, 06:47:23 pm »

I currently have it working on 1.4.2:

The main modification I made was referenced by the link I previously posted.

Code: [Select]
Registered Users online: Andrew

We have 40 registered users
The newest registered user is Andrew
In total there is 1 user online :: 1 Registered, and 0 Guests
Most users ever online: 3 on November 30, 2005 @ 6:27 pm PST

Basically any references to db_query need to be changed to to cpg_db_query in the onlinestats.php file.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.