15 years on The Web
miniBB ® miniBB®
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
News & Announcements miniBB Support Forums / News & Announcements /   

"Who's Online" plug-in released

Page  Page 3 of 4:  « Previous  1  2  3  4  Next »  
Author Team
#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
#32 | Posted: 9 Mar 2005 15:30 
yup, all to zero like a fist install.

Author Team
#33 | Posted: 9 Mar 2005 15:44 
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
#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
#35 | Posted: 10 Mar 2005 10:36 
24 hours?.. Where exactly? Plug-in has no such setting. Do you mean $expireTime?

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

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

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

$counter_file = '/tmp/counter.txt';
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)));
fwrite($fh, $buffer);
ftruncate($fh, ftell($fh));
flock($fh, LOCK_UN);
else {
$fh = fopen($counter_file, 'w+');
fwrite($fh, "1");

print "Count is $buffer";


there : http://fr3.php.net/manual/fr/function.fopen.php

Author Team
#38 | Posted: 14 Mar 2005 10:19 
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
#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.

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

Author Team
#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
#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
#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
#43 | Posted: 21 Mar 2005 15:39 
What for?

We think, no.

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

Author Team
#45 | Posted: 21 Mar 2005 15:59 
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 & Announcements miniBB Support Forums / News & Announcements / "Who's Online" plug-in released Top

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

 Short link for this topic:

You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.

Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
Try the Captcha add-on: protect your miniBB-forums from the automated spam and flood.
Captcha Addon for miniBB