Total time online ? - Posted (1847 Views)
New Member
pitstraight
Posts: 82
82
Is there a mod that will add the total users's online time onto their profile ?
I have Active Users installed, could I take the time from that ?<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Admin
HuwR
Posts: 20611
20611
this is a value that is not possible to calculate since the forum or the webserver has no idea whatsoever when you navigate away from the site, so anything you try to record will be wrong.<
Posted
New Member
pitstraight
Posts: 82
82
I know the value won't be perfect, but if I just want to accumulate the times that members accumulate in the Active Users screen how would I do that ?
I have a basic understanding of what I would do, but I don't know how to write it in HTML coding.<
Posted
Forum Admin
HuwR
Posts: 20611
20611
you will need to add quite a bit of code in order to accomplish what you want and you will need to add a column to the active_users table to keep track of the online time, I am not familiar enough with the active_user mod, so can't give you any specifics.<
Posted
New Member
pitstraight
Posts: 82
82
That's ok, but is there someone else who can help ?<
Posted
New Member
pitstraight
Posts: 82
82
Actually, isn't there a column there already because the time is displayed on the active users page.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
It's wouldn't be too difficult to achieve, actually. All you need to do is add a new field to the members table to hold the time and then modify the ActiveUserTracker sub in inc_func_common.asp to pull AU_LOGINTIME from the ACTIVE_USERS table and then use that to calculate and update the time in the members table when deleting inactive users.
This has come up at least once before so a bit of searching should done up more specifics related to the axact changes you'll need to make.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
New Member
pitstraight
Posts: 82
82
Thanks Shaggy, but I searched before I posted and did a lot of reading and didn't come up with anything. I can see that all the pieces are there, I just don't have a clue how to join them all together properly.<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
Can't find it know meself, either, but that's more than likely the insomnia & hayfever hampering my search powers.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
New Member
pitstraight
Posts: 82
82
Is there anyone else out there that can actually HELP with my problem ?<
Posted
New Member
pitstraight
Posts: 82
82
Am I being ignored, or is this just too hard for anyone to help me with ?<
You Must enter a message