forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Joachim Müller on January 16, 2006, 02:34:00 pm

Title: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on January 16, 2006, 02:34:00 pm
Nibbler (http://forum.coppermine-gallery.net/index.php?action=profile;u=941), the author of the popular mod "A phpbb style 'who is online' block (http://forum.coppermine-gallery.net/index.php?topic=5373.0)" has posted a plugin version of this mod (http://forum.coppermine-gallery.net/index.php?topic=5373.msg61641#msg61641). The advantage of using a plugin compared to the mod is that you won't have to re-apply all code changes when updating your coppermine gallery, and setting it up in the first place should be easier.
Please note though that the plugin is considered experimental - use it at your own risk and report possible flaws here, but test it thorougly first and read the caveats on the mod thread I refered to above.

What it does:
Displays number and identity of users currently browsing the gallery.
This plugin has been created for cpg1.4.x


How to install:


How to enable:
To enable this plugin, you'll have to add "onlinestats" to "the content of the main page" in coppermine's config in the section "Album list view". The setting should look like "breadcrumb/catlist/alblist/onlinestats" or similar. For details, review the documentation that comes with coppermine (inside the docs folder) in the section "The gallery configuration page" > "Album list view" > "The content of the main page".

Known issues:
The plugin currently comes in English, Dutch, French, German and Italian. To translate it, add you language file to the lang folder within the plugin's folder.


Credits:
This plugin was created by Nibbler. It is based on the "Who is online mod" for cpg1.3.x.
Don't try to contact the plugin author for support - post on the board publicly instead.


Caveats:
This plugin is still in an early beta stage (experimental). Please report possible bugs or improvements on the thread that deals with it: http://forum.coppermine-gallery.net/index.php?topic=26532.0
The plugin runs additional queries on the database each time it is being executed, burning cpu cycles and using resources. If your coppermine gallery is slow or has got a lot of users, you shouldn't use it.
[Edit GauGau 2006-12-04]Plugin should be pretty stable.[/edit]

Changes:
From 1.1 to 1.2
From 1.2 to 1.6
From 1.6 to 1.7
From 1.7 to 1.8

Joachim
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 16, 2006, 04:47:58 pm
For a historical lesson and for those who download the plugin above before GauGau replaces it with a 1.4.3 working version, please see this thread:
http://forum.coppermine-gallery.net/index.php?topic=26447.0 (http://forum.coppermine-gallery.net/index.php?topic=26447.0)
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on January 17, 2006, 08:06:58 am
As Paver suggested I modified the plugin accordingly and updated the first posting in this thread. Users running the stable releases of cpg1.4.x should use the first attachment. The second attachment is the "old", buggy plugin that was initially made for the unsupported beta cpg1.4.1 and is not recommended for use - I only added it for historical reasons.

Changes:

Updating:
If you already have the old plugin installed, unsinstall it first (using the plugin manager) before installing the updated version from above

Joachim
Title: Re: "Who is online" plugin *experimental*
Post by: clarus on January 18, 2006, 02:24:42 pm
This plugin is very usefull!!! Thanks!
100% workable!  ;D
Title: Re: "Who is online" plugin *experimental*
Post by: Yukino on January 19, 2006, 03:48:21 am
you seriously rock my freakin' socks!

i have this running no problems as of yet.

many thanks!!
Title: Re: "Who is online" plugin *experimental*
Post by: esdee51 on January 19, 2006, 07:00:26 am
This plugin works great. I'm using phpbb 2.0.19 & cpg 1.4.3 bridged.

Just one question - line 81 in codebase.php has
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL 60 MINUTE");

Should 60 not be changed to 10 or whatever is set in the configuration when installing the plugin?

I'm a newbie so please excuse me if I am wrong.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 19, 2006, 07:30:51 am
esdee51: What a smart cookie you are!  You are absolutely correct.  I am vindicated because I said I didn't test out this plugin, but all you others who are using it should be ashamed of yourselves.  Well, not really since it's not something you can check that easily without a tremendous amount of patience - unless you look at the code like this inquistive newbie here.

So, going to that line, add the following lines before it:
Code: [Select]
$result = cpg_db_query("SELECT value FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'mod_updates_duration'");
$row = mysql_fetch_row($result);
$duration = $row[0];
Then modify that line to replace '60' with $duration as shown:
Code: [Select]
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL $duration MINUTE");
NOTE: This addition is not the most efficient way to do this.  Read a few posts down for the better modification.

And there you have it.  I think.  I still haven't tested out this plugin thoroughly.   :P
Title: Re: "Who is online" plugin *experimental*
Post by: esdee51 on January 19, 2006, 12:32:38 pm
Thanks Paver :)

It now works perfectly!

I notice a difference in the total number of users as shown by this plugin and in phpBB. This shows 1 more than the total number. Possibly it is due to user_id starting from 1 in CPG whereas phpBB has an additional user_id as -1 for Anonymous, which is not there in the CPG table.
Right now I have taken care of this by changing line 121 of codebase.php (the original file dated 17/01/2006) from:

        $num_users = $num_users[0];
to
       $num_users = $num_users[0] - 1;

I am sure there is a more elegant way to get over this problem as it might be present in other bridged installations as well.

Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on January 21, 2006, 05:05:25 am
@Paver: is it really necessary to run the additional query to check for the config var? Imo it should already exist, the $CONFIG var should be populated already.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 21, 2006, 06:35:58 am
GauGau: You're absolutely correct. 

So the only mod necessary is to change this line:
Code: [Select]
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL 60 MINUTE");to this line, replacing '60' with the config value:
Code: [Select]
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL {$CONFIG['mod_updates_duration']} MINUTE");
I'll note it above.
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on January 21, 2006, 06:52:26 am
thanks for looking into this. I updated the first posting on this thread with your fix, changing version count to 1.2
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 22, 2006, 06:06:29 am
esdee51: You mentioned a $num_users discrepancy.  I'm using an unbridged installation and there is an entry for Anonymous in the Coppermine users table.  What you mentioned about the starting number is irrelevant I believe because it doesn't matter what the user_id is; $num_users is just a count of the number of records in the Coppermine users table - it doesn't use the user_id to detemine the count.

It sounds like the discrepancy you found is due to a sync issue in your bridge.  Maybe it's supposed to be that way; I just don't know.  I haven't looked into bridges.  If the mod you mentioned does what you want, that's great.  If you want to investigate the bridge users count and match up users even, that information may be useful if it's a real issue in the bridging.  Check the bridge board and share information if it's useful & relevant.  As I said, it may be "by design" and if that's true, then this plugin could be modified with an option or something to deal with this.

As it is now, the plugin counts the correct number of users in the Coppermine users table.
Title: Re: "Who is online" plugin *experimental*
Post by: silyashevich on January 23, 2006, 01:21:44 am
If this plugin installed - Mozilla Firefox not work with cookies gallery :( IExplorer - working.
If uninstall plugin - Firefox working.
AND have no problem with firefox (v 1.0.6) - its works correctly. Maybe bug?
Sorry if i not right.
Title: Re: "Who is online" plugin *experimental*
Post by: Gary B on January 23, 2006, 05:16:09 am
I have been trying to get this plugin to work...it seems to me that I can only get it to work if I don't have bridging turned on to my phpbb. Then it worked just fine. When I tried (after I saw it working) to re-enable bridging I got the following error messages when I tried to enter the gallery.
Code: [Select]
Template error
Failed to find block 'admin_approval'(#(<!-- BEGIN admin_approval -->)(.*?)(<!-- END admin_approval -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>

                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
<!-- BEGIN log_ecards -->
                                <td class="admin_menu"><a href="db_ecard.php" title="{DB_ECARD_TITLE}">{DB_ECARD_LNK}</a></td>
<!-- END log_ecards -->
                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>


Which is very odd since before I installed the plugin and had bridging installed I had never seen the errors above before.

www.themeparks.com/library

Guests have access to everything except uploading as I don't allow uploading except for admins.

Best Wishes
Gary
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 23, 2006, 06:18:42 am
@Gary B: I'm not exactly sure why you get this error with this plugin; I'll have to look into this more - I tried a quick "follow the code", but haven't figured it out yet.

But there is a way to fix this error.  I started a post to describe this frequently-asked question about the "Template error - Failed to find block...", but I haven't finished it so it's not posted yet.

This is a theme error where you probably have customized the $template_gallery_admin_menu variable and left out the admin_approval block.  Please compare what you have in your theme/theme.php with the sample/theme.php and copy the <!-- BEGIN admin_approval --> and END tags as shown.  If you don't want the actual admin_approval button to show up, just leave the space between the BEGIN & END tags blank, but you need to have those tags because Coppermine is looking for them.  By leaving them blank, that's the proper way to remove a button.  (That's what my post will describe in detail.)

I'm not sure why this plugin activates the Coppermine core code to look for this admin_approval block; that's what I need to figure out.  But I'm pretty sure it's in the Coppermine core so some other "standard" use of an un-added-on-to-Coppermine would have probably brought out this defect in your theme; this plugin somehow has exposed it now.  (When I say defect, it's just that the theme.php file has to be more strict than you might think since Coppermine expects certain tags and gets upset - rightly or wrongly - when they are missing.)
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on January 23, 2006, 06:21:47 am
@silyashevich: Please post more information about your Coppermine version and what you mean about cookies problem.  I don't understand what to look for.  I'm using FireFox 1.5 and have no problem with this plugin.  (You should look into upgrading to FireFox 1.5 but I don't think it's related to your problem.)
Title: Re: "Who is online" plugin *experimental*
Post by: silyashevich on January 23, 2006, 11:06:00 am
@silyashevich: Please post more information about your Coppermine version and what you mean about cookies problem.  I don't understand what to look for.  I'm using FireFox 1.5 and have no problem with this plugin.  (You should look into upgrading to FireFox 1.5 but I don't think it's related to your problem.)
With plugin is ON: when come into gallery one browser, for example Mozilla Firefox and then leave galrey. With other browser, for example Internet Explorer not unable to login. The gallery loading and on rediract page writes a mistake - " the browser does not accept cookies ".

sorry for bad english  :-[
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on January 23, 2006, 09:20:27 pm
post more details instead of just rephrasing - a link might be a good start.
Title: Re: "Who is online" plugin *experimental*
Post by: Konstantinos on January 25, 2006, 01:10:21 pm
works for me . birdged - cool plugin :)
Title: Re: "Who is online" plugin *experimental*
Post by: lordprodigy on February 01, 2006, 11:05:53 pm
I have another issue / suggestion about this plugin regarding permissions...

In the who is online block, there are the nicknames of the registered users, which are linked to their respective profiles. Me as a non registered user I can click on them and view their profile... I think its wrong (privacy concerns) and would like the nicknames to be clickable only if I am logged in. If I am a non logged in used, I would like either a) when you click on the profile, to take you to registration / login page, or, b) make them non linked.

I dont know if I make myself clear. I hope someone can do this. I dont mind either solution, whichever one is easier to code.

Im thinking out loud.. can we add something like this
Code: [Select]
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
 in profile.php ... ?
Title: Re: "Who is online" plugin *experimental*
Post by: lordprodigy on February 02, 2006, 08:15:43 pm
Any thoughts on this subject?
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on February 02, 2006, 11:16:25 pm
this is not a hotline - allow days for answers, not hours! The plugin contrib board is meant as a place for questions on the plugins, not for additional feature requests. You have been speed-posting in the past few days - please understand that the coppermine staff is not your personal helpdesk, try solving your issues on your own first.
Title: Re: "Who is online" plugin *experimental*
Post by: Deus on February 03, 2006, 03:38:33 pm
Works brilliantly THANKYOU.
working on 2 standalone installs, and 1 bridged with phpbb.
Nice work nibbler.
Title: Re: "Who is online" plugin *experimental*
Post by: lordprodigy on February 03, 2006, 05:28:29 pm
sorry GauGau. didnt meant to upset you or anyone else. :-[
Title: Re: "Who is online" plugin *experimental*
Post by: howie10 on February 05, 2006, 05:57:54 pm
This is another great mod/plugin. thanks!

I wonder if there's an easy hack which would also enable you to see a full list of registered users (whether online or not), with the same clickable links to their profiles?  ;D
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on February 05, 2006, 06:04:51 pm
Have you seen the "Allow logged in users to view memberlist" setting in the config panel?  Then you should have a link to "usermgr.php" in the top menu.
Title: Re: "Who is online" plugin *experimental*
Post by: howie10 on February 05, 2006, 06:53:11 pm
Ahh yes, what a fool I am!

I would really like to have this clickable 'memberlist' link as an extra (last) line of the 'who is online' list. Would it be an easy thing to hack myself? I presume it's just a question of copying the code from the relevant section of the main page somewhere into codebase.php

It just seems useful to see which users are actually online, and then click on the full list of members.
Thanks.
 :)
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on February 05, 2006, 09:23:36 pm
Yup.  You can modify plugins/online/codebase.php yourself to add in that link.  Look for this line:
Code: [Select]
echo "Registered Users: {$logged_in_names}</td></tr>";which is in the function online_mainpage().

Then, looking through this line at the lines above it, figure out where you want your link to be.  Then insert a line like the following:
Code: [Select]
echo '<a href="usermgr.php">Full Member List</a><br />';(Customize to your liking.  Remember to keep track of the single quotes and double quotes to nest them correctly.)

Oh, if you want to add it after the line I mentioned above, you need to move the tags "</td></tr>" out of that line and into your line, at the end.  These tags close the table cell & row that is used for the who is online block.

edit: Thinking about it some more, I decided that I like it best to replace this line:
Code: [Select]
echo ($num_users == 1) ? "We have 1 registered user<br>" : "We have {$num_users} registered users<br>";with this line:
Code: [Select]
echo "We have <a href=\"usermgr.php\">{$num_users} registered user".(($num_users > 1) ? 's' : '')."</a><br>";
Try it out and see if this is your "best" solution as well.   :)
Title: Re: "Who is online" plugin *experimental*
Post by: scottking on February 05, 2006, 11:52:18 pm
I tried installing the plugin as instructed but get the following "There was an error copying the package to the plugins folder."

Any suggestions why I an getting this? Enable plugins is set to yes.

Thanks
Scott
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 05, 2006, 11:55:15 pm
Ensure the plugins directory is writable. If all else fails just extract the archive and upload the folder via FTP then install.
Title: Re: "Who is online" plugin *experimental*
Post by: scottking on February 06, 2006, 12:01:47 am
Ensure the plugins directory is writable. If all else fails just extract the archive and upload the folder via FTP then install.


Thanks for the suggestion. It was a permisson issue.  How do I fix the date as it's out of wack. It's currently Feb 05, 2006 07:01 PM but the Users online is showing "Feb 06, 2006 at 04:01 AM"

We have 27 registered users
The newest registered user is nathy
In total there are 5 users online :: 3 Registered, and 2 Guests
Most users ever online: 5 on Feb 06, 2006 at 04:01 AM
Registered Users: Scott King, Catherine, tina
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on February 06, 2006, 12:58:41 am
There's a config option in general settings for "time difference from GMT".
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 06, 2006, 01:02:36 am
The plugin double counts the timezone I think, once when it writes to the db and then again when it reads.
Title: Re: "Who is online" plugin *experimental*
Post by: howie10 on February 06, 2006, 08:54:38 am
Yup.  You can modify plugins/online/codebase.php yourself to add in that link.  Look for this line:
<snip>

Excellent! Thank you. I did a bit more hacking to remove the "most ever.." line. I'm really pleased with it. For any interested parties, my page header code is here: www.pontinshistory.co.uk/images/ (http://www.pontinshistory.co.uk/images/)
Title: Re: "Who is online" plugin *experimental*
Post by: lordprodigy on February 06, 2006, 07:46:13 pm
Hello everyone,

As written in my question above, I would like non registered visitors not to be able to view the profiles of registered people. In the "Who is online" block is listed the registered users online and the latest registered user as links to their profiles no matter if Im logged in or not. I think for visitors, the names should be listed as non links, and for registered users as links. How can this be done?

I appreciate your help. thanks.
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 06, 2006, 07:54:08 pm
Should be able to change

Code: [Select]
        while ($row = mysql_fetch_assoc($result)) {
                $logged_in_array[] = "<a href=\"profile.php?uid={$row['user_id']}\">{$row['user_name']}</a>";
        }

to

Code: [Select]
        while ($row = mysql_fetch_assoc($result)) {
                $logged_in_array[] = USER_ID ? "<a href=\"profile.php?uid={$row['user_id']}\">{$row['user_name']}</a>" : $row['user_name'];
        }
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on February 06, 2006, 08:02:40 pm
@lordprodigy: Even if this plugin does not provide links for guest users, if the guest user types in the profile URL manually, it will be shown.  Keeping this in mind, here's how to remove the links for guest users.

The first change is the one Nibbler posted while I was typing this.

The second is to look for this line:
Code: [Select]
echo "The newest registered user is <a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";and replace it with this line:
Code: [Select]
echo "The newest registered user is ".(USER_ID ? "<a href=\"profile.php?uid={$newest_user_id}\">" : '') . $newest_user_name . (USER_ID ? "</a>" : '') . "<br>";
And that should do it.  If you are interested in blocking Guest Users from seeing user profiles, that's a support question outside the purview of this plugin.  You might think it's related, but it's really not since the user profiles are shown in a completely different file.  This plugin merely links to that file (or not, if you apply the changes I noted here).
Title: Re: "Who is online" plugin *experimental*
Post by: lordprodigy on February 06, 2006, 08:32:41 pm
This is perfect. Its working great. Its exactly what I needed. Thank you very much for the quick response!
Title: Re: "Who is online" plugin *experimental*
Post by: deejaymoni on February 11, 2006, 11:41:46 pm
Hi Paver,

awesome plugin thanks.

But I have a little problem. If I install the Add to Lightbox plugin and this plugin here the lightbox plugin doesn't work correctly the add to lightbox button at the bottom of every thumbnail view is missing.

I have tried to fix it by myself but no chance maybe you have an idea?
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 11, 2006, 11:54:53 pm
Adjust the plugin priority in the plugin manager so that the lightbox plugin is at the end of the list.
Title: Re: "Who is online" plugin *experimental*
Post by: deejaymoni on February 12, 2006, 12:00:24 am
oh wow thank ya Nibbler.  :o

So simple thanks again it works now perfect. :D
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 12, 2006, 12:28:02 am
[Fixed lightbox plugin to avoid this issue, see lightbox thread]
Title: Re: "Who is online" plugin *experimental*
Post by: killyouall on February 20, 2006, 08:30:18 pm
does this mod work with Invision Power Board v2.1.4?
or just phpbb
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on February 20, 2006, 08:35:00 pm
It will work on any gallery.
Title: Re: "Who is online" plugin *experimental*
Post by: LilAngel on February 23, 2006, 11:52:11 pm
What do you consider 'a lot of users'?
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on February 24, 2006, 06:20:47 pm
Find it out - enable the plugin. If it the slows page load too much, disable it again. We can't specify an exact number, as there are many things that interfere. If there was a number, I would have posted the exact number. The plugin is experimental, so if you're not experienced enough to enable and then disable it, then don't use it at all.
Title: Re: "Who is online" plugin *experimental*
Post by: LilAngel on February 25, 2006, 12:05:38 am
At the moment our gallery has 13067 registered users. Either we have a real fast server or we'll get into trouble later :)

And no need to be bitchy. I was just wondering at how many users approximately, 100 users, 1000 users, 10000 users... I already enabled the plugin before I asked this question.
Title: Re: "Who is online" plugin *experimental*
Post by: ganesh on February 27, 2006, 02:06:12 pm
Great, works very well, thank You all! ;)

