Advanced search  

News:

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

Pages: 1 ... 12 13 14 15 [16] 17   Go Down

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

0 Members and 1 Guest are viewing this topic.

SimonH

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: "Who is online" plugin (onlinestats)
« Reply #300 on: March 17, 2009, 12:59:30 am »

I am confused with something, I have set it up to show users online in the last 3o mins, but i got another member to login and yes i could see him, but then he logged out and i logged in, then it only showed me as being online in the last 30 mins, when it should of shown us both?? any help appreciated
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #301 on: March 17, 2009, 10:05:06 am »

That's not how the plugin works. When you logout you are no longer online. The timeout is for people who do not logout. They are presumed to be offline after 30 minutes of inactivity. I think there is another mod that does what you want though.
Logged

SimonH

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: "Who is online" plugin (onlinestats)
« Reply #302 on: March 17, 2009, 07:13:38 pm »

Thanks for your swift reply, I dont understand why you have users online in the last 30mins etc.. there then? surely it should still show them even if they log out, providing they are still with the timescale that was setup when it was installed, in my case i set it to 30mins...
Logged

Nibbler

  • Guest
Re: "Who is online" plugin (onlinestats)
« Reply #303 on: March 17, 2009, 08:14:58 pm »

I didn't - someone else added that message. I was describing how the code actually works.
Logged

hgl

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: "Who is online" plugin (onlinestats)
« Reply #304 on: March 29, 2009, 08:40:01 am »

Hi Sir

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

I am look forward to receiving your reply soon

Many Thanks
Logged

Blain

  • Coppermine newbie
  • Offline Offline
  • Posts: 17
Re: "Who is online" plugin (onlinestats)
« Reply #305 on: July 03, 2009, 10:03:23 am »

Greetings Nibbler, thanks for the fantastic, appealing plugin here. Well done.

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

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

Have you any idea on any suggestions to fix this.

----------

Thank you,
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #306 on: July 04, 2009, 12:02:08 am »

The error complains about a missing file? Is the file there and accessible? Do as suggested per board rules and post a link to your gallery.
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #307 on: July 13, 2009, 01:43:32 am »

Hi,

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

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

Why?

Thks

Antonio
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #308 on: July 13, 2009, 08:20:22 am »

Because you haven't uploaded all files. Upload/Install as suggested in the docs, second option.
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #309 on: July 13, 2009, 02:28:03 pm »

Hello,

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


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

Help!!!!!

Thks for the help

Antonio
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #310 on: July 13, 2009, 02:50:37 pm »



This is the code i have:

Code: [Select]
function online_page_start()

{

        global $raw_ip, $CONFIG;



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



        $user_id = USER_ID;

        $user_name = USER_NAME;



        if (defined('LOGIN_PHP')){

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

                return;

        }



        if (defined('LOGOUT_PHP')){

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

                return;

        }



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







        if ($user_id) {

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



        } else{

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

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

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

                $res = mysql_fetch_row($sel);

                $result = $res[0];



                if (mysql_num_rows($sel)){

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

                } else {

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

                }

Help,

Thks,

Antonio
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #311 on: July 14, 2009, 12:09:43 pm »


This is the code i have:

Code: [Select]
function online_page_start()

{

        global $raw_ip, $CONFIG;



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



        $user_id = USER_ID;

        $user_name = USER_NAME;



        if (defined('LOGIN_PHP')){

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

                return;

        }



        if (defined('LOGOUT_PHP')){

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

                return;

        }



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







        if ($user_id) {

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



        } else{

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

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

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

                $res = mysql_fetch_row($sel);

                $result = $res[0];



                if (mysql_num_rows($sel)){

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

                } else {

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

                }

Help,

Thks,

Antonio

Any help please,

Antonio
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #312 on: July 14, 2009, 04:48:17 pm »

Any sugestions? can be possible , nobody help me  :( :( :( :'(
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #313 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.).
Logged

antonio_just

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: "Who is online" plugin (onlinestats)
« Reply #314 on: July 14, 2009, 07:19:17 pm »

Stop it, will you? Posting four times in a row is not a bright idea. Start a thread of your own on the support board, doing as suggested per board rules (posting a link to your page etc.).

Thks for nothing.

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

Bye,

Antonio
Logged

tjiepie

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: "Who is online" plugin (onlinestats)
« Reply #315 on: October 01, 2009, 08:10:38 pm »

Great plugin

Is there a option for protection the server.

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



Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #316 on: October 02, 2009, 07:31:17 am »

Such an option is not built into this plugin, no.
Logged

tjiepie

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: "Who is online" plugin (onlinestats)
« Reply #317 on: October 02, 2009, 10:03:21 pm »

Such an option is not built into this plugin, no.
Is it easy for make that?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: "Who is online" plugin (onlinestats)
« Reply #318 on: October 05, 2009, 08:16:20 am »

I have no idea if it's easy for you or hard, as this depends on your skills. Find it out by looking at the existing code. But judging from your questions I rather guess it's impossible for you. In fact it's something completely else as what this plugin is designed to do. Tracking your users through the entire site is not trivial.
Instead of worrying about a tool that keeps out the visitors of your site I suggest moving to a more powerfull server that can handle the load. Everything else is crap.
Anyway, your issue should not be discussed further in this thread, as it's completely unrelated. You haven't even done as suggested per board rules, 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.
Logged

Bash

  • Coppermine newbie
  • Offline Offline
  • Posts: 18
Re: "Who is online" plugin (onlinestats)
« Reply #319 on: November 27, 2009, 04:13:12 pm »

How would I go about making a tag for this plugin so it can be added anywhere in template.html? Could someone point me in the right direction or pass on the info if they're already done it? Thanks in advance.
Logged
Pages: 1 ... 12 13 14 15 [16] 17   Go Up
 

Page created in 0.023 seconds with 20 queries.