If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
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
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.
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...
_______
Info & Tips
php.net
w3schools.com
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.
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...
_______
Info & Tips
php.net
w3schools.com
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
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
Comment