EDIT: I post the codebase for Italian language...
Title: Re: "Who is online" plugin *experimental*
Post by: bluemuse on February 28, 2006, 06:09:19 pm
I know that Paver has a topic with the Template Error thing, but I cant fix this error:

Code: [Select]
Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>

                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>
                                </tr><tr>

                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>


I'm attaching my theme.php file (as a .txt.) so anyone can help me. I'm using the hardwire template.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on February 28, 2006, 11:44:33 pm
Are you implying by posting your support question in this thread that your theme error *only* occurs when you have the "online" plugin installed?  If yes, that's really weird because this plugin shouldn't affect the gallery admin menu.  If not, then you need to post your question in an appropriate thread (or start a new one).

As a start for this support, your theme.php does have the log_ecards block so I would ask are you sure you are using this theme?  A link to your site would be useful.  Please reply here only if this error is related to this plugin.  If not, please start a new thread or reply in another appropriate one with all the information.
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on March 01, 2006, 12:44:07 am
Update to 1.4.4
Title: Re: "Who is online" plugin *experimental*
Post by: 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 ?
Title: Re: "Who is online" plugin *experimental*
Post by: 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"). 
Title: Re: "Who is online" plugin *experimental*
Post by: Tango589 on March 03, 2006, 07:34:21 pm
is there a way to distinguish between 'registered users' and other users groups like 'administrators'
Title: Re: "Who is online" plugin *experimental*
Post by: Tango589 on March 03, 2006, 07:49:56 pm
There's a config option in general settings for "time difference from GMT".

but what if your time in the gallery is already set to -5 for EST, and the 'whoisonline' block is still 3 hours ahead??
Title: Re: "Who is online" plugin *experimental*
Post by: metamog on March 03, 2006, 11:08:19 pm
I'm having some trouble with the "view counter". It doesn't count "file views" properly. It seems to have slowed down since I installed this plugin, has been showing "viewed 10576 times" for a long time even though I've been looking at NEW photos myself.

It counts viewed files sometimes and sometimes not?


It's not a big problem though.


Morgan

Title: Re: "Who is online" plugin *experimental*
Post by: TranzNDance on March 03, 2006, 11:14:47 pm
Admin views don't count.
Title: Re: "Who is online" plugin *experimental*
Post by: metamog on March 03, 2006, 11:18:28 pm
Oh, I see. Thank you for this information!

But it looks like the counter had slowed down anyway. Can this problem occur because of the "online" plugin? I've seen many visitors on my site but the counter doesn't move?

Morgan

Admin views don't count.
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on March 04, 2006, 07:24:57 am
the plugin burns resources, as suggested above. If the performance penalty is too much for you, turn the plugin off. Hard to say more without a link to your site.
Title: Re: "Who is online" plugin *experimental*
Post by: metamog on March 04, 2006, 09:07:18 am
Thank you GauGau!


My site is: http://echinopsis.hobby-site.com


I was just trying to help out "testing" the plugin. As you say: if I'll have trouble with it, I'll turn it off.


Morgan

the plugin burns resources, as suggested above. If the performance penalty is too much for you, turn the plugin off. Hard to say more without a link to your site.
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller 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.
Title: Re: "Who is online" plugin *experimental*
Post by: metamog on March 04, 2006, 11:11:09 am
Thank you GauGau! I'll keep this in mind.
Title: Re: "Who is online" plugin *experimental*
Post by: cavallino 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?
Title: Re: "Who is online" plugin *experimental*
Post by: Tango589 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...
Title: Re: "Who is online" plugin *experimental*
Post by: hama 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 (http://www.orst.ch/copper/index.php)
Title: Re: "Who is online" plugin *experimental*
Post by: Paver 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 (http://www.php.net/manual/en/function.strftime.php).

Title: Re: "Who is online" plugin *experimental*
Post by: hama on March 15, 2006, 11:18:24 pm

Ok, I found it and it works now.

Thanks!




Title: Re: "Who is online" plugin *experimental*
Post by: crxman on April 04, 2006, 08:45:42 pm
Thanks a lot works perfect !!! :)
Title: Re: "Who is online" plugin *experimental*
Post by: proxenus 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?
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on April 19, 2006, 10:02:04 pm
Enable debug mode and post the mysql error message you get when you replicate the error.
Title: Re: "Who is online" plugin *experimental*
Post by: proxenus 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
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler 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.
Title: Re: "Who is online" plugin *experimental*
Post by: proxenus 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);

Title: Re: "Who is online" plugin *experimental*
Post by: proxenus 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!
Title: Re: "Who is online" plugin *experimental*
Post by: proxenus 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.
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler 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.
Title: Re: "Who is online" plugin *experimental*
Post by: proxenus on April 20, 2006, 12:30:13 am
Ah, okay. stupid me :)

Works great! Thanks for all the work you've put into it.
Title: Re: "Who is online" plugin *experimental*
Post by: terrorhawk 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)
Title: Re: "Who is online" plugin *experimental*
Post by: Paver 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.
Title: Re: "Who is online" plugin *experimental*
Post by: terrorhawk on April 21, 2006, 05:38:21 am
ok i will start a new tread
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on April 21, 2006, 05:44:01 am
this is a plugin that affects coppermine pages, using coppermine's plugin API. How is it suppossed to work on none-coppermine pages? Short answer: no, not possible. There's a mod (notice the difference between a plugin and a mod) that might be turned into what you're up to accomplish. Not related to this thread though. Please do as Paver suggested.
Title: Re: "Who is online" plugin *experimental*
Post by: shaelyn on May 01, 2006, 02:23:29 pm
I uploaded the zip file and I can see it in the plugins folder in ftp, but it's not showing in my plugin manager screen.
Title: Re: "Who is online" plugin *experimental*
Post by: TranzNDance on May 01, 2006, 02:45:51 pm
Where can I download this plugin?
Did you read the first post?

edit: argh. You changed your post while I replied. In the future, add new replies rather than editing your post (unless it's a mistake), otherwise replies won't make sense.
Title: Re: "Who is online" plugin *experimental*
Post by: shaelyn on May 01, 2006, 03:00:28 pm
Yes I read the first post and in the original post where the download is, there's a broken link there for an image and the text for the zip file was harder to see, I did eventually find it.

Back to my other question...

I've uploaded the zip file through the plugin manager and I can see it there.  Reading through this thread again, I couldn't find an answer so I tried to delete it and try again but I get the message that I can not delete "codebase.php" permission is denied, I tried renaming the online file so I could upload it again, and it still did not work.
Title: Re: "Who is online" plugin *experimental*
Post by: aravot on May 03, 2006, 03:56:31 am
It seem your file(s) are owned by apache, you need to CHMOD the file(s) to 777, you can use Webadmin (http://wacker-welt.de/webadmin) for this
Title: Re: "Who is online" plugin *experimental*
Post by: severeidaho on May 12, 2006, 04:53:51 am
Just thought I would reply and say thank you for this plugin.   Works great, all I had to do was upload the folder,  install it, then add "onlinestats" to my Album, thumbnail view settings (catlist/topn,2/rand,2/onlinestats) etc.

Very Easy to do,  Thanks....

-gerrit
http://www.severeidaho.com/gallery/
Title: Re: "Who is online" plugin *experimental*
Post by: angeldevil on May 20, 2006, 02:43:25 pm
Great Work!!!  ;)

Thanks!
Title: Re: "Who is online" plugin *experimental*
Post by: stormtrooper on May 25, 2006, 01:07:30 pm
after installing this mod

coppermine works fine, but it crashed my invisionboard 1.3!!!!

the error I receive:


Warning: load_template(/home/www/web2364/html/guests/ipb13/Skin/s3/skin_global.php): failed to open stream: No such file or directory in /home/www/web2364/html/guests/ipb13/sources/functions.php on line 612


line 612 says:
Code: [Select]
require ROOT_PATH."Skin/".$ibforums->skin_id."/$name.php";

board is at:
www.mypage.ch/guests/ipb13/

cpg is at:
www.mypage/gallery/coppermine/

I de-installed this mod WITHOUT deleting the tables and changed the gallery to stand-alone.
The gallery worked fine all the time.

What do I have to change that board works again?
Title: Re: "Who is online" plugin *experimental*
Post by: stormtrooper on May 26, 2006, 12:00:49 pm
it works again after
enabling skin safe mode in the IPB conf_global.php
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on May 28, 2006, 11:30:05 pm
Hard to imagine that Coppermine or a coppermine plugin is capable to crash your BBS. Coppermine's code doesn't touch your BBS nor the BBS database tables. Probably a matter of coincidence.
Title: Re: "Who is online" plugin *experimental*
Post by: stormtrooper on May 31, 2006, 02:07:21 am
strange. now it works.
I changed now the codebase.php to german language, but I cannot upload the file because the onlinestats folder has 755 and the php file itself has 644 chmod.
Title: Re: "Who is online" plugin *experimental*
Post by: Mats on May 31, 2006, 04:07:52 pm
Can you please put all the text as variables in the beginning of the file so translation will be easier? :)

Otherwise, it works perfectly :)

Note for translators: You have to use HTML-code for accented characters.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on May 31, 2006, 04:20:49 pm
Many developed plugins use a separate language file, just like the Coppermine language files.  That's the best way to handle language-compatible text.
Title: Re: "Who is online" plugin *experimental*
Post by: Joachim Müller on June 01, 2006, 06:46:26 am
Note for translators: You have to use HTML-code for accented characters.
No, you mustn't. Use utf-8 encoding, similar to the language files that come with coppermine.
Title: Re: "Who is online" plugin *experimental*
Post by: stormtrooper on June 02, 2006, 03:52:40 pm
any idea now how to upload the a german translation?
google told me, that often after executing a script (here its the plugin) the owner of uploaded files is "wwwrun".
in this case, I cannot delete/overwrite the file manually.

I also tried to change the code in the zip-file before installing the plugin via plugin-manager. but after hitting the upload-button, nothing happens. It seems that the changed file is not accepted.
Title: Re: "Who is online" plugin *experimental*
Post by: Nibbler on June 02, 2006, 04:04:50 pm
You should be able to uninstall the plugin and re-install a modifed version.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on June 02, 2006, 04:06:52 pm
I think you're trying to upload the "new" plugin without deleting the old one.  Uninstall & delete the old one - using the Coppermine buttons on the plugin manager page, then upload the new one.

