TBDev Forum
Programming board
Main Page Forum Rules Privacy Policy Members Contact Us
Welcome Guest (Login | Register)
TBDev Forum TBDev.net - Mods & hacks Mod Requests How long Users online?

How long Users online?

2008-11-19 22:36:00
Group: Member
Posts: 9
Topics participated: 5
Topics started: 2
First post: 2007-12-03 21:00:00
Last post: 2008-11-24 15:04:00
Hi, I searched and i can't find any topic/post how to print out user online time in userdetals.
For example, I been online in 1h and get it printed out, Simply as that.

Thx for help.
 
2008-11-20 09:12:00
Group: Member
Posts: 685
Topics participated: 455
Topics started: 29
First post: 2008-03-26 12:40:00
Last post: 2009-01-04 08:22:00
theres currently a last seen in user details .. which tells you the time/date they were last seen and it should tell you how long ago you was online .. is that wat u mean ?
 
2008-11-20 13:08:00
Group: Member
Posts: 9
Topics participated: 5
Topics started: 2
First post: 2007-12-03 21:00:00
Last post: 2008-11-24 15:04:00
no! I know this function, but I think to another function.
I will have to see a new function in my userdetails.php.

For example:
Overall online time of this User: 10 hours, 54 minutes

I thought about, how I can realize this feature. I think "last_access" - (minus) "last_login" is the right way.

I hope some of you can script this feature.
Thank you
 
2008-11-20 15:48:00
Group: Member
Posts: 685
Topics participated: 455
Topics started: 29
First post: 2008-03-26 12:40:00
Last post: 2009-01-04 08:22:00
theres no sure fire way of getting this 100% .. last_login will only update when a user comes on the site and logs in .. So if i login and come back 3 days later and havent cleared my cookies and you havent set cookies to expire i will be able to get on the site without logging in.. i could do this for a long time .. so it could end up on my details as

last login => 03/02/2008
last access = > 23/04/2008

total online time => cant be arsed figuring it out but its too long

therefore your site tells me ive been online for over a month .. when really ive only been on the site 7 times to check my PM's and not spent more than 10 mins in total online ... see what i mean ?

----

what you would have to do is modify your cookies to expire every 24 hours max .. that way every day a user logs in the last login will be updated.. but even then you have the problem with someone signing in at 1:00am .. not returning until 11pm and your site tell them they have been online for the last 22 hours or so.. not only am they gonna be confused you may even get people worried that there accounts have been hijacked and i would expect u'd be getting a hell of a lot of pm's about it (and dont think making a forum post or faq post about it will stop the PM's as people cant even follow the simple rules and search for answer s on tbdev never mind your torrent site)

in conclusion then i cant think of a sure fire way of getting this to work correctly and true. You may be able to insert another SQL datetime field which only updates if the user's last access is over 30 mins so you have a pretty good estimate of how long they have actually been online continuosly for if u catch my drift.. but would it really be neccassary to have such a addon.. i mean ur adding an extra SQL attribute.. atleast another sql query to every page load .. if not two .
 
2008-11-22 20:28:00
Group: Member
Posts: 9
Topics participated: 5
Topics started: 2
First post: 2007-12-03 21:00:00
Last post: 2008-11-24 15:04:00
my English is not very good.
Is that a big problem the script a script like this for the NetVision / TB-Source?

regards
 
2008-11-22 22:25:00
Group: Member
Posts: 685
Topics participated: 455
Topics started: 29
First post: 2008-03-26 12:40:00
Last post: 2009-01-04 08:22:00
we do not support netvision sorry :)
 
2008-11-24 15:04:00
Group: Member
Posts: 9
Topics participated: 5
Topics started: 2
First post: 2007-12-03 21:00:00
Last post: 2008-11-24 15:04:00
yeah i know :)
But can you script this addon for TB?

I found a similar script as I found in this thread in the "BT-Technik"-Board.


But this is not that what I search!
 

Similar threads

Topic Posts Last post
show users avatar-ratio-title-active torrents-UL-DL-moodand seedbonus on the online users list in index.php 40 2008-11-25 12:20:00
Users Online 9 2008-07-16 09:59:00
online users 2 2008-02-21 17:04:00
users online 4 2008-05-28 00:05:00
Forum Users Online 37 2008-11-26 14:08:00