Montego Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic
Author Message
Divvy
Newbie
Newbie



Joined: Dec 20, 2007
Posts: 5

PostPosted: Sun Jan 06, 2008 8:42 am Reply with quote

Hi guys,
I have a long list with members online. And I notice that after they leave the site, their nicks keep appearing in the list.
How can I reduce that time? For example, appear only based on users active over the past 15 minutes.

Heres my block code:
http://casinosonline.com.sapo.pt/block.txt

Thanks Smile
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Jan 06, 2008 11:33 am Reply with quote

Well, I am not 100% sure, so you will need to test this, but open up mainfile.php and find function online().

=== FIND CODE ===

$past = time()-3600;

===

Modify the 3600 to a lower number. I believe this is in seconds, so 3600 is one hour. If you want it to be 15 minutes, then it should be 900.

Be sure to test, test, test! Wink

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Divvy
Newbie
Newbie



Joined: Dec 20, 2007
Posts: 5

PostPosted: Sun Jan 06, 2008 12:57 pm Reply with quote

It works 100%, thank you Very Happy
 
View user's profile Send private message
montego
Site Admin/Owner
Site Admin/Owner



Joined: Feb 12, 2005
Posts: 1399

PostPosted: Sun Jan 06, 2008 4:35 pm Reply with quote

Excellent. Thanks for letting me know the outcome.
Regards,
montego

_________________
“To err is human, but when the eraser wears out ahead of the pencil, you’re overdoing it.”
-- Josh Jenkins 
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 4 Hours
 
Forums ©
linear-bunch
linear-bunch
linear-bunch
linear-bunch