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:- Log into your coppermine page as admin
- Go to coppermine's config, expand "General settings", click "Manage plugins" next to "Enable plugins" (make sure that you have set "Enable plugins to "Yes"). Alternatively, you can directly access the plugin manager by entering http://yoursite.tld/your_coppermine_folder/pluginmgr.php into the address bar of your browser
- 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.
- If the plugin has been unzipped properly on your server, the plugin manager should refresh and you should see the plugin listed in the section "Plugins Not installed". Click the install icon (the "i") next to it
- If the plugin has got a configuration screen, go through it and submit your changes. "Onlinestats" does have a configuration screen that prompts for the time users should be displayed as being online before dropping out of the index for inactivity. It is recommended that you keep the default value.
- Most plugins are then ready for use and active. Onlinestats has to be enabled separately, see below.
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
- Fixed the set duration not being taken into account
From 1.2 to 1.6
- Unknown changes, contributors failed to modify readme file
From 1.6 to 1.7
- Updated version number in header
- Re-packaged with language files
- Minor fixes in HTML output for standards compliance
From 1.7 to 1.8
- Improved bridge compatibility
- Added Spanish and Lithuanian language files (user contributions)
- Corrected double application of timezone offset
- Added missing code in uninstall to clean records
- Minor changes to english lang file
Joachim
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)
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:- Added a readme file that explains how to install and set up the plugin
- Renamed the folder from "online" to "onlinestats" for consistency reasons
- Applied the suggested changes by Paver in the thread he refered to above
Updating:If you already have the old plugin installed, unsinstall it first (using the plugin manager) before installing the updated version from above
Joachim
This plugin is very usefull!!! Thanks!
100% workable! ;D
you seriously rock my freakin' socks!
i have this running no problems as of yet.
many thanks!!
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.
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:
$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:
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
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.
@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.
GauGau: You're absolutely correct.
So the only mod necessary is to change this line:
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL 60 MINUTE");
to this line, replacing '60' with the config value:
cpg_db_query("DELETE FROM {$CONFIG['TABLE_ONLINE']} WHERE last_action < NOW() - INTERVAL {$CONFIG['mod_updates_duration']} MINUTE");
I'll note it above.
thanks for looking into this. I updated the first posting on this thread with your fix, changing version count to 1.2
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.
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.
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.
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
@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.)
@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.)
Quote from: 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.)
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 :-[
post more details instead of just rephrasing - a link might be a good start.
works for me . birdged - cool plugin :)
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
if (!USER_ID) cpg_die(ERROR, 'You need to register to access this page', __FILE__, __LINE__);
in profile.php ... ?
Any thoughts on this subject?
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.
Works brilliantly THANKYOU.
working on 2 standalone installs, and 1 bridged with phpbb.
Nice work nibbler.
sorry GauGau. didnt meant to upset you or anyone else. :-[
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
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.
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.
:)
Yup. You can modify plugins/online/codebase.php yourself to add in that link. Look for this line:
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:
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:
echo ($num_users == 1) ? "We have 1 registered user<br>" : "We have {$num_users} registered users<br>";
with this line:
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. :)
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
Ensure the plugins directory is writable. If all else fails just extract the archive and upload the folder via FTP then install.
Quote from: 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.
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
There's a config option in general settings for "time difference from GMT".
The plugin double counts the timezone I think, once when it writes to the db and then again when it reads.
Quote from: 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:
<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/)
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.
Should be able to change
while ($row = mysql_fetch_assoc($result)) {
$logged_in_array[] = "<a href=\"profile.php?uid={$row['user_id']}\">{$row['user_name']}</a>";
}
to
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'];
}
@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:
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:
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).
This is perfect. Its working great. Its exactly what I needed. Thank you very much for the quick response!
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?
Adjust the plugin priority in the plugin manager so that the lightbox plugin is at the end of the list.
oh wow thank ya Nibbler. :o
So simple thanks again it works now perfect. :D
[Fixed lightbox plugin to avoid this issue, see lightbox thread]
does this mod work with Invision Power Board v2.1.4?
or just phpbb
It will work on any gallery.
What do you consider 'a lot of users'?
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.
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.
Great, works very well, thank You all! ;)
EDIT: I post the codebase for Italian language...
I know that Paver has a topic with the Template Error thing, but I cant fix this error:
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.
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.
Update to 1.4.4
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").
is there a way to distinguish between 'registered users' and other users groups like 'administrators'
Quote from: Paver on February 06, 2006, 12:58:41 AM
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??
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
Admin views don't count.
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
Quote from: TranzNDance on March 03, 2006, 11:14:47 PM
Admin views don't count.
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.
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
Quote from: GauGau 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.
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.
Thank you GauGau! I'll keep this in mind.
Quote from: cavallino on March 01, 2006, 08:25:40 PM
Hi Nibbler...
I uninstalled your plugin from the control panel, by clicking on the X of uninstall, I also choose to delete the table that was created originally.
Then I reinstalled it, but now I see everything double! I see a double who is online panel and a double gallery index!
Tried to uninstall the plugin again, and reinstall it but same issue happens!
What should I do to come back to normal ?
Quote from: Paver on March 01, 2006, 10:32:06 PM
Check your "Content of the Main Page" config. setting under "Album List View". It sounds like you now have two mentions of "onlinestats" in there (and "catlist").
Paver...I think there's nothing wrong in that setting, because in that field i have the follwing
breadcrumb/catlist/alblist/random/lastup/onlinestats
so you see... no double entries!
But i still see everything double :(
If i uninstall this plugin then it comes back to normal . I just can't install this ... please any help?
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...
@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)
In codebase.php, this is the code that outputs that line:
echo 'Most users ever online: ' . $CONFIG['record_online_users'] . " on " . localised_date($CONFIG['record_online_date'], $comment_date_fmt ) . "<br>";
As you can see, it uses $comment_date_fmt for the date format in the function call localised_date(), which is defined in lang/english.php or whatever language file you are using. You could modify the format in the language file or you can just change the line above to use a different format you specify. Use the setting in your lang file as a starting point and replace $comment_date_fmt in the line above with a string with the date format you want.
For all the format specifiers & more details: http://www.php.net/manual/en/function.strftime.php (http://www.php.net/manual/en/function.strftime.php).
Ok, I found it and it works now.
Thanks!
Thanks a lot works perfect !!! :)
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?
Enable debug mode and post the mysql error message you get when you replicate the error.
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
Change the line to
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);
Do the same for the other query that reads the phpbb user table.
That fixed it! Thank you for the help.
Just to clarify here is what I changed in the 1.2 version
codebase.php
line 119:
find:
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}");
replace with:
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_USERS']}", $cpg_udb->link_id);
line 130
find:
$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1");
replace with:
$result = cpg_db_query("SELECT $user_id, $user_name FROM {$CONFIG['TABLE_USERS']} ORDER BY $user_id DESC LIMIT 1", $cpg_udb->link_id);
edit:
Found my problem. I've edited my previous post to reflect the accurate change. Thanks again!
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.
The 2 sets of data are not connected. This plugin only knows about users who are using the gallery.
Ah, okay. stupid me :)
Works great! Thanks for all the work you've put into it.
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)
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.
ok i will start a new tread
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.
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.
Quote from: shaelyn on May 01, 2006, 02:23:29 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.
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.
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
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/
Great Work!!! ;)
Thanks!
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:
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?
it works again after
enabling skin safe mode in the IPB conf_global.php
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.
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.
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.
Many developed plugins use a separate language file, just like the Coppermine language files. That's the best way to handle language-compatible text.
Quote from: Mats on May 31, 2006, 04:07:52 PM
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.
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.
You should be able to uninstall the plugin and re-install a modifed version.
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.
Quote from: Paver on June 02, 2006, 04:06:52 PM
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!
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:
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
Ok. There's a block in codebase.php that looks like this:
$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):
$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.
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 "
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
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
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) ;
Yeah, I forgot to check the case where no registered users are online. I corrected the code above. You basically put in a:
if ($online_idset) {
bracketting the part that pulls the user data in.
yeah works great now thanks for all your help ;D ;)
Well... you did more and more corrections... Why someone don't make all the corrections and put the Finished plugin in Internet?
check the name , it says :"Who is online" plugin *experimental*
Good Day, Today,
QuoteWell... 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
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 ?
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?
Nevermind I solved the Problem ;)
Quote from: 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?
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.
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.
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 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.
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).
@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.
Thanks Paver,
I'll take a look at that table and see what I see there ;)
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?
Quote from: cavallino on March 01, 2006, 08:25:40 PM
Hi Nibbler...
I uninstalled your plugin from the control panel, by clicking on the X of uninstall, I also choose to delete the table that was created originally.
Then I reinstalled it, but now I see everything double! I see a double who is online panel and a double gallery index!
Tried to uninstall the plugin again, and reinstall it but same issue happens!
What should I do to come back to normal ?
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
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"
hI;
Quote from: 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.
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
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!***
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?
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)
Italian translation attached, unzip and copy in the plugin lang directory.
Thank's Lontano,
italian.php file added to the pack attached on my previous post.
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
Hi,
added german.php. To show propper grammatics I changed inside the codebase.php some code. The configuration text, is not translated.
Original Code:
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:
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
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)
Updated initial posting with an updated version (v1.7) and modified the text of the posting as well as the subject line.
Quote from: GauGau 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.
Thank's GauGau. I had a mistake with the version number :-\
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
QuoteBUT 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
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
Nevermind. I got it. Thanks for your help. : )
JJ
Great Plugin!
ModificationI 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:
- codebase.php
- german.php
- english.php
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.
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?
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimg297.imageshack.us%2Fimg297%2F3465%2Fstatswy0.th.jpg&hash=232bfa94ae6efc5a3da4c20c3eab8fc3ef7a3c4b) (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.
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" ...
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
UTF8 Chinese Traditional support file
chinese_big5.php
based on english.php of onlinestats 1.7 modified version by m@rk
what do u mean navigate to the plugin zip? what does that mean
QuoteOn 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.
Quote from: Charity on January 19, 2007, 11:32:48 PM
what do u mean navigate to the plugin zip? what does that mean
help?
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.
what if i dont have that file? i searced and nothing
It is attached to the first post on the thread. You must download it.
ok thnx but i tried uploading the zip file but it said There was an error copying the package to the plugins folder. ;)
You need to make the plugins folder writable using your FTP client.
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.
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?
Say no to saving the table data - that's what the option is there for.
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?
unzip the online.zip fil in you plugins folder
QuoteMy 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)
Quote from: Nibbler on January 24, 2007, 01:08:56 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.
Delete the mod_updates_duration setting from the config table using phpmyadmin.
Quote from: 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.
help?
Quote from: Nibbler on January 24, 2007, 07:03:09 PM
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.
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
DELETE FROM prefix_config WHERE name = 'mod_updates_duration' LIMIT 1"
Changing prefix to the actual prefix you are using.
Quote from: 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
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..
Looks like there is missing code in the uninstall function. Change it to this
// 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;
}
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?
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..
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.
That's a known bug, the timezone offset is applied twice. I will update the plugin when I get time.
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?
Quote from: 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.
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é
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 ^^
:) ;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
Look through codebase.php and comment out/delete anything you don't want.
Quote from: Nibbler on February 14, 2007, 10:59:06 PM
Look through codebase.php and comment out/delete anything you don't want.
thanx, I did it ... :) work perfect
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
//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:
starttable("100%", $lang_plugin_onlinestats['name']);
And change it to this:
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 :)
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:
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!
and what would you do exactly ?
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 :)
Use single quotes around this bit instead of double quotes
"<span style="color:red;font-weight:bold;">"
'<span style="color:red;font-weight:bold;">'
I tried so many different quote types and probably had them in the wrong spot.
Thanks! This is working:
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 :)
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 ?
Yes.
Quote from: Nibbler on March 15, 2007, 03:41:29 PM
Yes.
so no way to do with that ? I want to have that one in my gallery page :(
Read through the original thread, I think it has the code changes posted.
i saw that changes code post at page 4 and i did it . No error now . Thanks :)
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
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).
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.
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
have you added onlinestats in config=> Album list view=>The content of the main page ?
In the 1.7 version i need this line
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
QuoteChanged 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
Quote from: Frantz on April 18, 2007, 06:31:25 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
Quote from: Frantz on April 17, 2007, 06:42:37 PM
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....
Quote from: qayyom on April 19, 2007, 07:19:00 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 :
Quotehave you added onlinestats in config=> Album list view=>The content of the main page ?
Just onlinestats.. not onlinestats,2
QuoteJust onlinestats.. not onlinestats,2
Yes and not onlinetoday as on your scrennshot ;) (if your using the onlinestats plugin of course)
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
Quote from: Frantz on April 19, 2007, 06:43:41 PM
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)
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...
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)
Silly me, that was it. Thank you!
I've added the Spanish language! ;D
There's Lithuanian language.
Quote from: 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
now it works very well .............. thanks to all
Quote from: qayyom on May 04, 2007, 03:21:36 PM
now it works very well .............. thanks to all
Would you mind sharing what you did to get it working ? It might benefit others.
Quote from: Hein on May 07, 2007, 07:15:48 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
When I install this plugin, my albums display twice on the main page. See the attachment.
How do I solve this?
What might help is placing this plugin as the first to be loaded into your cpg. Do that via the plugin manager.
Ok, I just made it the top plugin on the list. It still gives me the same problem.
Ideas?
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
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 ^^
is it be possible to change 10 Minutes to 1 day?
Of course - the installer asks you how long you want the duration to be.
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?
You need to install the plugin. It won't work otherwise.
sorry for that question, but is there any alternative that the plugin is only shown at the frontpage ??
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:
$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?
Wrong manual ;)
php.net/strftime (http://php.net/strftime)
Quote from: Nibbler on July 11, 2007, 12:00:13 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.... ???
No reason to feel silly; you are in the 1% of people who actually bother to consult a manual before posting. :)
Quote from: 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. :)
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.... ???
Edit that in your language file (eg. lang/english.php)
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Quote from: Nibbler on July 11, 2007, 12:17:14 AM
Edit that in your language file (eg. lang/english.php)
// Day of weeks and months
$lang_day_of_week = array('Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat');
Yes!! Thanks so much :):D
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.
You can correct it in the lang/english.php file from your plugin
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
Enable debug mode and post the actual mysql error message you get when you replicate the error.
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)
Plugin updated to 1.8 - should fix this issue.
Works like a champ, thanks Nib.
If I may ask, what did you change to fix it?
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.
Ok, thanks Nib.
Hello, This plugin sounds perfect. Only problem is i get a fatal error when i try to install it through the plugin manager.
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
^^^^I got the same error.^^^^^
I didn't.
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?
There is. Maybe it's not getting extracted properly. Extract the plugin locally and then upload and install it.
That did it, thanks, but it is saying the most users where online in 1970
It ok , its fixed. I think it just needed a refresh
Yes, this solved the issue. Thank-you
Tim
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
°¿°
(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:
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
°¿°
I got error...
when I click install . it shows:
QuoteFatal 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
Quote from: cyberboy on August 16, 2007, 05:49:35 AM
I got error...
when I click install . it shows:
how can i do?? thxx
solved... ;D
Quote from: cyberboy on August 16, 2007, 05:58:07 AM
solved... ;D
Great! Why not share it with us all what your solution was. Others might benefit from it. ;)
Quote from: Hein on August 16, 2007, 07:30:09 AM
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 :'(
Ok. This is line 46. What am i missing?
function online_configure()
Quote from: bluedevil on August 17, 2007, 07:55:09 PM
Ok. This is line 46. What am i missing?
function online_configure()
bump
Quote from: Horizon on June 12, 2007, 04:13:15 PM
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:
Quote from: bluedevil on August 17, 2007, 07:55:09 PM
Ok. This is line 46. What am i missing?
function online_configure()
try to reupload all the plugin files on your server
tried having a go myself.... I edited codebase.php:
Line 160:
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:
<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 :)
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: ;)
modify the date format in the plugin lang file (italian.php for you)
$lang_plugin_onlinestats_date_fmt='%A, %B.%d.%Y at %H:%M';
wow.. it was very very simple.. and i was very very down ;D
Thanksss a lot
Quote from: cyberboy on August 16, 2007, 05:49:35 AM
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...
Quote from: lifter on August 28, 2007, 08:11:26 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 ?
QuoteFrantz, 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.
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
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 :)
if somebody needs this is Polish to Onlinestats 1.8
Best regards
Norbert
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
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
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. >:(
Hi
I've translated the language file for "Who is online" 1.8 to danish.
Mimer 8)
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.
Quote from: 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.
Thansk, I had actually the same problem - Solved with your tip.
Sam
Just wanted to say thank you... Useful tool. ;)
Sam
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/
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
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
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?
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
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,
QuoteWhile 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
Disable the plugin using phpmyadmin.
hey squad, I had the same problem as you, I searched the forum and found this post
Quote from: 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.
mine works fine after uploading the onlinestats folder via ftp.
make sure you add "/onlinestats" in
- config
album list view
The content of the main page
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
starttable("100%", "Chi è online");
echo '<tr><td class="tableb">';
echo ($num_users == 1) ? "C'è 1 utente registrato<br>" : "Ci sono {$num_users} utenti registrati<br>";
echo "L'ultimo utente registrato è <a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
echo ($num_online == 1) ? "C'è 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();
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)
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
normally the onliestats block is only displaye on the main page
Quote from: François Keller on June 26, 2008, 01:11:24 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
if ($cat == 0) {
would probably work but i'm new at php so i don't know where to put it.
thanks
ok found it
in plugins/onlinestats/codebase.php
changed code starting line 175 to line 185
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:
$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();
}
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
Quote from: 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
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
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.
Quote from: Joachim Müller on January 16, 2006, 02:34:00 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
Quote from: 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
Solved, I deleted the plugin and reinstalled it.
Solved :)
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.
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?
Nothing. You installed the sample plugin. Uninstall it.
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?
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' ;)
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*
When you click in this forum 'Reply' a beatiful alert shows up, where clearly says:
QuotePlease 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)
Quote from: xfever on November 26, 2008, 08:40:44 PM
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.......) :(
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.
ok, sorry guys :'(
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
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.
Yes that was the problem. Totally solved now. Thanks very much
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?
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.
This plugin is embeded in cpg1.5.* and the cleaning issue has been fixed
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
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.
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...
I didn't - someone else added that message. I was describing how the code actually works.
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
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,
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.
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
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.
Hello,
Why the script dont show me the last 10 minutes the users have in the web page?
$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
This is the code i have:
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
Quote from: antonio_just on July 13, 2009, 02:50:37 PM
This is the code i have:
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
Any sugestions? can be possible , nobody help me :( :( :( :'(
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.).
Quote from: 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.).
Thks for nothing.
Your reply need to do more fast not before my 4 posts .
Bye,
Antonio
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)
Such an option is not built into this plugin, no.
Quote from: Joachim Müller on October 02, 2009, 07:31:17 AM
Such an option is not built into this plugin, no.
Is it easy for make that?
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.
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.
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
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
I love this plugin. But mine displays in one line. How do I put <br> tag? What file should I edit? :) Thanks.
I wish we could edit posts here. lol I already figured it out. :D
Quote from: 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.
I'm having that problem too. What did you do to fix it?
Quote from: torgasm on August 24, 2010, 01:26:03 AM
I'm having that problem too. What did you do to fix it?
Anyone know how to fix this?
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.
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
Is there a way to hide the Admin user from the online stats?
Thank you in advance
Quote from: torgasm on August 24, 2010, 01:26:03 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 :)
$LINEBREAK = "<br />;
Quote from: 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
Open plugins/onlinestats/codebase.php
Comment lines 194 & 195:
//printf($lang_plugin_php['onlinestats_most_recent'], '<a href="profile.php?uid='.$newest['user_id'].'">'.$newest['user_name'].'</a>');
//echo '. ' . $LINEBREAK;
Hello,
there is any new version for coppermine 1.6?
thanks yo u
Quote from: byloom on August 07, 2019, 08:31:36 AM
there is any new version for coppermine 1.6?
https://github.com/coppermine-gallery/cpg1.6.x-plugins
thanks