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
on/off line as FB
Collapse
X
-
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!
Comment
-
I haven't even understand yet, what he/she wants...mysterio.al - programming is a functional art
Comment
-
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 lmaoVisit: 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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
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
Comment
-
lol,
Yeah but i dont code for lavalairVisit: 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...
_______
Info & Tips
php.net
w3schools.com
Comment
-
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-...le-users-1803/
Comment
Comment