on/off line as FB

Started on the old forum in January 2011 · view the original in the archive · old links redirect here

15 replies · 930 views · started 15 years ago · 1 min read

10 participants
LadyEnigma Developer · 71 posts #1

Hello everyone, I have a request, I'd like to add an option in my community (lavalair) to get on line or off line like in facebook, thanks to whoever helps me 🙂

....silence please....

LadyEnigma Developer · 71 posts #2

50 view nobody reply 🙁

....silence please....

Mysterio Lead · 630 posts #4

Online or offline where? In/off of what?

mysterio.al - programming is a functional art

frostymarvelous Senior · 266 posts #5

You can do it by logging users in a db table when they log in. Update the users time entry in the table with each page load. Delete entries which have been inactive after a given time period. You can then check the table to see if a user is online or not.

Perfection comes at a cost

I accept liberty!

Mysterio Lead · 630 posts #7

I haven't even understand yet, what he/she wants...

mysterio.al - programming is a functional art

subzero Super moderator Fellow · 3,954 posts #8

Like this

idle if user is online but not moving. On means they are moving. Off means they not online or not being online for a long time

But i cant be brothered to build this cuz he/she wants it for lavalair lmao

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

Mysterio Lead · 630 posts #9

Then he/she need to have two times, current time last move time, and do something like this: if current_time - lastmove_time = 0-2 minutes then is online. If 2-15 then is idle. If > 15 then is offline.

You can code it Sub 😉

mysterio.al - programming is a functional art

subzero Super moderator Fellow · 3,954 posts #10

lol,

Yeah but i dont code for lavalair

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

frostymarvelous Senior · 266 posts #11

As slone said, its quite easy. But hey, no one wants to go near lavalair.

Perfection comes at a cost

I accept liberty!

amylee Principal · 1,092 posts #13

love it how many people now say lava script is **** but i know that large percentage of the users here who have sites relied on that script at one point to run thier sites at the end of the day so what if its **** but lava script has done more for everyone here then any other script that has been used, raped and forgotten about

and as for the question all you need to do is search this forum http://coding-talk.com/f14/lavalair-invisible-users-1803/

ori Lead · 512 posts #14

this is so easy to make most sites have almost same code for online or offline as they wouldnt work without this lol all you have to do is allow for idle so say < 5mins but greater then 0 seconds is online then > 5mins but less then 10mins is idle anything greater then 10mins is offilne

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close