Advanced search  

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

Pages: 1 2 3 [4] 5 6 7 8 ... 17   Go Down

Author Topic: "Who is online" plugin (onlinestats)  (Read 442438 times)

0 Members and 3 Guests are viewing this topic.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin *experimental*
« Reply #60 on: March 04, 2006, 11:05:34 am »

having only 19 registered users means your site is rather small, so I can't see a large negative impact of the plugin. The random pics section will definitely burn more resources, so if you have performance issues, turn them off, or reduce the number of rows.
Logged

metamog

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 50
Re: "Who is online" plugin *experimental*
« Reply #61 on: March 04, 2006, 11:11:09 am »

Thank you GauGau! I'll keep this in mind.
Logged

cavallino

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: "Who is online" plugin *experimental*
« Reply #62 on: March 04, 2006, 01:15:20 pm »

Hi Nibbler...
I uninstalled your plugin from the control panel, by clicking on the X of uninstall, I also choose to delete the table that was created originally.

Then I reinstalled it, but now I see everything double! I see a double who is online panel and a double gallery index!
Tried to uninstall the plugin again, and reinstall it but same issue happens!

What should I do to come back to normal ?

Check your "Content of the Main Page" config. setting under "Album List View".  It sounds like you now have two mentions of "onlinestats" in there (and "catlist"). 

Paver...I think there's nothing wrong in that setting, because in that field i have the follwing

Code: [Select]
breadcrumb/catlist/alblist/random/lastup/onlinestats
so you see... no double entries!
But i still see everything double :(

If i uninstall this plugin then it comes back to normal . I just can't install this ... please any help?
Logged

Tango589

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: "Who is online" plugin *experimental*
« Reply #63 on: March 07, 2006, 07:41:27 am »

In the phpBB "who is online" the registered users that are online, admins and other user groups are displayed in a displayed in different color texts as to make them stand out  from regular users, is there a way to make this plugin do the same??  I want 2 of my user groups to show up in different colors...
Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: "Who is online" plugin *experimental*
« Reply #64 on: March 15, 2006, 09:41:06 pm »


@Nibbler:

Nice plugin! Works good! Translation was easy! Thanks!  8)

Is it possible to change something around date in the last line?

I get: "Am meisten BenutzerInnen online: 2 am 15.März 2006 um 18:37 Uhr."

I'd like: "Am meisten BenutzerInnen online: 2 am 15. März 2006 um 18:37 Uhr."

Here's a link to my site: http://www.orst.ch/copper/index.php
Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: "Who is online" plugin *experimental*
« Reply #65 on: March 15, 2006, 10:51:53 pm »

In codebase.php, this is the code that outputs that line:
Code: [Select]
echo 'Most users ever online: ' . $CONFIG['record_online_users'] . " on " . localised_date($CONFIG['record_online_date'], $comment_date_fmt ) . "<br>";As you can see, it uses $comment_date_fmt for the date format in the function call localised_date(), which is defined in lang/english.php or whatever language file you are using.  You could modify the format in the language file or you can just change the line above to use a different format you specify.  Use the setting in your lang file as a starting point and replace $comment_date_fmt in the line above with a string with the date format you want.

For all the format specifiers & more details: http://www.php.net/manual/en/function.strftime.php.

Logged

hama

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 229
Re: "Who is online" plugin *experimental*
« Reply #66 on: March 15, 2006, 11:18:24 pm »


Ok, I found it and it works now.

Thanks!




Logged
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

crxman

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 27
Re: "Who is online" plugin *experimental*
« Reply #67 on: April 04, 2006, 08:45:42 pm »

Thanks a lot works perfect !!! :)
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #68 on: April 19, 2006, 09:58:39 pm »

I just tried this on my board. I'm running CPG 1.4.4 with phpBB 2.0.20.

The install did not return any errors (I uploaded the zip file from the plugin manager).

However when I change my album list view to include 'onlinestats' I get the following message:

Critical error
There was an error while processing a database query

What I'm curious about, is I originally started with cpg 1.3.2 and have since upgraded. I'm wondering if the sql structure names being related to the older version are causing a problem?
Logged

