Subj : Javascript Question
To : KF5QEO
From : Digital Man
Date : Fri Jan 17 2014 05:23 pm
Re: Javascript Question
By: KF5QEO to All on Fri Jan 17 2014 04:15 pm
> O.k. I'm wanting to do some customizing of my BBS. I can handle parts of
> it, but my knowledge of Synchronet's mods to javascript isn't the greatest.
> Most of what I know is what I see in various .js files I find. With that
> in mind, I'd like to theme my BBS a bit more. So like I want to modify
> userlist.js to show the user list like a contact log for ham radio. That
> being said, I need two things:
>
> 1. Date and Time the user last called. (Weird the userlist.js doesn't
> seem to have any reference to it, but I thought it showed the
> date/time
> the user logged in.)
> 2. I need to convert the date/time to Universal time and format it in
> yyyy-monthname-dd hh:mm:ss format.
>
> Thinking about it some more, I'll need to know if the connection was
> telnet, http, or any other type...
See
http://synchro.net/docs/jsobjs.html#user.stats
The user.stats.laston_date (number, date and time of last logon in "seconds
sine 1/1/1970) is probably what you want. You should able to display it in
local time or UTC using core JavaScript methods.
And the last connection type/protocol (string) is stored in the user.connection
property.
digital man
Synchronet "Real Fact" #13:
SBBSecho was originally written by Allen Christiansen (King Drafus) in 1994.
Norco, CA WX: 76.8�F, 8.0% humidity, 4 mph W wind, 0.00 inches rain/24hrs
---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net