PDA

View Full Version : Modifications to count "visits"


scoles15
06-24-2006, 07:20 PM
I've been searching to find the places where a visit starts and visit ends. It seems to me that there should be one place for each. There is mod I want to right, But it is not clear to me which modules or better yet which hooks I would use.

Thanks in advance for any help.

rogersnm
06-24-2006, 08:09 PM
What are you talking about?

scoles15
06-24-2006, 09:40 PM
What are you talking about?
Vbulltion keeps track of last activity and last visit in the user table. I want to be able to count the visits in addition as to when the last vist ended.

rogersnm
06-25-2006, 06:01 AM
Would you like to point out which column in the user table you belive this info to be stored?

scoles15
06-25-2006, 11:27 AM
That's the point, the information is NOT kept. There is lastactivity and lastvisit, but not the count that I want. So I have to either modifiy the code to keep the counts in table or find the right hook to code a plugin to do it.

rogersnm
06-25-2006, 11:32 AM
Yeah, that should be easy, you just have to find where it updates the lst visit and make it add to the cell.

scoles15
06-25-2006, 12:52 PM
Yeah, that should be easy, you just have to find where it updates the lst visit and make it add to the cell.
Roger, I hope this doesn't across as rude, but that's how I intended to start the request. I already figured that out. But $userinfo('lastvisit') is updated in many places. From what I can tell, they are set in many places for a variety of "what if" reasons. There are only two logical places that count for my purposes, when the user logs out and when the timeout ocurrs. becuase those are the only two logical places the "visit" ends. I don't really understand where the timeout is detected. So Iwas hoping someone can lead me in the right direction because, I would rather use a hook. Beuase the code as I read it is a bit convoluted and I'm not sure I am looking in the correct Place.

mistyPotato
09-30-2007, 08:52 PM
It is now a year+ since your post and I still see no activity on this "Very Relevant" and useful request.

Has anyone come up with a hack to do this?

Thanks