Nibbler

  • Guest
Re: "Who is online" plugin *experimental*
« Reply #69 on: April 19, 2006, 10:02:04 pm »

Enable debug mode and post the mysql error message you get when you replicate the error.
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #70 on: April 19, 2006, 10:04:49 pm »

Critical error

There was an error while processing a database query.

While executing query "SELECT COUNT(*) FROM `generic_phpbb1`.phpbb_users" on 0

mySQL error:



File: /home/generic/public_html/photos/include/functions.inc.php - Line: 248
Logged

Nibbler

  • Guest
Re: "Who is online" plugin *experimental*
« Reply #71 on: April 19, 2006, 10:27:18 pm »

Change the line to

Code: [Select]
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);
Do the same for the other query that reads the phpbb user table.
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #72 on: April 19, 2006, 10:42:15 pm »

That fixed it! Thank you for the help. 

Just to clarify here is what I changed in the 1.2 version

codebase.php

line 119:
find:
Code: [Select]
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}");replace with:
Code: [Select]
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);

line 130
find:
Code: [Select]
$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1");replace with:
Code: [Select]

$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1", $cpg_udb->link_id);

« Last Edit: April 19, 2006, 11:06:00 pm by proxenus »
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #73 on: April 19, 2006, 10:56:18 pm »

edit:

Found my problem. I've edited my previous post to reflect the accurate change. Thanks again!
« Last Edit: April 19, 2006, 11:07:04 pm by proxenus »
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #74 on: April 19, 2006, 11:59:52 pm »

I hope I"m posting my problems in the correct place.  ??? I've searched around and haven't found anything about this yet.

I have cpg 1.4.4 bridged with phpbb 2.0.20.

The who is online plugin is not matching with what shows on the phpbb page

What the plugin shows:

We have 92 registered users
The newest registered user is DylanS
In total there is 1 user online :: 1 Registered, and 0 Guests
Most users ever online: 3 on Apr 19, 2006 at 12:25 PM
Registered Users: Proxenus

What phpbb shows:

We have 91 registered users
The newest registered user is DylanS
In total there are 4 users online :: 2 Registered, 0 Hidden and 2 Guests   [ Administrator ]   [ Moderator ]
Most users ever online was 21 on Thu Apr 14, 2005 1:22 pm
Registered Users: Procomsignathid, Proxenus

I think the number of registered users difference is related to a deleted phpbb user in my DB, but I'm baffled about the rest not showing up the same.
Logged

Nibbler

  • Guest
Re: "Who is online" plugin *experimental*
« Reply #75 on: April 20, 2006, 12:06:51 am »

The 2 sets of data are not connected. This plugin only knows about users who are using the gallery.
Logged

proxenus

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
    • www.generic-racing.com
Re: "Who is online" plugin *experimental*
« Reply #76 on: April 20, 2006, 12:30:13 am »

Ah, okay. stupid me :)

Works great! Thanks for all the work you've put into it.
Logged

terrorhawk

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 61
Re: "Who is online" plugin *experimental*
« Reply #77 on: April 20, 2006, 10:04:13 pm »

i realy like this plugin but i have 1 question.

How can i display this mod on other pages ?
like the tumbnail page or a forum (the little forum mod)
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: "Who is online" plugin *experimental*
« Reply #78 on: April 20, 2006, 11:50:54 pm »

terrorhawk: This thread (and board) is only meant for discussion of the plugin contribution, as it stands (help with getting it working or reporting bugs).  For requesting new features, please use the parent plugins board which is a support board.  Start a new thread and your request will be discussed in an organized separate thread.  That way things won't get out of hand in one long thread.  (And once it's implemented, that thread can be marked as "complete" or "solved" in an organized way.)

Of course you should reference this thread in your support thread.
Logged

terrorhawk

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Posts: 61
Re: "Who is online" plugin *experimental*
« Reply #79 on: April 21, 2006, 05:38:21 am »

ok i will start a new tread
Logged
Pages: 1 2 3 [4] 5 6 7 8 ... 17   Go Up
 

Page created in 0.026 seconds with 19 queries.