Or you might be able to just uninstall the old one, upload the new file (since it shouldn't be used if the plugin is not installed), then install the plugin again.  I'm assuming a user happens to be using your gallery when you try to overwrite the file so the webserver is currently using it. 
Title: Re: "Who is online" plugin *experimental*
Post by: stormtrooper on June 03, 2006, 09:23:23 am
Or you might be able to just uninstall the old one, upload the new file (since it shouldn't be used if the plugin is not installed), then install the plugin again. 

thanks paver.
this worked!
Title: Re: "Who is online" plugin *experimental*
Post by: angeldevil on June 03, 2006, 07:11:02 pm
Hi

my first little contribution to yours work

onlinestats plugin (who is online for cpg 1.4.x in italian language traslated)

See plugin at work in picture:
Title: Re: "Who is online" plugin *experimental*
Post by: Justttt on June 25, 2006, 11:54:42 pm
i have tried & tried to code what i want . but no look for me. what i want is on te who is online plugin to edit it so. when it shows users who is online if they from the administrator_group they will show in red , if they are from another group show green, and so on . i would realy like if someone could help me do this


thank you,
  justttt
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on June 26, 2006, 01:39:38 am
Ok.  There's a block in codebase.php that looks like this:
Code: [Select]
        $result = cpg_db_query("SELECT user_id, user_name FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id <> 0");

        $logged_in_array = array();

        while ($row = mysql_fetch_assoc($result)) {
                $logged_in_array[] = "<a href=\"profile.php?uid={$row['user_id']}\">{$row['user_name']}</a>";
        }

        $logged_in_names = implode(', ', array_unique($logged_in_array));

Replace this block with this one (which has the same first and last lines):
Code: [Select]
$result = cpg_db_query("SELECT user_id, user_name FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id <> 0");

// MOD - get groups & color names
$logged_in_array = array();
$online_rowset = cpg_db_fetch_rowset($result);
mysql_free_result($result);

$online_idset = '';
foreach ($online_rowset as $row) {
$online_idset .= ($online_idset ? ',' : '') . $row['user_id'];
}
if ($online_idset) {
$result = cpg_db_query("SELECT user_id,user_name,user_group,user_group_list FROM {$CONFIG['TABLE_USERS']} WHERE user_id IN ($online_idset)");
$user_rowset = cpg_db_fetch_rowset($result);
mysql_free_result($result);


foreach ($user_rowset as $row) {
$online_name = $row['user_name'];
$online_groupset = ($row['user_group_list'] ? explode(',',$row['user_group_list']) : array());
$online_groupset[] = $row['user_group'];
if (in_array('1',$online_groupset)) {
$online_name = '<span style="color:red;font-weight:bold;">'.$online_name.'</span>';
} else {
$online_name = '<span style="color:green;">'.$online_name.'</span>';
}
$logged_in_array[] = USER_ID ? "<a href=\"profile.php?uid={$row['user_id']}\">{$online_name}</a>" : $online_name;
}
}
// MOD - end

$logged_in_names = implode(', ', array_unique($logged_in_array));

This example puts the admin name in red and bold, all others in green.  It should be obvious where to modify the code to add more groups.  I'd recommend an elseif(in_array('NUM',$online_groupset)) for each NUM group.  There might be a more efficient way to do this, but this'll work.

edit: Corrected code above to deal properly with no Registered users online.
Title: Re: "Who is online" plugin *experimental*
Post by: Justttt on June 26, 2006, 12:17:25 pm
this is exactly what i have been looking for ages. works just right when loged in but when loged out
"There was an error while processing a database query "

Code: [Select]
While executing query "SELECT user_id,user_name,user_group,user_group_list FROM `yidols_copper`.cpg146_users WHERE user_id IN ()" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1

plus a thousand more

Code: [Select]
Notices
/plugins/file2albummover/codebase.php
Warning line 52: copy(albums/3folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/3folder/Administrator_Uploads/): No such file or directory
Warning line 56: copy(albums/3normal_folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/3normal_folder/Administrator_Uploads/): No such file or directory
Warning line 61: copy(albums/3thumb_folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/3thumb_folder/Administrator_Uploads/): No such file or directory
Warning line 52: copy(albums/3folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/3folder/Administrator_Uploads/): No such file or directory
Warning line 56: copy(albums/3normal_folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/3normal_folder/Administrator_Uploads/): No such file or directory
Warning line 61: copy(albums/3thumb_folder/Administrator_Uploads/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/3thumb_folder/Administrator_Uploads/): No such file or directory
Warning line 52: copy(albums/3folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/3folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/3normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/3normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/3thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/3thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/3userpics/10001/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/3userpics/10001/): No such file or directory
Warning line 56: copy(albums/3normal_userpics/10001/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/3normal_userpics/10001/): No such file or directory
Warning line 61: copy(albums/3thumb_userpics/10001/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/3thumb_userpics/10001/): No such file or directory
Warning line 52: copy(albums/5folder/buddy_Gall/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/5folder/buddy_Gall/): No such file or directory
Warning line 56: copy(albums/5normal_folder/buddy_Gall/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/5normal_folder/buddy_Gall/): No such file or directory
Warning line 61: copy(albums/5thumb_folder/buddy_Gall/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/5thumb_folder/buddy_Gall/): No such file or directory
Warning line 52: copy(albums/7userpics/10001/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/7userpics/10001/): No such file or directory
Warning line 56: copy(albums/7normal_userpics/10001/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/7normal_userpics/10001/): No such file or directory
Warning line 61: copy(albums/7thumb_userpics/10001/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/7thumb_userpics/10001/): No such file or directory
Warning line 52: copy(albums/2folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/2normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/2thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/2folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/2normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/2thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/2folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/2normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/2thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/2wpw-20060625/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2wpw-20060625/): No such file or directory
Warning line 56: copy(albums/2normal_wpw-20060625/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_wpw-20060625/): No such file or directory
Warning line 61: copy(albums/2thumb_wpw-20060625/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_wpw-20060625/): No such file or directory
Warning line 52: copy(albums/2wpw-20060625/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2wpw-20060625/): No such file or directory
Warning line 56: copy(albums/2normal_wpw-20060625/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_wpw-20060625/): No such file or directory
Warning line 61: copy(albums/2thumb_wpw-20060625/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_wpw-20060625/): No such file or directory
Warning line 52: copy(albums/2wpw-20060625/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/2wpw-20060625/): No such file or directory
Warning line 56: copy(albums/2normal_wpw-20060625/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/2normal_wpw-20060625/): No such file or directory
Warning line 61: copy(albums/2thumb_wpw-20060625/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/2thumb_wpw-20060625/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
Warning line 52: copy(albums/4folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 53: unlink(albums/4folder/Public_Gallery/): No such file or directory
Warning line 56: copy(albums/4normal_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 57: unlink(albums/4normal_folder/Public_Gallery/): No such file or directory
Warning line 61: copy(albums/4thumb_folder/Public_Gallery/): failed to open stream: No such file or directory
Warning line 62: unlink(albums/4thumb_folder/Public_Gallery/): No such file or directory
/bridge/udb_base.inc.php
Notice line 114: Undefined variable: row
/themes/oranje/theme.php
Notice line 593: Use of undefined constant AUTHOR_ID - assumed 'AUTHOR_ID'
Notice line 793: Undefined variable: charset
Notice line 793: Undefined variable: charset
/include/themes.inc.php
Notice line 129: Undefined index: allowed_albums
/lang/english.php
Notice line 1181: Undefined index: user_field_num
/include/functions.inc.php
Notice line 88: Undefined variable: cpg_show_private_album
/include/plugin_api.inc.php
Notice line 651: Only variable references should be returned by reference
 


Title: Re: "Who is online" plugin *experimental*
Post by: Justttt on June 26, 2006, 12:26:33 pm
Code: [Select]
USER:
------------------
Array
(
    [ID] => e03913c74c811780b39bde0143d2fd9a
    [am] => 1
    [lang] => english
    [liv] => Array
        (
        )

    [theme] => oranje
)

==========================
USER DATA:
------------------
Array
(
    [user_id] => 0
    [user_name] => Guest
    [groups] => Array
        (
            [0] => 3
        )

    [group_quota] => 0
    [can_rate_pictures] => 0
    [can_send_ecards] => 0
    [can_post_comments] => 0
    [can_upload_pictures] => 0
    [can_create_albums] => 0
    [pub_upl_need_approval] => 0
    [priv_upl_need_approval] => 0
    [upload_form_config] => 0
    [num_file_upload] => 0
    [num_URI_upload] => 0
    [custom_user_upload] => 0
    [disk_max] => 0
    [disk_min] => 0
    [ufc_max] => 0
    [ufc_min] => 0
    [has_admin_access] => 0
    [group_name] => Guests
    [can_see_all_albums] => 0
    [group_id] => 3
)

==========================
Queries:
------------------
Array
(
    [0] => SELECT extension, mime, content, player FROM cpg146_filetypes; (0s)
    [1] => select * from cpg146_plugins order by priority asc; (0s)
    [2] => SELECT * FROM cpg146_albums,cpg146_pictures
WHERE cpg146_albums.aid=cpg146_pictures.aid
ORDER BY cpg146_albums.title (0s)
    [3] => UPDATE cpg146_pictures SET filepath='folder/Administrators_Randoms/' WHERE pid=0 (0.001s)
    [4] => UPDATE cpg146_pictures SET filepath='folder/Administrators_Randoms/' WHERE pid=0 (0s)
    [5] => UPDATE cpg146_pictures SET filepath='folder/Administrators_Randoms/' WHERE pid=0 (0s)
    [6] => UPDATE cpg146_pictures SET filepath='folder/Administrators_Randoms/' WHERE pid=0 (0s)
    [7] => UPDATE cpg146_pictures SET filepath='folder/buddy_Gall/' WHERE pid=0 (0s)
    [8] => UPDATE cpg146_pictures SET filepath='folder/Help_&_Tutorials/' WHERE pid=0 (0s)
    [9] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0s)
    [10] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0s)
    [11] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0s)
    [12] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0s)
    [13] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0s)
    [14] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=0 (0.14s)
    [15] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [16] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [17] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [18] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [19] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [20] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [21] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [22] => UPDATE cpg146_pictures SET filepath='folder/Public_Gallery/' WHERE pid=7 (0s)
    [23] => delete from `yidols_copper`.cpg146_sessions where time<1151313611 and remember=0; (0.001s)
    [24] => delete from `yidols_copper`.cpg146_sessions where time<1150107611; (0s)
    [25] => select user_id from `yidols_copper`.cpg146_sessions where session_id=md5("97b6378b1612a544f07eecc38cb99445d4c13f73747b408db8852354f02c25c6"); (0s)
    [26] => select user_id as id, user_password as password from `yidols_copper`.cpg146_users where user_id=0 (0s)
    [27] => SELECT MAX(group_quota) as disk_max, MIN(group_quota) as disk_min, MAX(can_rate_pictures) as can_rate_pictures, MAX(can_send_ecards) as can_send_ecards, MAX(upload_form_config) as ufc_max, MIN(upload_form_config) as ufc_min, MAX(custom_user_upload) as custom_user_upload, MAX(num_file_upload) as num_file_upload, MAX(num_URI_upload) as num_URI_upload, MAX(can_post_comments) as can_post_comments, MAX(can_upload_pictures) as can_upload_pictures, MAX(can_create_albums) as can_create_albums, MAX(has_admin_access) as has_admin_access, MIN(pub_upl_need_approval) as pub_upl_need_approval, MIN( priv_upl_need_approval) as  priv_upl_need_approval FROM cpg146_usergroups WHERE group_id in (3) (0s)
    [28] => SELECT group_name FROM  cpg146_usergroups WHERE group_id= 3 (0s)
    [29] => update `yidols_copper`.cpg146_sessions set time='1151317211' where session_id=md5('97b6378b1612a544f07eecc38cb99445d4c13f73747b408db8852354f02c25c6'); (0.07s)
    [30] => SELECT DISTINCT(aid) FROM cpg146_albums WHERE moderator_group='3' (0s)
    [31] => SELECT name, value FROM cpg146_config where name REGEXP '^plugin_displayfields_' (0s)
    [32] => SHOW TABLES LIKE 'cpg146_cms_config' (0.001s)
    [33] => SELECT * FROM cpg146_cms_config (0s)
    [34] => DELETE FROM cpg146_mod_online WHERE last_action < NOW() - INTERVAL 10 MINUTE (0.001s)
    [35] => SELECT user_ip FROM cpg146_mod_online WHERE user_ip LIKE '62.254%' (0s)
    [36] => UPDATE cpg146_mod_online SET last_action = NOW() WHERE user_ip = '62.254.64.13' LIMIT 1 (0.001s)
    [37] => DELETE FROM cpg146_banned WHERE expiry < '2006-06-26 10:20:11' (0.001s)
    [38] => SELECT * FROM cpg146_banned WHERE (ip_addr='62.254.64.13' OR ip_addr='82.20.102.71' OR user_id=0) AND brute_force=0 (0s)
    [39] => SELECT aid FROM cpg146_albums WHERE visibility != '0' AND visibility !='10000' AND visibility NOT IN (3) (0s)
    [40] => SELECT aid FROM cpg146_albums (0s)
    [41] => SELECT cid, name, description, thumb FROM cpg146_categories WHERE parent = ''  ORDER BY name (0.001s)
    [42] => SELECT aid FROM cpg146_albums WHERE category = 2 (0s)
    [43] => SELECT count(*) FROM cpg146_pictures as p, cpg146_albums as a WHERE p.aid = a.aid AND approved='YES' AND category = 2 (0s)
    [44] => SELECT count(*) FROM cpg146_albums as a WHERE category = '2' (0s)
    [45] => SELECT a.aid, a.title, a.description, visibility, filepath, filename, url_prefix, pwidth, pheight FROM cpg146_albums as a LEFT JOIN cpg146_pictures as p ON a.thumb=p.pid WHERE category=2 ORDER BY a.pos LIMIT 0,4 (0s)
    [46] => SELECT a.aid, count( p.pid )  AS pic_count, max( p.pid )  AS last_pid, max( p.ctime )  AS last_upload, a.keyword FROM cpg146_albums AS a  LEFT JOIN cpg146_pictures AS p ON a.aid = p.aid AND p.approved =  'YES' WHERE a.aid IN (3, 4, 6, 7)GROUP BY a.aid (0s)
    [47] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg146_pictures WHERE pid='21' (0s)
    [48] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg146_pictures WHERE pid='14' (0s)
    [49] => SELECT filepath, filename, url_prefix, pwidth, pheight FROM cpg146_pictures WHERE pid='20' (0s)
    [50] => SELECT aid FROM cpg146_albums as a WHERE category>=10000 (0s)
    [51] => SELECT count(*) FROM cpg146_pictures as p, cpg146_albums as a WHERE p.aid = a.aid AND approved='YES' AND category >= 10000 (0s)
    [52] => SELECT aid FROM cpg146_albums as a WHERE category = '0' (0s)
    [53] => SELECT count(*) FROM cpg146_albums as a WHERE 1 (0s)
    [54] => SELECT count(*) FROM cpg146_categories WHERE 1 (0s)
    [55] => SELECT count(*) FROM cpg146_pictures (0s)
    [56] => SELECT sum(hits) FROM cpg146_pictures (0s)
    [57] => SELECT count(*) FROM cpg146_comments (0s)
    [58] => SELECT COUNT(*) FROM `yidols_copper`.cpg146_users (0s)
    [59] => SELECT COUNT(*) FROM cpg146_mod_online (0s)
    [60] => SELECT COUNT(*) FROM cpg146_mod_online WHERE user_id <> 0 (0s)
    [61] => SELECT user_id, user_name FROM `yidols_copper`.cpg146_users ORDER BY user_id DESC LIMIT 1 (0s)
    [62] => SELECT user_id, user_name FROM cpg146_mod_online WHERE user_id <> 0 (0s)
    [63] => SELECT user_id,user_name,user_group,user_group_list FROM `yidols_copper`.cpg146_users WHERE user_id IN () (0s)
)

==========================
GET :
------------------
Array
(
)

==========================
POST :
------------------
Array
(
)

