miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
News miniBB Support Forums / News /  
 

"Who's Online" plug-in released

 
 
Page  Page 3 of 4:  « Previous  1  2  3  4  Next »

Author Team
8-)
#31 | Posted: 9 Mar 2005 13:31 
Maybe yes, but in this case, it should not to reset a "Record" amount. It resets "Record" amount, doesn't it?

Author zorglub
Partaker
#32 | Posted: 9 Mar 2005 15:30 
yup, all to zero like a fist install.

Author Team
8-)
#33 | Posted: 9 Mar 2005 15:44 
zorglub
That's really strange. Algorithm, in general, allow to change "Most users ever online" data only when amount of visitors is LARGER than previous, not smaller. I will try a couple of tests when I have free time soon...

Author zorglub
Partaker
#34 | Posted: 9 Mar 2005 18:41 
could it be ecause I set the time to 24 hours instead of 10' or so ?

Author Team
8-)
#35 | Posted: 10 Mar 2005 10:36 
24 hours?.. Where exactly? Plug-in has no such setting. Do you mean $expireTime?

Author zorglub
Partaker
#36 | Posted: 10 Mar 2005 11:53 
yup...

Author zorglub
Partaker
#37 | Posted: 11 Mar 2005 19:36 
do you think somethink like : ignore_user_abort could solve this problem ?I've found this script :

<?php
#going to update last users counter script since
#aborting a write because a file is locked is not correct.

$counter_file = '/tmp/counter.txt';
clearstatcache();
ignore_user_abort(true); ## prevent refresh from aborting file operations and hosing file
if (file_exists($counter_file)) {
$fh = fopen($counter_file, 'r+');
while(1) {
if (flock($fh, LOCK_EX)) {
#$buffer = chop(fgets($fh, 2));
$buffer = chop(fread($fh, filesize($counter_file)));
$buffer++;
rewind($fh);
fwrite($fh, $buffer);
fflush($fh);
ftruncate($fh, ftell($fh));
flock($fh, LOCK_UN);
break;
}
}
}
else {
$fh = fopen($counter_file, 'w+');
fwrite($fh, "1");
$buffer="1";
}
fclose($fh);

print "Count is $buffer";

?>

Author Team
8-)
#38 | Posted: 14 Mar 2005 10:19 
zorglub
I really don't know about that. You may try to insert this function in the plugin itself and see what will happen.

Author Alexander V. Zinin
Guest
#39 | Posted: 19 Mar 2005 20:47 
IMHO this code should be deleted.
Because, if unregistered users from same network connecting to forum through NAT, information about registred loged users will be deleted for each refresh page of unregistred users.

if($user_id==0){^M
/* Remove registered users after logout by IP */^M
foreach($w_logged_users as $key=>$val) if($val[2]==$thisIp) unset($w_logged_users[$key]
);^M
}^M

Author Team
8-)
#40 | Posted: 21 Mar 2005 10:37 
Alexander V. Zinin
I agree to you, but still I don't see another way how to log users out without editing the index.php file in this case...

Author Vader
Partaker
#41 | Posted: 21 Mar 2005 14:53 
What do you thing about insert this feature to miniBB without addons, but in default it will be switched off ? For switch on, forum administrator will be set some varible in config.

Or in addon README describe how to make modifications in index.php.

--
Alexander V. Zinin AKA Vader

Author zorglub
Partaker
#42 | Posted: 21 Mar 2005 15:33 
And add 'last visit time' in one of the custom fields... Yep, that's the solution :)

Author Team
8-)
#43 | Posted: 21 Mar 2005 15:39 
zorglub
What for?

Vader
We think, no.

Author zorglub
Partaker
#44 | Posted: 21 Mar 2005 15:48 
make it more secure ?!

Author Team
8-)
#45 | Posted: 21 Mar 2005 15:59 
zorglub
Did not understand again :-) What exactly last visit time you are saying about?

Page  Page 3 of 4:  « Previous  1  2  3  4  Next » 
News miniBB Support Forums / News /
 "Who's Online" plug-in released
 Share Topic's Link

Your Reply Click this icon to move up to the quoted message


  ?
Post as a Guest, leaving the Password field blank. You could also enter a Guest name, if it's not taken by a member yet. Sign-in and post at once, or just sign-in, bypassing the message's text.


Before posting, make sure your message is compliant with forum rules; otherwise it could be locked or removed with no explanation.

 

 
 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