![]() |
Time Since Forum Leaders Offline
Would it be possible to have a hack where it displays how long its been since the forum leaders have been offline? And if they are online, it would say online! For example, if the administrator had been offline for 120 minutes. It would display it as 2 hours, but if the admin had been offline for 45 minutes, it would display it for simply 45 minutes. Same thing for days, if the minutes were however there is in a day, it would say 1 day.. So lets just go into detail here.
Lets say the admin had been offline for 31234 minutes.. For arguments sake, lets say thats equivelent to 2days, 3 hours, 12 minutes. Is this implementable? Or would it involve major hacking?? |
Not really. It could be done fairly easy. If I add a new row and use some timestamp.... so
they go offline timestamp starts middle using time stamp, you calculate how long they have been offline, from time the first timestamp logged they come online timestamp ends .... something like that.... |
sooo.. Does this mean someones working on it :)
|
Sure does. Give me a few though.
|
kewl, but if a leader quit the forum, he had to "Log Out", or it enough, only to quit thewindow of the explorer?
|
it works either way.
|
thats great, do you know, when you finished this hack?
|
Give me a day or so to get something together.. I have other projects aswell.
|
Why would you use a new field for cyring out loud?!
|
I have no clue... I have to look at the db first and see what I can go Mr.ProMan :p
|
yeah, one day iss great, havephun :)
|
/me is confused about adding new fields since you can simply reference lastvisit to figure how long it has been since someone has been online. It will be exact if the person logged out and it will be TIMENOW - lastvisit - cookietimeout if they used cookies.
|
Thats true, but I wasnt thinking about that...I was just thinking about how it would look in my head if I was coding it without the use of vb.
|
OK... I will have something soon.
|
How soon? :)
|
I wouldn't mind this hack either. ;)
|
Deviantart inspired? :) This should be a piece of cake, I believe I've got a function sitting around to return a formatted difference between 2 times. I'll see if I can dig it up. Sorry if I'm stepping on your toes, Neo :)
Edit: just realized how old this thread is, but I'll still finish the hack anyway, could be useful to someone :) |
PHP Code:
PHP Code:
|
All times are GMT. The time now is 12:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|