==========================
Page generated in 0.667 seconds - 64 queries in 0.217 seconds - Album set : ; Meta set: AND aid IN (2,3,4,5,6,7) ;
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on June 26, 2006, 01:37:25 pm
Yeah, I forgot to check the case where no registered users are online.  I corrected the code above.  You basically put in a:
Code: [Select]
if ($online_idset) {bracketting the part that pulls the user data in.
Title: Re: "Who is online" plugin *experimental*
Post by: Justttt on June 26, 2006, 02:07:18 pm
yeah works great now thanks for all your help  ;D  ;)
Title: Re: "Who is online" plugin *experimental*
Post by: BuLLy__BoY on July 05, 2006, 04:19:36 pm
Well... you did more and more corrections... Why someone don't make all the corrections and put the Finished plugin in Internet?
Title: Re: "Who is online" plugin *experimental*
Post by: Sami on July 05, 2006, 04:31:49 pm
check the name , it says :"Who is online" plugin *experimental*
Title: Re: "Who is online" plugin *experimental*
Post by: Pascal YAP on July 06, 2006, 09:11:04 am
Good Day, Today,
Quote
Well... you did more and more corrections... Why someone don't make all the corrections and put the Finished plugin in Internet?
Hey you are someone too, maybe you can produce something, is'nt it ?  ;)

PYAP
Title: Re: "Who is online" plugin *experimental*
Post by: JohannM on August 10, 2006, 03:29:29 am
Hi there

I also installed this plugin in a Mod vesion of 1.4 (Stramm). - http://www.4teenboyz.com

I created a "Home" page (01-start.php).  How do I pull in the "onlinestats" to this page to show it as well ?
Title: Re: "Who is online" plugin *experimental*
Post by: pszone on August 13, 2006, 05:55:57 pm
Is there any way to make translation with cyrrilic text, becouse when I trie to translate the text from codebase.php I gat some strange symbolse?
Title: Re: "Who is online" plugin *experimental*
Post by: pszone on August 13, 2006, 07:26:59 pm
Nevermind I solved the Problem ;)
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on August 14, 2006, 02:36:29 pm
Well... you did more and more corrections... Why someone don't make all the corrections and put the Finished plugin in Internet?

Keep in mind that most of the "corrections" you mention are actually mods to the plugin and are hardcoded mods at that so cannot be configured (or disabled) with settings.  Since each person wants something different, it wouldn't make sense to combine all the mods together into a new release of the plugin, unless you add a configuration setting for each mod.  That takes time and probably wouldn't be that useful for most people.  The idea with people discussing mods here is so others can see how certain things are done and then can do what they want using the information learned here.  That's the point.
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on August 31, 2006, 04:25:14 pm
There is a bug in version 1.2 of the onlinestats plugin.  See this thread for details: http://forum.coppermine-gallery.net/index.php?topic=35563.0

I plan to look at the plugin carefully and put together a version 1.3 when I have time.  For now, apply the fix in the thread above if you see this problem. 
Title: Re: "Who is online" plugin *experimental*
Post by: natrlhy on September 28, 2006, 08:24:41 pm
I LOVE this plugin and thank you for providing it! I couldn't live without it.

However, I have always noticed that when users that have AOL login to my coppermine gallery, it shows an invalid number of users logged in.  For instance, I am logged in and it shows:

In total there are 2 users online :: 1 Registered, and 1 Guest

Once users the users that have AOL login(they utilize proxy servers, etc) it shows something like this:

In total there are 15 users online :: 14 Registered, and 1 Guest

When there really are only 2 Registered users logged in.

I'm just wondering if there is something that can be done to reflect the correct number of users logged in with these types of services like AOL.
Title: Re: "Who is online" plugin *experimental*
Post by: Senator on October 01, 2006, 10:18:58 am
I use this plugin, and it works great.

the table is showing only on the indexpage.

what can i change, so that this table is visable on each page, like displayimage.php etc.

Title: Re: "Who is online" plugin *experimental*
Post by: Paver on October 02, 2006, 06:45:57 am
Senator has carried the support question above to a new thread:
http://forum.coppermine-gallery.net/index.php?topic=36873.0

Please use the new thread for all discussion of this question (and look there for any solutions).
Title: Re: "Who is online" plugin *experimental*
Post by: Paver on October 02, 2006, 11:13:35 pm
@natrlhy: Take a look at your cpg_mod_online table (using a tool like phpMyAdmin) to see what users it lists and see how it compares to your onlinestats block and the AOL users you have.  I'm not sure what it will show, but it might give you an idea about how the users are being logged and counted.
Title: Re: "Who is online" plugin *experimental*
Post by: natrlhy on October 03, 2006, 12:18:14 am
Thanks Paver,

I'll take a look at that table and see what I see there  ;)
Title: Re: "Who is online" plugin *experimental*
Post by: natrlhy on November 02, 2006, 07:41:24 am
So I finally was online at the same time I see the AOL users logged in.

Here is the info from the plugin:

Registered Users logged in: natrlhy, sngim, aimhigher38, geeznutts

We have 45 registered users
In total there are 26 users online :: 24 Registered, and 2 Guests

Here is the data in the MySQL table:

Full Texts      user_id       user_name       user_ip       last_action
   Edit    Delete    70    geeznutts    207.200.116.131    2006-11-01 22:37:05
   Edit    Delete    70    geeznutts    207.200.116.197    2006-11-01 22:37:11
   Edit    Delete    70    geeznutts    207.200.116.132    2006-11-01 22:37:26
   Edit    Delete    70    geeznutts    207.200.116.130    2006-11-01 22:36:02
   Edit    Delete    70    geeznutts    207.200.116.196    2006-11-01 22:36:45
   Edit    Delete    70    geeznutts    207.200.116.139    2006-11-01 22:36:39
   Edit    Delete    17    aimhigher38    207.200.116.199    2006-11-01 22:35:15
   Edit    Delete    17    aimhigher38    207.200.116.12    2006-11-01 22:28:04
   Edit    Delete    17    aimhigher38    207.200.116.132    2006-11-01 22:34:22
   Edit    Delete    17    aimhigher38    207.200.116.131    2006-11-01 22:34:15
   Edit    Delete    11    sngim    71.138.81.14    2006-11-01 22:37:25
   Edit    Delete    17    aimhigher38    207.200.116.202    2006-11-01 22:35:22
   Edit    Delete    70    geeznutts    207.200.116.138    2006-11-01 22:35:35
   Edit    Delete    17    aimhigher38    207.200.116.133    2006-11-01 22:34:41
   Edit    Delete    17    aimhigher38    207.200.116.130    2006-11-01 22:34:50
   Edit    Delete    17    aimhigher38    207.200.116.197    2006-11-01 22:34:24
   Edit    Delete    0    Guest    71.135.185.95    2006-11-01 22:37:59
   Edit    Delete    17    aimhigher38    207.200.116.196    2006-11-01 22:35:51
   Edit    Delete    70    geeznutts    207.200.116.73    2006-11-01 22:35:46
   Edit    Delete    10    natrlhy    71.138.81.14    2006-11-01 22:37:26
   Edit    Delete    70    geeznutts    207.200.116.5    2006-11-01 22:35:40
   Edit    Delete    0    Guest    66.249.65.68    2006-11-01 22:37:15
   Edit    Delete    17    aimhigher38    207.200.116.139    2006-11-01 22:34:59
   Edit    Delete    17    aimhigher38    207.200.116.74    2006-11-01 22:35:31

AOL users always show up as way too many users.  How can I go about fixing this so that only 1 user shows up even when it appears to be coming from several IP's like proxy servers tend to?
Title: Re: "Who is online" plugin *experimental*
Post by: Hein Traag on November 02, 2006, 04:51:58 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 ?

I had the same problem. Use Plugin Manager to set the Onlinestat plugin as the first one to be loaded into coppermine. That solved the problem on my CPG.

Cheers!
Hein
Title: Re: "Who is online" plugin *experimental* - Dutch
Post by: Hein Traag on November 02, 2006, 04:58:31 pm
Added the dutch language version of the OnlineStats plugin codebase.php with changed code so it will not provide the usernames mentioned as links but as static text (mod suggested earlier in this thread).

Cheers
Hein
p.s. Added a newer codebase.php which says "Geregistreerde gebruikers online:" instead of "Geregistreerde gebruikers"
Title: Re: "Who is online" plugin *experimental*
Post by: mbartelt on November 20, 2006, 03:33:56 pm
hI;

I LOVE this plugin and thank you for providing it! I couldn't live without it.

However, I have always noticed that when users that have AOL login to my coppermine gallery, it shows an invalid number of users logged in.  For instance, I am logged in and it shows:

In total there are 2 users online :: 1 Registered, and 1 Guest

Once users the users that have AOL login(they utilize proxy servers, etc) it shows something like this:

In total there are 15 users online :: 14 Registered, and 1 Guest

When there really are only 2 Registered users logged in.

I'm just wondering if there is something that can be done to reflect the correct number of users logged in with these types of services like AOL.

I have the same problem. We have one AOL user and when he ist logged in the same happens. Some ideas how to fix this ?

Manfred
Title: Re: "Who is online" plugin *experimental*
Post by: loubymar on November 22, 2006, 06:36:32 pm
My gallery is at: http://anagallery.ifastnet.com/coppermine/index.php
My FTP Server is: Smart FTP

I got the pluging and it shows on my site, but the date wrong it says "Most users ever online: 1 on Jan 01, 1970 at 12:00 AM"
Also if i log out and back in again, they online stats is not there!
What can i do?

Many Thanks
Louis

***It working properly now really sorry!***
Title: Re: "Who is online" plugin *experimental*
Post by: Prinmode on November 29, 2006, 01:04:58 am
a question:
i can call the $num_user var for place in the template?, i try it but i don't get good results, there is some way to do it?
Title: Re: "Who is online" plugin *experimental*
Post by: François Keller on December 03, 2006, 02:36:42 pm
Hy,

I've made an "international" version with langage files for this plugin. (see attached archive)
This pack comes with english.php and french.php langage files. Feel free to share your awn langage file  ;)

