Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Total time online ?
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

pitstraight
New Member

Australia
82 Posts

Posted - 23 June 2007 :  01:46:44  Show Profile  Reply with Quote
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  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 23 June 2007 :  04:23:01  Show Profile  Reply with Quote
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.<
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 23 June 2007 :  05:38:13  Show Profile  Visit HuwR's Homepage  Reply with Quote
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.<
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 23 June 2007 :  05:52:02  Show Profile  Reply with Quote
That's ok, but is there someone else who can help ?<
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 23 June 2007 :  05:55:14  Show Profile  Reply with Quote
Actually, isn't there a column there already because the time is displayed on the active users page.<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 June 2007 :  04:51:04  Show Profile  Reply with Quote
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.”
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 25 June 2007 :  19:35:12  Show Profile  Reply with Quote
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.<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 26 June 2007 :  04:58:40  Show Profile  Reply with Quote
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.”
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 30 June 2007 :  00:52:06  Show Profile  Reply with Quote
Is there anyone else out there that can actually HELP with my problem ?<
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 01 July 2007 :  18:07:03  Show Profile  Reply with Quote
Am I being ignored, or is this just too hard for anyone to help me with ?<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 01 July 2007 :  18:25:37  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
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
Go to Top of Page

pitstraight
New Member

Australia
82 Posts

Posted - 03 July 2007 :  01:26:07  Show Profile  Reply with Quote
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.<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 03 July 2007 :  04:12:57  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
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
Go to Top of Page

tribaliztic
Senior Member

Sweden
1532 Posts

Posted - 24 July 2007 :  14:58:54  Show Profile  Visit tribaliztic's Homepage  Send tribaliztic an ICQ Message  Reply with Quote
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 -
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 24 July 2007 :  15:21:59  Show Profile  Reply with Quote
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.<
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07