Total time online ? - نوشته شده در (1846 Views)
New Member
pitstraight
مطلب: 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 ?<
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Forum Admin
HuwR
مطلب: 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.<
نوشته شده در
New Member
pitstraight
مطلب: 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.<
نوشته شده در
Forum Admin
HuwR
مطلب: 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.<
نوشته شده در
New Member
pitstraight
مطلب: 82
82
That's ok, but is there someone else who can help ?<
نوشته شده در
New Member
pitstraight
مطلب: 82
82
Actually, isn't there a column there already because the time is displayed on the active users page.<
نوشته شده در
Support Moderator
Shaggy
مطلب: 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.”
نوشته شده در
New Member
pitstraight
مطلب: 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.<
نوشته شده در
Support Moderator
Shaggy
مطلب: 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.”
نوشته شده در
New Member
pitstraight
مطلب: 82
82
Is there anyone else out there that can actually HELP with my problem ?<
نوشته شده در
New Member
pitstraight
مطلب: 82
82
Am I being ignored, or is this just too hard for anyone to help me with ?<
شما باید یک متن وارد کنید