italian.php file added (thank's Lontano)
german.php file added (thank's Mbarlet)
dutch.php file added (Thank's Hein)
Title: Re: "Who is online" plugin *experimental*
Post by: Davide Renda on December 03, 2006, 03:30:40 pm
Italian translation attached, unzip and copy in the plugin lang directory.
Title: Re: "Who is online" plugin *experimental*
Post by: François Keller on December 03, 2006, 05:36:46 pm
Thank's Lontano,
italian.php file added to the pack attached on my previous post.
Title: Re: "Who is online" plugin *experimental*
Post by: Hein Traag on December 03, 2006, 08:47:16 pm
Added dutch.php as zip

Is it 1.3 or 1.5 or even 1.6 (at it is mentioned on the plugin manager page ;)

Hein
Title: Re: "Who is online" plugin *experimental*
Post by: mbartelt on December 03, 2006, 09:23:57 pm
Hi,

added german.php. To show propper grammatics I changed inside the codebase.php some code. The configuration text, is not translated.

Original Code:
Code: [Select]
       starttable("100%", $lang_plugin_onlinestats['name']);

        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br>" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br>";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo " :: <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br>" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br>";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br>";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute']." :". $logged_in_names."</td></tr>";

        endtable();
Changed Code:
Code: [Select]
        starttable("100%", $lang_plugin_onlinestats['name']);

        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br>" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br>";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo ($num_reg_online == 1) ? ": <b>1</b>".$lang_plugin_onlinestats['reg_member'].$lang_plugin_onlinestats['and'] : ": <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br>" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br>";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br>";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";

        endtable();

Greetings

Manfred
Title: Re: "Who is online" plugin *experimental*
Post by: François Keller on December 04, 2006, 07:46:51 am
German and Dutch langage files added in the pack in this post.
Mbarlet's correction in codebase added
http://forum.coppermine-gallery.net/index.php?topic=26532.msg184853#msg184853 (http://forum.coppermine-gallery.net/index.php?topic=26532.msg184853#msg184853)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on December 04, 2006, 08:35:44 am
Updated initial posting with an updated version (v1.7) and modified the text of the posting as well as the subject line.
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on December 04, 2006, 10:43:58 am
Updated initial posting with an updated version (v1.7) and modified the text of the posting as well as the subject line.
Thank's GauGau. I had a mistake with the version number  :-\
Title: Re: "Who is online" plugin (onlinestats)
Post by: JJ1973 on December 09, 2006, 01:20:27 pm
Ok, I am confused about this plug in. I did what it said, but when I go to add it to the breadcrumb listing, after first up, etc, it does not come up. But when I remove all of that, and put in the onlineusers after albumlist, the online users box shows up, BUT the most log in history shows the date from 1970. I would like for the box to show up after my last uploads and random uploads, but it does not do that. And I would like the date to read properly. Can someone please tell me what I have done wrong????


THanks,

JJ
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on December 09, 2006, 01:23:54 pm
Quote
BUT the most log in history shows the date from 1970
Yes it's normal for the first use. Refresh your page, you will see the proper date
Title: Re: "Who is online" plugin (onlinestats)
Post by: JJ1973 on December 09, 2006, 02:44:35 pm
How do I get it to show up when I have my last up, and random parts of the gallery?? It does not show up when I have those two parts configured in the breadcrumb portion of the gallery. How can I get it to show up with that kind of configuration. This is how I have it...


breadcrumb/catlist/alblist/random,1/lastup,2,onlinestats

And it does not show up in that setting. Only when I put it after the ablist part of the settings. How can I get it to show up in this configuration??


JJ
Title: Re: "Who is online" plugin (onlinestats)
Post by: JJ1973 on December 09, 2006, 02:51:51 pm
Nevermind. I got it. Thanks for your help. : )

JJ
Title: Re: "Who is online" plugin (onlinestats)
Post by: m@rk on December 12, 2006, 03:47:16 pm
Great Plugin!

Modification

I made a modification based on v1.7.
Sorry, I don't have time to list changes properly atm, but I don't want to withhold this from you.
Please refer to attached Screenshots.

Modified files:


Since I added three new fields to the $lang_plugin_onlinestats array, only German and English language available atm.
Source code comments in German.
All original files included.
Title: Re: "Who is online" plugin (onlinestats)
Post by: nomadman on December 23, 2006, 12:36:07 am
Hi,

i upgraded to 1.7 from the last post. i uninstalled 1.2, deleted it from the directory and deleted the table, then installed 1.7. The only problem now is that it shows 2 tables on the index page. They both show the same stats on top of each other. can anyone please help?

(http://img297.imageshack.us/img297/3465/statswy0.th.jpg) (http://img297.imageshack.us/img297/3465/statswy0.jpg)

happy holidays!

Edit:

Fixed. Apprently, moving the plugin up over the other plugins in plugin manager fixed it.
Title: Re: "Who is online" plugin (onlinestats)
Post by: m@rk on December 24, 2006, 02:36:04 pm
Logged in as admin, maybe you added "onlinestats" twice to
Config // Album list view // The content of the main page  ?!
Should "only" look like "breadcrumb/catlist/alblist/random,2/lastup,2/onlinestats" ...
Title: Re: "Who is online" plugin (onlinestats)
Post by: zenton on January 10, 2007, 11:13:41 am
Hi,

I am having a problem with the index.php not displaying after I installed onlinestats plugin cpg1 ].4.x_plugin_onlinestats_v1.7.zip.
Ater the plugin installed I was redirected to the home page index.php and nothing loaded, I just get a blank screen, no errors nothing at all.
I went back to the admin.php to get access gain and logged out.
I went back to the home page and everthing was fine including the plugin.
I logged back in and the home page was blank again. This happens for every type of login.
I am using the Kubrick Theme I dont know if this has anything to do with it.
can anyone please help?

Thanks,
zenton
Title: Re: "Who is online" plugin (onlinestats)
Post by: jokera on January 17, 2007, 09:34:56 pm
UTF8 Chinese Traditional support file
chinese_big5.php
based on english.php of onlinestats 1.7 modified version by m@rk
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 19, 2007, 11:32:48 pm
what do u mean navigate to the plugin zip? what does that mean
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on January 20, 2007, 09:09:31 am
Quote
On the plugin manager page, click "browse", navigate to the plugin zip, click "upload". Alternatively, you can unzip the plugin on your client (preserving the folder structure) and then FTP-upload the unzipped folder into the plugins sub-folder of your coppermine install.
it means you must browse into your computer and find the plugin zip file (onlinestats.zip) to upload it on your server.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 21, 2007, 11:14:14 pm
what do u mean navigate to the plugin zip? what does that mean

help?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 21, 2007, 11:16:33 pm
Frantz already answered you. If you still can't figure it out then get someone who knows how to use a computer to help you.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 22, 2007, 03:37:55 am
what if i dont have that file? i searced and nothing
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 22, 2007, 12:02:05 pm
It is attached to the first post on the thread. You must download it.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 23, 2007, 12:48:46 am
ok thnx but i tried uploading the zip file but it said There was an error copying the package to the plugins folder.   ;)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 23, 2007, 01:01:24 am
You need to make the plugins folder writable using your FTP client.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 23, 2007, 03:19:52 am
i uploaded it to my ftp and how do i make it writeable
and in the manage plugins. which file do i upload cuz it doesnt wrk when i upload that zipped file.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 23, 2007, 06:07:03 am
For some reason, the stats on my page decided to tell me I had 19 users visit at the same time, while I only have 16 users and guest account disabled.  When I uninstall the plugin and choose not to save table info, then reinstall it, the old info is still there.  How do I totally clear the data that has been stored for this plugin?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 24, 2007, 01:08:56 pm
Say no to saving the table data - that's what the option is there for.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Lenanshee on January 24, 2007, 05:51:05 pm
I downloaded the online.zip file, but each time I try to upload it in the pluginmgr.php page, it doesn't display. I mean, I can see:

Installed Plugins
None Installed

Plugins Not installed
nothing is written here

I checked the box "Enable plugins" > YES.
My host is Free.fr
Any idea?

Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on January 24, 2007, 06:16:29 pm
unzip the online.zip fil in you plugins folder

Quote
My host is Free.fr
If you are french, have you search the french board ?http://forum.coppermine-gallery.net/index.php?board=38.0 (http://forum.coppermine-gallery.net/index.php?board=38.0)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 24, 2007, 06:36:11 pm
Say no to saving the table data - that's what the option is there for.

I've done this, several times, which is why I posted here.  Either I'm missing something simple (I've gone over all of these possibilities) or there's something else going on.  I think my only option is to manually removed whatever db settings there are that this plugin created.  This I don't know how to do.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 24, 2007, 07:03:09 pm
Delete the mod_updates_duration setting from the config table using phpmyadmin.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 24, 2007, 10:34:50 pm
i uploaded it to my ftp and how do i make it writeable
and in the manage plugins. which file do i upload cuz it doesnt wrk when i upload that zipped file.

help?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 25, 2007, 03:35:18 am
Delete the mod_updates_duration setting from the config table using phpmyadmin.

Thanks for the advice, but I tried navigating through phpmyadmin and the config table.. I couldn't seem to do what you suggested.  I don't expect you to walk me through editing a file in the config table, but if you could explain a few steps, that would be great.

Also, I can't understand how the table isn't clearing when setting it to do so during the plugin's prompt.  Maybe there's something that needs a permission change?  Don't know if this is a possibility or not, just trying to find the likely easy cause of the problem.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 25, 2007, 03:40:56 am
It's a database change, so it is affected by db privileges not file permissions. To reset the users online record is just a simple delete query - it should not be a problem. To remove the record manually, click the SQL tab and run

Code: [Select]
DELETE FROM prefix_config WHERE name = 'mod_updates_duration' LIMIT 1"
Changing prefix to the actual prefix you are using.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 25, 2007, 04:26:17 am
It's a database change, so it is affected by db privileges not file permissions. To reset the users online record is just a simple delete query - it should not be a problem. To remove the record manually, click the SQL tab and run

Code: [Select]
DELETE FROM prefix_config WHERE name = 'mod_updates_duration' LIMIT 1"
Changing prefix to the actual prefix you are using.

I get:

ERROR: Unclosed quote @ 66
STR: "
SQL: DELETE FROM cpg_config WHERE name = 'mod_updates_duration' LIMIT 1"

I assumed there was a missing quote before LIMIT, so I put it in and I really couldn't tell you if it worked or not, I just didn't get an error.  What I can tell you is I still have this:

We have 16 Registred members
The newest registered user is: Maria
In total there is 1 user online: 1 Registred member and 0 Guests
Most users ever online: 19 on Mon, Jan.22.2007 at 23:52
Registred members online since 10 Minutes: Brian

I can't seem to get it to clear..
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 25, 2007, 04:34:45 am
Looks like there is missing code in the uninstall function. Change it to this

Code: [Select]
// Unnstall (drop?)

function online_uninstall()
{
    global $CONFIG;

    if (!isset($_POST['drop'])) return 1;

    if ($_POST['drop']) {
        cpg_db_query("DROP TABLE IF EXISTS {$CONFIG['TABLE_ONLINE']}");
        cpg_db_query("DELETE FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'mod_updates_duration'");
        cpg_db_query("DELETE FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'record_online_users'");
        cpg_db_query("DELETE FROM {$CONFIG['TABLE_CONFIG']} WHERE name = 'record_online_date'");
    }

    return true;
}
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 25, 2007, 04:36:27 am
I found the mod_updates_duration setting in the config table and deleted it.  I now get a critical error when accessing the site.... I guess this is because I didn't disable the plugin before removing that setting....what now?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 25, 2007, 05:06:45 am
I had to restore the db from a backup and I updated the code, which seems to uninstall properly, except now it doesn't seem to capture the the time or display who's been on in the last 10 mins.  I do apologize if I'm in error here..
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on January 25, 2007, 06:20:58 am
Ok, I think everything is good now aside from one minor issue.  My time zone atm is -5 for EST, which right now shows 12:20AM.  Despite this, the plugin is showing 1:20AM.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 25, 2007, 12:28:32 pm
That's a known bug, the timezone offset is applied twice. I will update the plugin when I get time.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Charity on January 25, 2007, 10:33:57 pm
help?

someone plz help me and tell me what to do!  :(
Title: Re: "Who is online" plugin (onlinestats)
Post by: Invalid ID on January 31, 2007, 06:12:30 pm
Thanks a lot. It was something I wanted for months :)

I have one problem, my timing is 5+ and I have mentioned that in the Config. But the time shown in this plugin is way ahead than that.

How can I modify the time?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on January 31, 2007, 07:05:32 pm
That's a known bug, the timezone offset is applied twice. I will update the plugin when I get time.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Master of Disaster on February 02, 2007, 10:01:33 am
Is it possible to code an extension of the plugin which shows where in the gallery the uses are?
In phpBB there is a link on the headline "Where is online" and the extension should perhaps be similar to this feature in phpBB.
I am very interested in such an extension!

Could anyone create this extension if it is possible?

René
Title: Re: "Who is online" plugin (onlinestats)
Post by: SAAS on February 03, 2007, 07:12:03 pm
i have a little problem with the language file

when i modified the english file and made a new one for my language i had a problem.

the problem is the language im using is a right to left languge when i installed the plug in it turned out left to right when i uninstalled it it went back to normal .

could you check it plz ^^
Title: Re: "Who is online" plugin (onlinestats)
Post by: puku on February 14, 2007, 09:46:40 pm
 :)  ;D perfect plugin
but I need to change it to display just these info:
"In total there is 1 user online
Most users ever online: 1 on St, Únor.14.2007 at 21:09"
nothing else
what should I change to erase the rest of info
please help
thx a lot
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on February 14, 2007, 10:59:06 pm
Look through codebase.php and comment out/delete anything you don't want.
Title: Re: "Who is online" plugin (onlinestats)
Post by: puku on February 15, 2007, 08:18:15 am
Look through codebase.php and comment out/delete anything you don't want.
thanx, I did it ... :) work perfect
Title: Re: "Who is online" plugin (onlinestats)
Post by: natrlhy on February 26, 2007, 05:00:38 am
In the 1.7 version of this wonderful plugin I found some misspellings (Registred) and I have modified them in the lang/english.php file.
I also changed the date format for my taste to look like this:  Most users ever online: 4 on Sun, Feb 25 2007 at 7:10 pm

Code: [Select]
//language variables
$lang_plugin_onlinestats = array(
'name'                =>'Online Today',
'submit_button'        =>'Submit',
'cancel_button' =>'Cancel',
'reg_member'        =>' Registered member',
'reg_members'        =>' Registered members',
'have'                =>'We have ',
'most_recent'        =>'The newest registered user is: ',
'is'                =>'In total there is ',
'are'                =>'In total there are ',
'user'                =>' user online',
'users'                =>' users online',
'and'                =>' and ',
'guest'                =>' Guest',
'guests'        =>' Guests',
'record'        =>'Most users ever online: ',
'on'                =>' on ',
'since'                =>' online during the last ',
);
//for config
$lang_plugin_onlinestats_config = array(
 'config_text'        =>'How long do you want to keep users listed as online for before they are assumed to have gone ?
',
 'minute'        =>' Minutes',
 'remove'        =>'Remove the table that was used to store online data ?',
 'yes'                =>'Yes',
 'no'                =>'No',
);
// changed date format
$lang_plugin_onlinestats_date_fmt='%A, %B %d %Y at %l:%M %P';

I also wanted the "Online Today" table to be bold and I made the following modification to the codebase.php file. This took me a while! ;)

look for this code:

Code: [Select]
       starttable("100%", $lang_plugin_onlinestats['name']);
And change it to this:

Code: [Select]
       starttable("100%", "<b>".$lang_plugin_onlinestats['name']."</b>");
I also love having the usernames based on the group to have different colors and the following post still worked great for the 1.7 release:

http://forum.coppermine-gallery.net/index.php?topic=26532.msg154487#msg154487

I hope this is helpful for others  :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: natrlhy on February 26, 2007, 08:21:25 pm
I'm trying to figure out how to add some color to the section where this plugin displays the "Most users ever online:" section.

Here is the line I need to modify in the codebase.php file:

Code: [Select]
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>".
localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br />"."</td></tr>";

I've tried several things but I just keep getting parsing errors.

Thanks!
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on February 26, 2007, 10:43:26 pm
and what would you do exactly ?
Title: Re: "Who is online" plugin (onlinestats)
Post by: natrlhy on February 26, 2007, 10:53:58 pm
I've tried entering in code like:

        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>"."<span style="color:red;font-weight:bold;">".localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br /></span>"."</td></tr>";

With no luck... I'm not very savvy with PHP code, so with that said, I'm struggling with what goes where or if this can be done. Tis the price of a little pizazz :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on February 26, 2007, 10:59:35 pm
Use single quotes around this bit instead of double quotes

Code: [Select]
"<span style="color:red;font-weight:bold;">"

Code: [Select]
'<span style="color:red;font-weight:bold;">'
Title: Re: "Who is online" plugin (onlinestats)
Post by: natrlhy on February 26, 2007, 11:09:48 pm
I tried so many different quote types and probably had them in the wrong spot.

Thanks!  This is working:

Code: [Select]
        echo $lang_plugin_onlinestats['record']."<b>".'<span style="color:#5EE548;font-weight:bold;">'.$CONFIG['record_online_users
']."</b></span>" .$lang_plugin_onlinestats['on']."<b>".'<span style="color:#5EE548;font-weight:bold;">'.localised_date($CONFIG['reco
rd_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br /></span>"."</td></tr>";

Syntax and placement is so key ;)  I just need to understand where all the . and " or ' go :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: lonely24 on March 15, 2007, 11:26:55 am
When i enable the plugin ,

I got message like this ,

Critical Error
There was an error while processing a database query 

MY CPG verision is the 1.4 latest version and integration with phpbb.

Is it coz of phpbb ?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on March 15, 2007, 03:41:29 pm
Yes.
Title: Re: "Who is online" plugin (onlinestats)
Post by: lonely24 on March 15, 2007, 06:22:36 pm
Yes.

