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] 2   Go Down

Author Topic: Users Online Today  (Read 92202 times)

0 Members and 1 Guest are viewing this topic.

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Users Online Today
« on: August 22, 2006, 06:51:26 am »

Users Online Today (Like SMF add-on package) ver 1.0
   Main mod: http://forum.coppermine-gallery.net/index.php?topic=17308.0
   Main idea: probinson77

   Special thanks to razorbiker , who ordered ;) this plugin

Install:
- unzip package to plugins folder and use plugin manager to install it
- after installation add onlinetoday to :
    config => Album list view => The content of the main page

config:
- if you want to show this stat to admin only , open up plugins/online_oday/codebase.php and replace (around line 63)
this
Code: [Select]
if($matches[1] != 'onlinetoday') {
with this
Code: [Select]
if($matches[1] != 'onlinetoday' || !GALLERY_ADMIN_MODE) {

- if you want to show this stat to Registered user only , open up plugins/online_oday/codebase.php and replace (around line 63)
this
Code: [Select]
if($matches[1] != 'onlinetoday') {
with this
Code: [Select]
if($matches[1] != 'onlinetoday' || !USER_ID) {

There isn't any configuration page for this plugin , yet !
« Last Edit: August 22, 2006, 07:11:25 am by GauGau »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

terrorhawk

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 61
Re: Users Online Today
« Reply #1 on: August 26, 2006, 12:21:05 pm »

Very cool.
It looks likes it works
Only one strange thing.
it not alway's shows if the user was online.
It looks likes it doesnt show a user if u use the remember me function
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Users Online Today
« Reply #2 on: August 28, 2006, 07:20:51 am »

yes this plugin use xxx_users table as a reference and that table doesn't change the user-last-visit value for those who select remember me option there is two solution:
- changing the core files of CPG to change that value
- use custom table to store this plugin data
« Last Edit: September 12, 2006, 07:32:10 am by bmossavari »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Farnsi

  • LocalSupporter
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 177
Re: Users Online Today
« Reply #3 on: September 21, 2006, 05:43:40 pm »

yes this plugin use xxx_users table as a reference and that table doesn't change the user-last-visit value for those who select remember me option there is two solution:
- changing the core files of CPG to change that value
- use custom table to store this plugin data
Nice Mod, thank you!
Could you help me a little and explain how to use a custom table to store the plugin data? I guess it would be the most elegant way to solve the "problem" mentioned above, right?

I´m running version 1.4.9 with the modpack and the "Who is online"-plugin.

Greetings!
Logged
Regards,
Farnsi

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Users Online Today
« Reply #4 on: September 22, 2006, 10:59:02 am »

Morning Sami  ;)
All,

CODEBASE.PHP in French here  ;D

  Thanx

PYAP
Logged

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Users Online Today
« Reply #5 on: December 17, 2006, 06:47:50 am »

Nice Mod!

Could you help me a little and explain how to use a custom table to store the plugin data? I guess it would be the most elegant way to solve the "problem" mentioned above, right?

I´m running version 1.4.9 with the modpack and the "Who is online"-plugin.
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Users Online Today
« Reply #6 on: December 17, 2006, 06:59:08 am »

- Create a custom table like xxx_uotlog
- Run custom Mysql query at authentication to add some user info to xxx_uotlog
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gephri

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 235
Re: Users Online Today
« Reply #7 on: December 17, 2006, 06:05:05 pm »

thanks Sami - got it.
Logged

m@rk

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 39
Re: Users Online Today
« Reply #8 on: December 29, 2006, 04:03:39 pm »

I made a modification and permit to name it v1.1.

Modifications:

  • Internationalisation (languages English, German included)
  • Layout modification
  • Links to user profiles only for members
  • Display Your IP and ISP
« Last Edit: December 29, 2006, 04:44:22 pm by m@rk »
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Users Online Today
« Reply #9 on: December 29, 2006, 06:04:43 pm »

French.php lang file attached  ;)
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

orTubes

  • Coppermine newbie
  • Offline Offline
  • Posts: 19
Re: Users Online Today
« Reply #10 on: January 26, 2007, 10:57:33 pm »

This plugin only shows the registered users, has as to also show how many guests they are connected?

http://www.orTubes.com
http://Http://orGames.ortubes.com
Logged

Nibbler

  • Guest
Re: Users Online Today
« Reply #11 on: January 26, 2007, 11:41:20 pm »

You probably want the who's online plugin.

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

Invalid ID

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 22
    • Apni Mehfil
Re: Users Online Today
« Reply #12 on: January 30, 2007, 03:46:07 am »

I am new to this, so kindly tell me what file(s) will be uploaded.

I first unzipped cpg1.4.x_plugin_pack_v3, found online_today, so wanted to install it. So I used Plugin Manager to install it, but uploading configuration.php and codebase.php gives a message "The file uploaded is not a plugin package."

What should I do?

Thanks
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Users Online Today
« Reply #13 on: January 30, 2007, 07:11:17 am »

You should upload "online_today" folder to plugins folder
Logged
‍I don't answer to PM with support question
Please post your issue to related board

fotovagu

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 25
Re: Users Online Today
« Reply #14 on: March 09, 2007, 11:37:35 am »

very nice plugin. thanx :)

is it possible to change this to show Users online in  last 24 Hours ?


thanx
fotovagu
Logged

Darth Unrivaled

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 11
  • The Sith Master
    • XfireSystems Revolutions
Re: Users Online Today
« Reply #15 on: April 19, 2007, 02:15:20 pm »

I install this plugin, yet it doesn't work. It always shows 0 users online. I made the change to show to only register users. Does this mod work if you have turn on the bridge between CPG and BBS? Being that it doesn't use the user table anymore and if so is there a work around for this?
Logged

Nibbler

  • Guest
Re: Users Online Today
« Reply #16 on: April 19, 2007, 02:43:02 pm »

No, this plugin is not bridge compatible.
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Users Online Today
« Reply #17 on: April 19, 2007, 02:53:36 pm »

dutch.php attached
Logged

will

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 263
Re: Users Online Today
« Reply #18 on: November 19, 2007, 01:27:40 pm »

Had this plugin a while but I haven't used it until now, I get this database query error and this mysql error:

While executing query "SELECT user_id,user_lastvisit FROM `newgallery2007`.ibf_members WHERE user_lastvisit LIKE '2007-11-19%'" on 0

mySQL error: Unknown column 'user_id' in 'field list'

My gallery is bridged, is this why? If so is there a way of making it work with my bridged gallery ;)
Logged

Nibbler

  • Guest
Re: Users Online Today
« Reply #19 on: November 19, 2007, 02:03:03 pm »

No, this plugin is not bridge compatible.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.031 seconds with 20 queries.