"Who is online" plugin (onlinestats) - Page 4 "Who is online" plugin (onlinestats) - Page 4
 

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]

Main Menu

"Who is online" plugin (onlinestats)

Started by Joachim Müller, January 16, 2006, 02:34:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Joachim Müller

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.

metamog

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

cavallino

Quote from: cavallino on March 01, 2006, 08:25:40 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 ?

Quote from: Paver on March 01, 2006, 10:32:06 PM
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

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?

Tango589

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...

hama


@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
Get up, stand up, stand up for your rights! - Get up, stand up, don't give up the fight!

Paver

In codebase.php, this is the code that outputs that line:
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.


hama


Ok, I found it and it works now.

Thanks!




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

crxman


proxenus

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?

Nibbler

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

proxenus

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

Nibbler

Change the line to

$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.

proxenus

#72
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:
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}");
replace with:
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);


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


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


proxenus

#73
edit:

Found my problem. I've edited my previous post to reflect the accurate change. Thanks again!

proxenus

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.

Nibbler

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

proxenus

Ah, okay. stupid me :)

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

terrorhawk

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)

Paver

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.

terrorhawk