so no way to do with that ? I want to have that one in my gallery page  :(
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on March 15, 2007, 06:33:36 pm
Read through the original thread, I think it has the code changes posted.
Title: Re: "Who is online" plugin (onlinestats)
Post by: lonely24 on March 16, 2007, 05:45:30 am
i saw that changes code post at page 4 and i did it . No error now . Thanks :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: L3webguy on March 28, 2007, 03:33:36 am
i installed the latest version 1.7
it seemed to install ok without any errors but when a user is logged in, the main page of my gallery pages are blank. but if you load the page without logging in, then the pages load just fine, showing the onlinestats just fine.

can you please assist?

thanks,
jay
Title: Re: "Who is online" plugin (onlinestats)
Post by: caba on April 11, 2007, 11:00:36 pm
I don't get in what file I have to modify to get work this plugin. :| Tried to read docs, but didn't understood how to make everything work :( Can I get more eplaination about it? (I have installed 1.7 plugin).
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on April 11, 2007, 11:31:07 pm
You forgot to mention what exactly is not working of this plugin. Just saying it does not work does not give us something to work with :). Explain what is not working, provide a link to the site, and you stand a better chance of getting an answer.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Qayyom on April 17, 2007, 02:57:34 pm
it is great plugin

I attest it offline / locally on my PC, it is working very well.

but when i uploaded on my site PICSnCLIPS.net (http://PICSnCLIPS.net), it is not working on my live site.

= during installation, i was not face any problem or error
= where i can do mistake (i implemented successfully offline)
= how can i confirm/ check required features/ services are running properly on my site/hosting server

for the plugin
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on April 17, 2007, 06:42:37 pm
have you added onlinestats in config=> Album list view=>The content of the main page ?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on April 18, 2007, 09:18:21 am
In the 1.7 version i need this line
Code: [Select]
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br />";
Changed so it only displays a link to a new username to a registered users and guest users only see a name but can not click through to the profile page.
I'm crap with coding so if someone could lend a digital hand that be great  ;)

Thanks
hein
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on April 18, 2007, 06:31:25 pm
Quote
Changed so it only displays a link to a new username to a registered users and guest users only see a name but can not click through to the profile page.
I'm crap with coding so if someone could lend a digital hand that be great

Hey Hein, it's time you learn coding  :D :D :D :D
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on April 18, 2007, 10:00:11 pm
Hey Hein, it's time you learn coding  :D :D :D :D

Tell me about it. I did try though.. keep bumping my head into a wall :(. It would make life easier if i could insert extra modules into my brain  ;D
Title: Re: "Who is online" plugin (onlinestats)
Post by: Qayyom on April 19, 2007, 07:19:00 am
have you added onlinestats in config=> Album list view=>The content of the main page ?

in offline, it was configured automatically/itself. after that i manually configured in my live site as u wrote.

nothing happened after configuring in content of the main page...

i need more help to use this plugin in my site....
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on April 19, 2007, 07:30:51 am
in offline, it was configured automatically/itself. after that i manually configured in my live site as u wrote.

nothing happened after configuring in content of the main page...

i need more help to use this plugin in my site....

As Frantz says :
Quote
have you added onlinestats in config=> Album list view=>The content of the main page ?

Just onlinestats.. not onlinestats,2
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on April 19, 2007, 06:43:41 pm
Quote
Just onlinestats.. not onlinestats,2
Yes and not onlinetoday as on your scrennshot  ;) (if your using the onlinestats plugin of course)
Title: Re: "Who is online" plugin (onlinestats)
Post by: bitcloud on April 24, 2007, 03:32:27 pm
hey,

this plugin is extremely great.

having said that I'd really like to put the online stats on other pages (all of them) other than index.php

is there any way to achieve this? i can't make sense of it... any help, as always would be appreciated...

cheers
bitcloud
Title: Re: "Who is online" plugin (onlinestats)
Post by: Qayyom on April 25, 2007, 06:03:30 am
Yes and not onlinetoday as on your scrennshot  ;) (if your using the onlinestats plugin of course)

Unfortunately my web server has been hacked, therefor i'll check it soon as the problem solved on my hosting server.

thanks to all for your cooperation, i really appreciate it.

(I checked it offline, it works very well, after checking online i'll inform here the positive result)
Title: Re: "Who is online" plugin (onlinestats)
Post by: notpictured on April 25, 2007, 06:48:04 am
I'm having trouble getting it to work, I uploaded the plugin via FTP and I have this under "Config" > "Album list view" > "The content of the main page": breadcrumb/lastalb/catlist/alblist/random/lastup/onlinestats

However, when I check the gallery index, there's nothing there. It's absolutely blank. Can someone help? I have no clue what what I'm doing wrong...
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on April 25, 2007, 07:18:46 am
Quote
'm having trouble getting it to work, I uploaded the plugin via FTP and I have this under "Config" > "Album list view" > "The content of the main page": breadcrumb/lastalb/catlist/alblist/random/lastup/onlinestats
did you install the plugin ? (by clicking the i icon in the plugin manager)
Title: Re: "Who is online" plugin (onlinestats)
Post by: notpictured on April 25, 2007, 07:40:54 am
Silly me, that was it. Thank you!
Title: Re: "Who is online" plugin (onlinestats)
Post by: ksawery on May 03, 2007, 09:38:14 pm
I've added the Spanish language!  ;D

Title: Re: "Who is online" plugin (onlinestats)
Post by: caba on May 03, 2007, 10:10:20 pm
There's Lithuanian language.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Qayyom on May 04, 2007, 03:21:36 pm
it is great plugin

I attest it offline / locally on my PC, it is working very well.

but when i uploaded on my site PICSnCLIPS.net (http://PICSnCLIPS.net), it is not working on my live site.

= during installation, i was not face any problem or error
= where i can do mistake (i implemented successfully offline)
= how can i confirm/ check required features/ services are running properly on my site/hosting server

for the plugin

now it works very well                   ..............                      thanks to all
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on May 07, 2007, 07:15:48 am
now it works very well                   ..............                      thanks to all


Would you mind sharing what you did to get it working ? It might benefit others.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Qayyom on May 07, 2007, 08:53:37 am
Would you mind sharing what you did to get it working ? It might benefit others.

Actually i did not write "onlinestats" in Album list view=>The content of the main page, after this correction it works perfectly.

complete status of this trouble shooting can be readable at Page #. 10 & 11
Title: Re: "Who is online" plugin (onlinestats)
Post by: pcinfoman on May 24, 2007, 08:25:23 pm
When I install this plugin, my albums display twice on the main page. See the attachment.

How do I solve this?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on May 25, 2007, 12:35:35 am
What might help is placing this plugin as the first to be loaded into your cpg. Do that via the plugin manager.
Title: Re: "Who is online" plugin (onlinestats)
Post by: pcinfoman on May 25, 2007, 07:36:08 am
Ok, I just made it the top plugin on the list. It still gives me the same problem.

Ideas?
Title: Re: "Who is online" plugin (onlinestats)
Post by: pcinfoman on May 25, 2007, 07:52:03 am
I was mistaken. I had 2 plugins that caused this problem. This one and another one from the wrong version.

When I deleted the other one and moved this one to the top, it solved the problem.

Thank you
Title: Re: "Who is online" plugin (onlinestats)
Post by: andyleery on June 11, 2007, 12:05:41 am
Hi have a problem with this hack. Please look ab my site: http://www.bollybilder.de
I have also got a Hack installed, where you can sort the Albumlist (white arrow). The normal List is now under the "hack album list). So now its dobble, how can I delete the second one?

Also the onlinestars Box is twice, how can I also delete the second box?
Thx for help guys and excuse my English, I'm German ^^
Title: Re: "Who is online" plugin (onlinestats)
Post by: Horizon on June 12, 2007, 04:13:15 pm
is it be possible to change 10 Minutes to 1 day?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on June 12, 2007, 04:19:51 pm
Of course - the installer asks you how long you want the duration to be.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Horizon on June 12, 2007, 04:29:39 pm
i've just uploaded plugin files by using ftp, so i've haven't got any guestions...
Could you help me, where can I change these 10 minits?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on June 12, 2007, 04:59:53 pm
You need to install the plugin. It won't work otherwise.
Title: Re: "Who is online" plugin (onlinestats)
Post by: exzessiv on June 21, 2007, 12:11:35 pm
sorry for that question, but is there any alternative that the plugin is only shown at the frontpage ??
Title: Re: "Who is online" plugin (onlinestats)
Post by: Sunnefa on July 10, 2007, 11:56:45 pm
Okay... I'm trying to change the format of the date displayed with "Most users ever online" and I only seem to be banging my head against the wall.
The code I have at the moment is this:

Code: [Select]
$lang_plugin_onlinestats_date_fmt='%W, %M %D %Y';
According to MySQL reference manual (http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html)
%W will become weekday name, Sunday, Saturday etc.
%M will become month name, January, December etc.
%D will become day of the month with English suffix, 1st, 2nd, 3rd, 4th etc.
%Y will become year, numeric, 4 digits, 2006, 2007, etc.

these are the things that I want, but when I upload the changed version I get this: (see attached picture)

Any suggestions?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 11, 2007, 12:00:13 am
Wrong manual ;)

php.net/strftime (http://php.net/strftime)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Sunnefa on July 11, 2007, 12:03:18 am
Wrong manual ;)

php.net/strftime (http://php.net/strftime)


Thank you soooo much!  :D :D I kinda feel silly   :P

edit:
Hmmm... this is strange... according to the link you gave my I should write %A for full weekday name, but I still get the abbreviated weekday name. I want to make it say Friday but I only get Fri.... ???
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 11, 2007, 12:07:31 am
No reason to feel silly; you are in the 1% of people who actually bother to consult a manual before posting. :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Sunnefa on July 11, 2007, 12:10:06 am
No reason to feel silly; you are in the 1% of people who actually bother to consult a manual before posting. :)

Thank you :-)
edit(to the post above actually):
Hmmm... this is strange... according to the link you gave my I should write %A for full weekday name, but I still get the abbreviated weekday name. I want to make it say Friday but I only get Fri.... ???
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 11, 2007, 12:17:14 am
Edit that in your language file (eg. lang/english.php)

Code: [Select]
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Title: Re: "Who is online" plugin (onlinestats)
Post by: Sunnefa on July 11, 2007, 12:29:33 am
Edit that in your language file (eg. lang/english.php)

Code: [Select]
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');

Yes!! Thanks so much :):D
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabrian on July 18, 2007, 06:11:51 am
Just downloaded and installed v.1.7.  The word "registered" is spelled wrong on two instances (the file I downloaded anyway). It's missing the "E" before the "R".  Thought someone might wanna know.
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on July 18, 2007, 07:57:22 am
You can correct it in the lang/english.php file from your plugin
Title: Re: "Who is online" plugin (onlinestats)
Post by: ccvortex on July 21, 2007, 08:26:26 pm
Coppermine 1.4.12 (Stable)

Onlinestats v. 1.7

Plugin is uploaded and installed via Plugin Manager.
Plugins are Enabled.

Content of Main Page entry:
breadcrumb/catlist/alblist/random,2/lastup,2/onlinestats
generates this error:
There was an error while processing a database query

It does this for all themes.

Any ideas what's wrong?

Thanks all
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 21, 2007, 08:54:39 pm
Enable debug mode and post the actual mysql error message you get when you replicate the error.
Title: Re: "Who is online" plugin (onlinestats)
Post by: ccvortex on July 21, 2007, 09:09:26 pm
There was an error while processing a database query.

While executing query "SELECT COUNT(*) FROM `clancc_smf4`.smf_members" on 0 mySQL error:


File: /home/clancc/public_html/gallery/include/functions.inc.php - Line: 249


I noticed in the configuration.php file that's it's using "Onlinestats", not "onlinestats".
Since *nix is case sensitive, I changed the Content of Main Page entry to:
breadcrumb/catlist/alblist/random,2/lastup,2/Onlinestats
I no longer get a dB error, but the new block isn't showing up either...

Install is bridged with SMF 1.1.3
http://www.collectiveconspiracy.com
http://www.collectiveconspiracy.com/gallery (registered access only)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 21, 2007, 10:24:37 pm
Plugin updated to 1.8 - should fix this issue.
Title: Re: "Who is online" plugin (onlinestats)
Post by: ccvortex on July 21, 2007, 10:34:35 pm
Works like a champ, thanks Nib.

If I may ask, what did you change to fix it?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on July 21, 2007, 11:11:02 pm
If you have your forum configured with different mysql details to Coppermine we need to manage 2 database connections. Database queries that access Coppermine run over one connection and queries that access the forum need to use the second connection. The plugin was not enforcing this correctly.
Title: Re: "Who is online" plugin (onlinestats)
Post by: ccvortex on July 22, 2007, 12:21:54 am
Ok, thanks Nib.
Title: Re: "Who is online" plugin (onlinestats)
Post by: tim18 on August 11, 2007, 03:00:11 pm
Hello, This plugin sounds perfect. Only problem is i get a fatal error when i try to install it through the plugin manager.

Code: [Select]
Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mohr/public_html/hub/plugins/onlinestats/codebase.php on line 46
All help appreciated.

Tim
Title: Re: "Who is online" plugin (onlinestats)
Post by: just_some_guy on August 11, 2007, 08:48:56 pm
^^^^I got the same error.^^^^^
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on August 11, 2007, 08:52:21 pm
I didn't.
Title: Re: "Who is online" plugin (onlinestats)
Post by: just_some_guy on August 11, 2007, 08:53:23 pm
error at line 42:

require ('./plugins/onlinestats/include/init.inc.php');

Checked the ftp and there is no includse folder inside onlinestats.

what should i do?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on August 11, 2007, 08:55:34 pm
There is. Maybe it's not getting extracted properly. Extract the plugin locally and then upload and install it.
Title: Re: "Who is online" plugin (onlinestats)
Post by: just_some_guy on August 11, 2007, 09:00:06 pm
That did it, thanks, but it is saying the most users where online in 1970
Title: Re: "Who is online" plugin (onlinestats)
Post by: just_some_guy on August 11, 2007, 09:02:13 pm
It ok , its fixed. I think it just needed a refresh
Title: Re: "Who is online" plugin (onlinestats)
Post by: tim18 on August 12, 2007, 01:54:12 am
Yes, this solved the issue. Thank-you

Tim
Title: Display only visible to registered users?
Post by: rrwwxx on August 12, 2007, 04:52:27 am
I would like to ask for two modifications on this plugin because it would fit my own needs better if only registered users could see these statistics on the album view.
Is it possible to modify the code so that these stats would only be visible to users being logged in (alternatively only to admins)?
And is it difficult to change the stats in a way to get the number of guests counted and displayed too?
Thanks for an answer,
cu,
Roli
°¿°
Title: Re: "Who is online" plugin (onlinestats)
Post by: rrwwxx on August 12, 2007, 05:19:29 am
(why do I always ask first and find my own solution shortly after?) I could answer the first question from above myself.

The modification of this routine to make the stats only visible to users being logged in would need a change in codebase.php and the function online_mainpage(). The code would now start as follows:
Code: [Select]
function online_mainpage()
{
        global $AUTHORIZED, $CONFIG, $cpg_udb, $matches, $lang_plugin_onlinestats, $lang_plugin_onlinestats_date_fmt;

        if($matches[1] != 'onlinestats') {
          return $matches;
        }
        if (USER_ID) {
          require ('./plugins/onlinestats/include/init.inc.php');
etc, the rest remains unchanged but it needs a second closed bracket } at the end of this function before the commening line labeled // Install.
cu,
Roli
°¿°
Title: Re: "Who is online" plugin (onlinestats)
Post by: cyberboy on August 16, 2007, 05:49:35 am
I got error...
when I click install . it shows:

Quote
Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:') in /volume1/web/cpg/plugins/onlinestats/codebase.php on line 46

how can i do?? thxx
Title: Re: "Who is online" plugin (onlinestats)
Post by: cyberboy on August 16, 2007, 05:58:07 am
I got error...
when I click install . it shows:

how can i do?? thxx

solved... ;D
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on August 16, 2007, 07:30:09 am
solved... ;D

Great! Why not share it with us all what your solution was. Others might benefit from it.  ;)
Title: Re: "Who is online" plugin (onlinestats)
Post by: bluedevil on August 17, 2007, 07:12:09 pm
Great! Why not share it with us all what your solution was. Others might benefit from it.  ;)


Yeah...how you solved this?  I have the same error :'(
Title: Re: "Who is online" plugin (onlinestats)
Post by: bluedevil on August 17, 2007, 07:55:09 pm
Ok.  This is line 46.  What am i missing?

Code: [Select]
function online_configure()
Title: Re: "Who is online" plugin (onlinestats)
Post by: bluedevil on August 19, 2007, 06:29:28 am
Ok.  This is line 46.  What am i missing?

Code: [Select]
function online_configure()

bump
Title: Re: "Who is online" plugin (onlinestats)
Post by: OzButcher on August 19, 2007, 07:11:41 am
is it be possible to change 10 Minutes to 1 day?

I would also like to change mine... to say 24 hours (I only have a small gallery for family/friends). Atm the installer only asks for minutes so instead of:

Registered members online in the last 1440 Minutes:

how can I make it like this?:

Registered members online in the last 24 Hours:
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on August 19, 2007, 08:47:59 am
Ok.  This is line 46.  What am i missing?

Code: [Select]
function online_configure()
try to reupload all the plugin files on your server
Title: Re: "Who is online" plugin (onlinestats)
Post by: OzButcher on August 22, 2007, 04:59:45 pm
tried having a go myself.... I edited codebase.php:

Line 160:
Code: [Select]
echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";

Line 56:
Code: [Select]
<td><?php echo $lang_plugin_onlinestats_config['minute'];?></td>
I tried changing all 3 of the [minutes] to [hours] but I'm guessing its not as simple as I thought :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fizzolo on August 23, 2007, 05:42:47 pm
How can i change date format for record users connected?
From the code, value UNIX_TIMESTAMP() is insert into db. I can't find the way to fix quickly..
Since my site is in italian, i don't want to see 'Gio, Ago.23.2007 at 16:26', but 'Gio, 23.Ago.2007 at 17:26' (yes, the hour is +1) or another date format more pretty  :-*

