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

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

"Who is online" plugin (onlinestats)

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohannM

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

Joachim Müller

Don't double-post nor cross-post! You have already started a separate thread on this issue, and you got a reply to your individual thread. >:(

Mimer

Hi

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

Mimer  8)

kary4ever

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

ladyofthelight

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

ladyofthelight

Just wanted to say thank you... Useful tool.  ;)

Sam

burnedbrass

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/

François Keller

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
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

burnedbrass

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

onuzu

#269
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?

hgl

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

Maik

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

Nibbler

Disable the plugin using phpmyadmin.

aldog

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

ceskobassman

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 &egrave online");
        echo '<tr><td class="tableb">';
        echo ($num_users == 1) ? "C'&egrave 1 utente registrato<br>" : "Ci sono {$num_users} utenti registrati<br>";
        echo "L'ultimo utente registrato &egrave <a href=\"profile.php?uid={$newest_user_id}\">{$newest_user_name}</a><br>";
        echo ($num_online == 1) ? "C'&egrave 1 utente online" : "Ci sono {$num_online} utenti online";
        echo ($num_reg_online == 1) ? " :: 1 Registrato, e " : " :: {$num_reg_online} Registrati, e ";
        echo ($num_guests == 1) ? "1 Ospite<br>" : "{$num_guests} Ospiti<br>";
        echo 'Record di utenti online: ' . $CONFIG['record_online_users'] . " il " . localised_date($CONFIG['record_online_date'], $comment_date_fmt ) . "<br>";
        echo "Registrati e online: {$logged_in_names}</td></tr>";

        endtable();

Vikitty

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)

MadMaxx

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

François Keller

normally the onliestats block is only displaye on the main page
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

MadMaxx

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

MadMaxx

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();
}