Author |
Topic |
pitstraight
New Member
Australia
82 Posts |
Posted - 23 June 2007 : 01:46:44
|
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 ?< |
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 23 June 2007 : 04:06:16
|
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.< |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 23 June 2007 : 04:23:01
|
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.< |
|
|
HuwR
Forum Admin
United Kingdom
20584 Posts |
Posted - 23 June 2007 : 05:38:13
|
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.< |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 23 June 2007 : 05:52:02
|
That's ok, but is there someone else who can help ?< |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 23 June 2007 : 05:55:14
|
Actually, isn't there a column there already because the time is displayed on the active users page.< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 25 June 2007 : 04:51:04
|
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.” |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 25 June 2007 : 19:35:12
|
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.< |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 26 June 2007 : 04:58:40
|
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.” |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 30 June 2007 : 00:52:06
|
Is there anyone else out there that can actually HELP with my problem ?< |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 01 July 2007 : 18:07:03
|
Am I being ignored, or is this just too hard for anyone to help me with ?< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 01 July 2007 : 18:25:37
|
No one is ignored, I think. It may just be that people do not have that much time to think about this, among the members who do know enough about the way the current code works to help you with it. Not all mod requests get answered... many do, some don't.< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
pitstraight
New Member
Australia
82 Posts |
Posted - 03 July 2007 : 01:26:07
|
OK, how long should I wait then ? In 10 days I've had 2 people respond. HuwR couldn't really help, Shaggy seems to know how to do it but neither of us can find anything by searching. This place is pretty active, but there is still a few threads which get ignored, dropped, whatever.
I've said before that I don't know how to write all the html that I need to know to get it to work, or I would have already done it. I've added a few mods (I can follow instructions), and I can see that it is possible but I haven't hte foggiest clue where to start with the code.< |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 03 July 2007 : 04:12:57
|
I can't say that you should wait two or three days and you will get a reply. Maybe you won't get any. This is a voluntary support forum, people post about the issues they feel comfortable with, they like the most, whatever... I for one, do no post much about mods, cause I really don't like much to do it. On a voluntary system, likely with not much of free time, any help is welcome, but no one is forced to address all issues.
I understand your point of view, you have a need and you seem to get no replies... I guess this matter is not that popular among our regulars... I know this does not help much, but it's just to let you know that you're not ignored...< |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
tribaliztic
Senior Member
Sweden
1532 Posts |
Posted - 24 July 2007 : 14:58:54
|
I did ask for this earlier, don't remember what replies I got but not anything that helped me enough to make the changes myself =) Now I have more knowledge and it shouldn't be that hard to do I think. It's just the time issue... =) < |
/Tribaliztic - www.gotlandrace.se -
|
|
|
PPSSWeb
Junior Member
312 Posts |
Posted - 24 July 2007 : 15:21:59
|
Where did you want this displayed in the profile?
I would think you should be able to use the same calcualtion used on the active users page for this.
abs(DateDiff("n",StrToDate(rsAM("AU_LOGINTIME")),strForumTimeAdjust))
In the profile page (page name depends on where you want it displayed), you would have to query the active users table for the AU_LOGINTIME value then put this value and the appropriate formatting.< |
|
|
Topic |
|