Thanks for every Re: ;)
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on August 23, 2007, 06:20:01 pm
modify the date format in the plugin  lang file (italian.php for you)
Code: [Select]
$lang_plugin_onlinestats_date_fmt='%A, %B.%d.%Y at %H:%M';
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fizzolo on August 24, 2007, 12:59:18 pm
wow.. it was very very simple.. and i was very very down  ;D
Thanksss a lot
Title: Re: "Who is online" plugin (onlinestats)
Post by: lifter on August 28, 2007, 08:11:26 pm
I got error...
when I click install . it shows:

how can i do?? thxx

I get this error as well and the original punk who posted this error didn't post how he fixed it...
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on August 28, 2007, 10:13:34 pm
I get this error as well and the original **** who posted this error didn't post how he fixed it...

Lifter, talking like that makes you just as nice a person as those who do not post how they fixed a problem.

Frantz, do you have a piece of wisdom to share with lifter ?
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on August 29, 2007, 07:54:23 am
Quote
Frantz, do you have a piece of wisdom to share with lifter ?
not at all, try to reupload a fresch package from the plugin and be sure to unzip the entire plugin folder in the plugins directory.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Sami on August 29, 2007, 09:38:36 am
Quote
Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:') in /volume1/web/cpg/plugins/onlinestats/codebase.php on line 46
Quote
Said that you don't have init.inc.php under include folder of onlinestats plugin , So re-upload the file will solve the problem
Title: Re: "Who is online" plugin (onlinestats)
Post by: lifter on September 01, 2007, 05:40:39 am
Yeah - had to upload the files into the plugin folder manually and it worked fine as opposed to using the plugin manager to upload from a zip  :)
Title: Re: "Who is online" plugin (onlinestats)
Post by: n0rb3rt on October 31, 2007, 11:38:11 pm
if somebody needs this is Polish to Onlinestats 1.8

Best regards
Norbert
Title: Re: "Who is online" plugin (onlinestats)
Post by: grvsunny on December 18, 2007, 08:29:18 pm
Hello all I downloaded this plugin and after that when I clicked on intall button and then it asked me for time duration when I clicked on it it is taking me to this url http://pluginmgr.php/?op=install&p=onlinestats and not installing the plugin please let me know what to do
Title: Re: "Who is online" plugin (onlinestats)
Post by: JohannM on January 23, 2008, 01:46:33 pm
Hi

I have upgraded my server and get this now with the online stats plugin:

"Most users ever online: 11 on Jan 01, 1970 at 12:00 AM"

What can be wrong ?

Thanx in advance
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on January 23, 2008, 04:47:15 pm
Don't double-post nor cross-post! You have already started a separate thread (http://forum.coppermine-gallery.net/index.php?topic=49986.0) on this issue, and you got a reply to your individual thread. >:(
Title: Re: "Who is online" plugin (onlinestats)
Post by: Mimer on January 26, 2008, 04:41:22 pm
Hi

I've translated the language file for "Who is online" 1.8 to danish.

Mimer  8)
Title: Re: "Who is online" plugin (onlinestats)
Post by: kary4ever on January 31, 2008, 06:27:22 am
Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.
Title: Re: "Who is online" plugin (onlinestats)
Post by: ladyofthelight on February 12, 2008, 11:40:14 am
Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.

Thansk, I had actually the same problem - Solved with your tip.

Sam
Title: Re: "Who is online" plugin (onlinestats)
Post by: ladyofthelight on February 12, 2008, 11:56:12 am
Just wanted to say thank you... Useful tool.  ;)

Sam
Title: Re: "Who is online" plugin (onlinestats)
Post by: burnedbrass on February 24, 2008, 05:30:53 am
Hello, I am not sure if I needed to create a new thread or continue here.

I am running CPG 1.4.16 with Onlinestats V1.8 and get the following error:

Fatal error: online_configure() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php'

after uploading the onlinestats and clicking (the i).

My "The content of the main page" is as follows
"breadcrumb/catlist/alblist/random,2/anycontent/lastup,2/onlinestats"

I do have plugins/lang/english.php

I did read Joachim's 1/16/06 thread plus the others to no avail. Any assistance is appreciated/
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on February 24, 2008, 08:28:33 am
be sure to have uploaded all the plugin files in th eplugin directory (it seems you have not the ./plugins/onlinestats/include/init.inc.php file on your server
Title: Re: "Who is online" plugin (onlinestats)
Post by: burnedbrass on February 24, 2008, 09:12:18 am
Kary4ever, ladyofthelight and Francois THANKS!

I FTP (manually uploaded) Onlinestats and it installed:

Onlinestats directory with the following:

  lang
  Include
  schema.sql
  readme.txt
  lisez-moi.txt
  configuration.php
  codebase.php

Thanks again
Title: Re: "Who is online" plugin (onlinestats)
Post by: onuzu on March 28, 2008, 08:34:56 pm
Hello I used the plugin in it works fine for a while but now the most ever online doesn't work. It's stuck at 29 even though I get at least 40 users per day. My gallery is at http://lurrenzinc.com/photos [Edit GauGau] Warning: link not safe for work [/Edit]

What should I do?
Title: Re: "Who is online" plugin (onlinestats)
Post by: hgl on April 14, 2008, 02:56:42 pm
Hi Sir

Could you please tell me how to hide the online state when the manager online

I am look forward to receiving your reply soon

Many Thanks

Hgl
Title: Re: "Who is online" plugin (onlinestats)
Post by: Maik on April 21, 2008, 11:21:48 pm
Hi,

i have a question, i used by the config the standard button, after that i had a problem with my database.. and i can't find the problem at the moment.

i set the debug mode on 1 and see the following problem,

Quote
While executing query "DELETE FROM cpg131_testmod_online WHERE last_action < NOW() - INTERVAL  MINUTE" on 0

mySQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
/include/functions.inc.php - Regel: 249 

I updated the complete coppermine script with the online mod and i used the update.php funtion.

Do someone have an great idee for this problem.. see here http://gallery.digitaleplaza.com

Many Thanks,

Maik
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on April 22, 2008, 10:31:10 am
Disable the plugin using phpmyadmin.
Title: Re: "Who is online" plugin (onlinestats)
Post by: aldog on April 25, 2008, 09:00:43 pm
hey squad, I had the same problem as you, I searched the forum and found this post
Hi, i'd try to install the plugin by clicking on the "i" button, and i have this error:

Fatal error: require(): Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/local/lib/php') in /home/0/1/starscentral.123.fr/www/gallery/plugins/onlinestats/codebase.php on line 46

Could somebody help me? I'm not very good at php and i don't know what to do.

Edit : My problem is solved! I manually upload the files on the server and it worked! Thanks.
mine works fine after uploading the onlinestats folder via ftp.


make sure you add "/onlinestats" in
Title: Re: "Who is online" plugin (onlinestats)
Post by: ceskobassman on May 05, 2008, 09:51:49 pm
Hi, great plugin! I'm looking a way to show the actual server time with the other informations.

If someone is interested I've translated the informations shown in italian
Code: [Select]
starttable("100%", "Chi &egrave online");
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? "C'&egrave 1 utente registrato<br>" : "Ci sono {$num_users} utenti registrati<br>";
        echo "L'ultimo utente registrato &egrave <a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
        echo ($num_online == 1) ? "C'&egrave 1 utente online" : "Ci sono {$num_online} utenti online";
        echo ($num_reg_online == 1) ? " :: 1 Registrato, e " : " :: {$num_reg_online} Registrati, e ";
        echo ($num_guests == 1) ? "1 Ospite<br>" : "{$num_guests} Ospiti<br>";
        echo 'Record di utenti online: ' . $CONFIG['record_online_users'] . " il " . localised_date($CONFIG['record_online_date'], $comment_date_fmt ) . "<br>";
        echo "Registrati e online: {$logged_in_names}</td></tr>";

        endtable();
Title: Re: "Who is online" plugin (onlinestats)
Post by: Vikitty on May 18, 2008, 08:09:35 pm
Wow, great plugin! So easy to install!

I was wondering if there's a way to show the IPs of guests browsing the gallery? (as a mouseover tooltip or something)
Title: Re: "Who is online" plugin (onlinestats)
Post by: MadMaxx on June 26, 2008, 11:48:22 am
hi
i read this thread and did a search but couldn't find what i needed:
how to place the onlinestats only on the main page?

thank you
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on June 26, 2008, 01:11:24 pm
normally the onliestats block is only displaye on the main page
Title: Re: "Who is online" plugin (onlinestats)
Post by: MadMaxx on June 26, 2008, 11:53:59 pm
normally the onliestats block is only displaye on the main page

hi, thanks for the reply.
it shows in the main page and in every Category page only, not in any other page.
i would like it to show in the main page only.

i used this code from Nibbler http://forum.coppermine-gallery.net/index.php/topic,37830.0.html (http://forum.coppermine-gallery.net/index.php/topic,37830.0.html)
to show last added and random in the main page only, so i tought that
Code: [Select]
if ($cat == 0) {would probably work but i'm new at php so i don't know where to put it.

thanks
Title: Re: "Who is online" plugin (onlinestats)
Post by: MadMaxx on July 05, 2008, 01:22:59 pm
ok found it

in plugins/onlinestats/codebase.php
changed code starting line 175 to line 185

Code: [Select]
       starttable("100%", $lang_plugin_onlinestats['name']);
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br />" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br />";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest['user_id']}\">{$newest['user_name']}</a><br />";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo ($num_reg_online == 1) ? ": <b>1</b>".$lang_plugin_onlinestats['reg_member'].$lang_plugin_onlinestats['and'] : ": <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br />" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br />";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br />";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";

        endtable();

with:

Code: [Select]
        $qs = $_SERVER['QUERY_STRING'];
        if(!$qs){
        starttable("100%", $lang_plugin_onlinestats['name']);
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? $lang_plugin_onlinestats['have']."<b>1</b>".$lang_plugin_onlinestats['reg_member']."<br />" : $lang_plugin_onlinestats['have']."<b>".$num_users."</b>".$lang_plugin_onlinestats['reg_members']."<br />";
        echo $lang_plugin_onlinestats['most_recent']."<a href=\"profile.php?uid={$newest['user_id']}\">{$newest['user_name']}</a><br />";
        echo ($num_online == 1) ? $lang_plugin_onlinestats['is']."<b>1</b>".$lang_plugin_onlinestats['user'] : $lang_plugin_onlinestats['are']."<b>".$num_online."</b>".$lang_plugin_onlinestats['users'];
        echo ($num_reg_online == 1) ? ": <b>1</b>".$lang_plugin_onlinestats['reg_member'].$lang_plugin_onlinestats['and'] : ": <b>".$num_reg_online."</b>".$lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['and'];
        echo ($num_guests == 1) ? "<b>1</b>".$lang_plugin_onlinestats['guest']."<br />" : "<b>".$num_guests."</b>".$lang_plugin_onlinestats['guests']."<br />";
        echo $lang_plugin_onlinestats['record']."<b>". $CONFIG['record_online_users']."</b>" .$lang_plugin_onlinestats['on']."<b>". localised_date($CONFIG['record_online_date'], $lang_plugin_onlinestats_date_fmt ) ."</b><br />";
        echo $lang_plugin_onlinestats['reg_members'].$lang_plugin_onlinestats['since'].$CONFIG['mod_updates_duration'].$lang_plugin_onlinestats_config['minute'].": ". $logged_in_names."</td></tr>";
        endtable();
}
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hot Rides on August 06, 2008, 11:32:36 pm
wow, 14 pages, one person with the same issue and no answer

see the problem?
We have 28 Registered members
The newest registered user is: ckbell13
In total there is 1 user online: 1 Registered member and 0 Guests
Most users ever online: 1 on Wed, Dec.31.1969 at 18:00
Registered members online in the last 10 Minutes: admin94

if not check your calendar, lol

unless Im time traveling again its not dec and surly its not 1969
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hot Rides on August 06, 2008, 11:47:42 pm
wow, 14 pages, one person with the same issue and no answer

see the problem?
We have 28 Registered members
The newest registered user is: ckbell13
In total there is 1 user online: 1 Registered member and 0 Guests
Most users ever online: 1 on Wed, Dec.31.1969 at 18:00
Registered members online in the last 10 Minutes: admin94

if not check your calendar, lol

unless Im time traveling again its not dec and surly its not 1969
saw where someone said try refreshing, didnt work
tried logging in as 4 different users, nothing, happened to make a change to my template.html and upload it and refreshed, and it worked, lol
Title: Re: "Who is online" plugin (onlinestats)
Post by: Crazymodder on September 07, 2008, 12:01:38 pm
I have a Problem with the language. I have install it everythink works great but the plugin is in english the whole site is in german. In the adminmenu everytime the standartlanguage is english. If I changed to german and than go again to the config it is english again but the gallery is in german. but the plugin is in english how i can change that? every language file have the same chmod 644.
Title: Re: "Who is online" plugin (onlinestats)
Post by: matyrojo666 on September 22, 2008, 10:13:02 pm


When I try to install this plugin under the latest version of Coppermine I have this problem


Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='./:/usr/local/php5/lib/php') in /www/studio1928.com/htdocs/4_matiasdominguez/mdphoto/plugins/onlinestats/codebase.php on line 46

How can I fix it?
Thanks
Title: Re: "Who is online" plugin (onlinestats)
Post by: matyrojo666 on September 22, 2008, 10:25:52 pm
When I try to install this plugin under the latest version of Coppermine I have this problem


Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='./:/usr/local/php5/lib/php') in /www/studio1928.com/htdocs/4_matiasdominguez/mdphoto/plugins/onlinestats/codebase.php on line 46

How can I fix it?
Thanks

Solved, I deleted the plugin and reinstalled it.
Solved  :)
Title: MOVED: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on November 24, 2008, 09:09:05 pm
Split unrelated reply by Cath22 (http://forum.coppermine-gallery.net/index.php?action=profile;u=60585) into separate thread (http://forum.coppermine-gallery.net/index.php?topic=56646.0) and moved into plugin support board.
Title: Re: "Who is online" plugin (onlinestats)
Post by: xfever on November 26, 2008, 07:03:01 pm
i installed this plugin and i've got this on main page:
'
This is sample data returned from plugin "".
'

does anyone know what's wrong with it?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on November 26, 2008, 07:15:59 pm
Nothing. You installed the sample plugin. Uninstall it.
Title: Re: "Who is online" plugin (onlinestats)
Post by: xfever on November 26, 2008, 07:22:52 pm
oh my...
so where can i find 'no sample' plugin?
i downloaded this (http://forum.coppermine-gallery.net/index.php?action=dlattach;topic=26532.0;attach=7876) . is it wrong?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabricio Ferrero on November 26, 2008, 07:29:12 pm
You downloaded the right plugin but you press the 'install' button on another plugin. The one that it's called 'Sample plugin'.

So, go to your plugin manager again and press the 'Install' button on the 'Who is online plugin'  ;)
Title: Re: "Who is online" plugin (onlinestats)
Post by: xfever on November 26, 2008, 09:00:23 pm
ok but there's no install button. screen *removed and replaced with attachment*
maybe it's VERy easy but i still don't know *beep*
Title: Re: "Who is online" plugin (onlinestats)
Post by: Fabricio Ferrero on November 27, 2008, 01:09:03 am
When you click in this forum 'Reply' a beatiful alert shows up, where clearly says:
Quote
Please respect board rules when posting!
That means something, it's not there in vain.

Firstly, Board rules / Forum policies: Add Attachments (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270617.html#msg270617). There is a tool for that purpouse, you don't have to hotlink imagges.


Secondly, Board rules / Forum policies: Post publicly (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270619.html#msg270619)
please help. i don;t know that's wrong :/
my gallery is http://ultimate-madonna.com/gallery/index.php
in plugin maganer i see only this: http://i36.tinypic.com/i2k9pv.jpg
I never keep supporting a user that PM me.


Thirdly, Common policies (http://forum.coppermine-gallery.net/index.php/topic,55415.msg270628.html#msg270628)
You can't use this type of expressions:
Quote
*beep*

*Imagge attached in this post.


@Joachim: Could you check something? I don't have permission to modify user's posts in this sub-board. Thanks :)
Edit: None of the 'supporter' tool available. (move, merge, split.......)  :(
Title: Re: "Who is online" plugin (onlinestats)
Post by: Hein Traag on November 27, 2008, 06:25:32 am
Adusted Xfever post. Added image as attachment.

@Xfever. Read the board rules and common policies. If you behave politely and with respect you get treated the same. Don not behave politely and with respect and you also get treated as such.
Title: Re: "Who is online" plugin (onlinestats)
Post by: xfever on November 27, 2008, 03:23:19 pm
ok, sorry guys  :'(
Title: Re: "Who is online" plugin (onlinestats)
Post by: onuzu on December 03, 2008, 11:01:59 pm
We tried to install this plugin and we got this error:

Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/lurrenzi/public_html/photos/plugins/onlinestats/codebase.php on line 117


You can see it at http://lurrenzinc.com/photos/index.php
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on December 21, 2008, 02:05:39 pm
Well, you get the error because the file is not there - http://lurrenzinc.com/photos/plugins/onlinestats/include/init.inc.php returns a 404 not found error. Upload the entire plugin, not only part of it.
Title: Re: "Who is online" plugin (onlinestats)
Post by: onuzu on December 21, 2008, 07:38:14 pm
Yes that was the problem. Totally solved now. Thanks very much
Title: Re: "Who is online" plugin (onlinestats)
Post by: Deus on January 08, 2009, 07:09:02 pm
i've just seen this on a forum and noticed it showed search bots as being online.
I was wondering if it's possible to do that with this mod?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Heroe on January 21, 2009, 03:51:09 pm
Joachim grate mod i don't have at anymore in my gallery but after uninstalling the mod i have to delete manualy the created table in phpmyadmin maybe for the next release will be grate if you have the option to remove database tables from the plugin manager too.
Title: Re: "Who is online" plugin (onlinestats)
Post by: François Keller on January 21, 2009, 04:07:14 pm
This plugin is embeded in cpg1.5.* and the cleaning issue has been fixed
Title: Re: "Who is online" plugin (onlinestats)
Post by: SimonH on March 17, 2009, 12:59:30 am
I am confused with something, I have set it up to show users online in the last 3o mins, but i got another member to login and yes i could see him, but then he logged out and i logged in, then it only showed me as being online in the last 30 mins, when it should of shown us both?? any help appreciated
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on March 17, 2009, 10:05:06 am
That's not how the plugin works. When you logout you are no longer online. The timeout is for people who do not logout. They are presumed to be offline after 30 minutes of inactivity. I think there is another mod that does what you want though.
Title: Re: "Who is online" plugin (onlinestats)
Post by: SimonH on March 17, 2009, 07:13:38 pm
Thanks for your swift reply, I dont understand why you have users online in the last 30mins etc.. there then? surely it should still show them even if they log out, providing they are still with the timescale that was setup when it was installed, in my case i set it to 30mins...
Title: Re: "Who is online" plugin (onlinestats)
Post by: Nibbler on March 17, 2009, 08:14:58 pm
I didn't - someone else added that message. I was describing how the code actually works.
Title: Re: "Who is online" plugin (onlinestats)
Post by: hgl on March 29, 2009, 08:40:01 am
Hi Sir

Could you please tell me how to hide the online state when the manager online

I am look forward to receiving your reply soon

Many Thanks
Title: Re: "Who is online" plugin (onlinestats)
Post by: Blain on July 03, 2009, 10:03:23 am
Greetings Nibbler, thanks for the fantastic, appealing plugin here. Well done.

I am having an issue with installing the plugin. I am receiving this error after pressing the install button:

Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/lib/php') in /home/fakirsso/public_html/plugins/onlinestats/codebase.php on line 46

Have you any idea on any suggestions to fix this.

----------

Thank you,
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on July 04, 2009, 12:02:08 am
The error complains about a missing file? Is the file there and accessible? Do as suggested per board rules and post a link to your gallery.
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 13, 2009, 01:43:32 am
Hi,

When i try to install this plugin appear the error msg:

Fatal error: require() [function.require]: Failed opening required './plugins/onlinestats/include/init.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/jcacoweb/public_html/plugins/onlinestats/codebase.php on line 46

Why?

Thks

Antonio
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on July 13, 2009, 08:20:22 am
Because you haven't uploaded all files. Upload/Install as suggested in the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#plugin_manager_upload), second option.
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 13, 2009, 02:28:03 pm
Hello,

Why the script dont show me the last 10 minutes the users have in the web page?
Code: [Select]
$lang_plugin_onlinestats_config = array(
 'config_text'        =>'How long do you want to keep users listed as online for before they are assumed to have gone ?',
 'minute'        =>' Minutes',
 'remove'        =>'Remove the table that was used to store online data ?',
 'yes'                =>'Yes',
 'no'                =>'No',
);
$lang_plugin_onlinestats_date_fmt='%A, %B.%d.%Y at %H:%M';
?>


What is wrong?when the user logout, dont keep in the last users listed as online for before they are assumed to have gone  users !!

Help!!!!!

Thks for the help

Antonio
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 13, 2009, 02:50:37 pm


This is the code i have:

Code: [Select]
function online_page_start()

{

        global $raw_ip, $CONFIG;



        $CONFIG['TABLE_ONLINE'] = $CONFIG['TABLE_PREFIX']."mod_online";



        $user_id = USER_ID;

        $user_name = USER_NAME;



        if (defined('LOGIN_PHP')){

                cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id = 0 AND user_ip = '$raw_ip'");

                return;

        }



        if (defined('LOGOUT_PHP')){

                cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id = $user_id");

                return;

        }



        cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL {$CONFIG['mod_updates_duration']} MINUTE");







        if ($user_id) {

                cpg_db_query("REPLACE INTO {$CONFIG['TABLE_ONLINE']} (user_id, user_name, user_ip, last_action) VALUES ('$user_id', '$user_name', '$raw_ip', NOW())");



        } else{

                $testarray = explode('.',$raw_ip);

                $teststr = $testarray[0] . '.' . $testarray[1];

                $sel = cpg_db_query("SELECT user_ip FROM {$CONFIG['TABLE_ONLINE']} WHERE user_ip LIKE '$teststr%'");

                $res = mysql_fetch_row($sel);

                $result = $res[0];



                if (mysql_num_rows($sel)){

                        cpg_db_query("UPDATE {$CONFIG['TABLE_ONLINE']} SET last_action = NOW() WHERE user_ip = '$result' LIMIT 1");

                } else {

                        cpg_db_query("INSERT INTO {$CONFIG['TABLE_ONLINE']} (user_id, user_name, user_ip, last_action) VALUES ('$user_id', '$user_name', '$raw_ip', NOW())");

                }

Help,

Thks,

Antonio
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 14, 2009, 12:09:43 pm

This is the code i have:

Code: [Select]
function online_page_start()

{

        global $raw_ip, $CONFIG;



        $CONFIG['TABLE_ONLINE'] = $CONFIG['TABLE_PREFIX']."mod_online";



        $user_id = USER_ID;

        $user_name = USER_NAME;



        if (defined('LOGIN_PHP')){

                cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id = 0 AND user_ip = '$raw_ip'");

                return;

        }



        if (defined('LOGOUT_PHP')){

                cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE user_id = $user_id");

                return;

        }



        cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL {$CONFIG['mod_updates_duration']} MINUTE");







        if ($user_id) {

                cpg_db_query("REPLACE INTO {$CONFIG['TABLE_ONLINE']} (user_id, user_name, user_ip, last_action) VALUES ('$user_id', '$user_name', '$raw_ip', NOW())");



        } else{

                $testarray = explode('.',$raw_ip);

                $teststr = $testarray[0] . '.' . $testarray[1];

                $sel = cpg_db_query("SELECT user_ip FROM {$CONFIG['TABLE_ONLINE']} WHERE user_ip LIKE '$teststr%'");

                $res = mysql_fetch_row($sel);

                $result = $res[0];



                if (mysql_num_rows($sel)){

                        cpg_db_query("UPDATE {$CONFIG['TABLE_ONLINE']} SET last_action = NOW() WHERE user_ip = '$result' LIMIT 1");

                } else {

                        cpg_db_query("INSERT INTO {$CONFIG['TABLE_ONLINE']} (user_id, user_name, user_ip, last_action) VALUES ('$user_id', '$user_name', '$raw_ip', NOW())");

                }

Help,

Thks,

Antonio

Any help please,

Antonio
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 14, 2009, 04:48:17 pm
Any sugestions? can be possible , nobody help me  :( :( :( :'(
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on July 14, 2009, 06:27:15 pm
Stop it, will you? Posting four times in a row is not a bright idea. Start a thread of your own on the support board, doing as suggested per board rules (posting a link to your page etc.).
Title: Re: "Who is online" plugin (onlinestats)
Post by: antonio_just on July 14, 2009, 07:19:17 pm
Stop it, will you? Posting four times in a row is not a bright idea. Start a thread of your own on the support board, doing as suggested per board rules (posting a link to your page etc.).

Thks for nothing.

Your reply need to do more fast not before my 4 posts .

Bye,

Antonio
Title: Re: "Who is online" plugin (onlinestats)
Post by: tjiepie on October 01, 2009, 08:10:38 pm
Great plugin

Is there a option for protection the server.

Example:
if we have 50users online, board will close for more members.
(protection high server load and protetion for time outs)



Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on October 02, 2009, 07:31:17 am
Such an option is not built into this plugin, no.
Title: Re: "Who is online" plugin (onlinestats)
Post by: tjiepie on October 02, 2009, 10:03:21 pm
Such an option is not built into this plugin, no.
Is it easy for make that?
Title: Re: "Who is online" plugin (onlinestats)
Post by: Joachim Müller on October 05, 2009, 08:16:20 am
I have no idea if it's easy for you or hard, as this depends on your skills. Find it out by looking at the existing code. But judging from your questions I rather guess it's impossible for you. In fact it's something completely else as what this plugin is designed to do. Tracking your users through the entire site is not trivial.
Instead of worrying about a tool that keeps out the visitors of your site I suggest moving to a more powerfull server that can handle the load. Everything else is crap.
Anyway, your issue should not be discussed further in this thread, as it's completely unrelated. You haven't even done as suggested per board rules (http://forum.coppermine-gallery.net/index.php/topic,55415.0.html), so keep out of this thread. Start a fresh thread of your own inside the support board instead, doing exactly as suggested per board rules if you need more support.
Title: Re: "Who is online" plugin (onlinestats)
Post by: Bash on November 27, 2009, 04:13:12 pm
How would I go about making a tag for this plugin so it can be added anywhere in template.html? Could someone point me in the right direction or pass on the info if they're already done it? Thanks in advance.
Title: Re: "Who is online" plugin (onlinestats)
Post by: durangod on January 02, 2010, 04:32:03 pm
this is my gallery http://www.durangodaves.com/ddfotoup/index.php

i really like this mod thanks, as you can see i condenced it a bit, i do have a few questions,

how do you bring the config for the time back up again after initial install or do you have to manually set the time in the file?

i cant seem to find where the top of the starttable with the words "online today" is set to color, i need to change that color if i could... i changed the other part of the table box but that top part escapes me.

also i would like to move the table box under my scrolling pics so that its part of the category content, i think it would look less intrusive that way..  how do i do that.. i have tried playing around with the cells and rows and such but to no avail..

thanks
Title: Re: "Who is online" plugin (onlinestats)
Post by: Ka5 on July 25, 2010, 03:40:10 pm
I have been trying to upload this plugin to my gallery and it say that it's not the right version but I have check and it's a 1.4.

Please help me I would LOVE to have this on my gallery.

http://lexi-ainsworth.info/gallery/index.php
Title: Re: "Who is online" plugin (onlinestats)
Post by: lordxtina on August 19, 2010, 06:02:02 pm
I love this plugin. But mine displays in one line. How do I put <br> tag? What file should I edit? :) Thanks.
Title: Re: "Who is online" plugin (onlinestats)
Post by: lordxtina on August 19, 2010, 06:15:40 pm
I wish we could edit posts here. lol I already figured it out. :D
Title: Re: "Who is online" plugin (onlinestats)
Post by: torgasm on August 24, 2010, 01:26:03 am
I love this plugin. But mine displays in one line. How do I put <br> tag? What file should I edit? :) Thanks.

I'm having that problem too. What did you do to fix it?
Title: Re: "Who is online" plugin (onlinestats)
Post by: torgasm on August 24, 2010, 04:38:24 pm
I'm having that problem too. What did you do to fix it?

Anyone know how to fix this?
Title: Re: "Who is online" plugin (onlinestats)
Post by: specular on January 27, 2011, 06:38:24 pm
Great plugin, works fine, except for one thing I'd like to change...
Is there an easy way to remove the registered user display shown in bold below?

There are 25134 registered users.  The newest registered user is xxxxxxx.  In total there are 2 visitors online: 2 registered users and 0 guests.  Most users ever online: 5 on 01/27/11 at 11:10.  Registered users who have been online in the past 5 minutes: xxxxxxx, cazzy198.
Title: Re: "Who is online" plugin (onlinestats)
Post by: dreameye on March 29, 2011, 06:50:25 pm
Hi,

i have installed the plugin "who is online Version 1.5". The plugin is seen by unregistered user and i would like to change it, so that nobody else would see the online user,  only registered user.
Could anybody help me for this problem?
Many thanks in advance
best regards

dreameye
Title: Re: "Who is online" plugin (onlinestats)
Post by: cyberdyne2 on November 25, 2011, 01:08:50 am
Is there a way to hide the Admin user from the online stats?
Thank you in advance
Title: Re: "Who is online" plugin (onlinestats)
Post by: lordxtina on January 02, 2012, 09:07:32 am
I'm having that problem too. What did you do to fix it?
Sorry for the late reply.

Define the $LINEBREAK variable in your theme.php :)

Code: [Select]
$LINEBREAK = "<br />;
Title: Re: "Who is online" plugin (onlinestats)
Post by: lordxtina on January 02, 2012, 09:09:45 am
Is there a way to hide the Admin user from the online stats?
Thank you in advance
Open plugins/onlinestats/codebase.php

Comment lines 194 & 195:

Code: [Select]
//printf($lang_plugin_php['onlinestats_most_recent'], '<a href="profile.php?uid='.$newest['user_id'].'">'.$newest['user_name'].'</a>');
//echo '.&nbsp;' . $LINEBREAK;