Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 06-24-2006, 07:20 PM
scoles15's Avatar
scoles15 scoles15 is offline
 
Join Date: Aug 2005
Location: Apex, NC
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Modifications to count "visits"

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.
Reply With Quote
  #2  
Old 06-24-2006, 08:09 PM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What are you talking about?
Reply With Quote
  #3  
Old 06-24-2006, 09:40 PM
scoles15's Avatar
scoles15 scoles15 is offline
 
Join Date: Aug 2005
Location: Apex, NC
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rogersnm
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.
Reply With Quote
  #4  
Old 06-25-2006, 06:01 AM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would you like to point out which column in the user table you belive this info to be stored?
Reply With Quote
  #5  
Old 06-25-2006, 11:27 AM
scoles15's Avatar
scoles15 scoles15 is offline
 
Join Date: Aug 2005
Location: Apex, NC
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 06-25-2006, 11:32 AM
rogersnm rogersnm is offline
 
Join Date: Apr 2006
Location: Cyberspace, UK
Posts: 729
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, that should be easy, you just have to find where it updates the lst visit and make it add to the cell.
Reply With Quote
  #7  
Old 06-25-2006, 12:52 PM
scoles15's Avatar
scoles15 scoles15 is offline
 
Join Date: Aug 2005
Location: Apex, NC
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rogersnm
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.
Reply With Quote
  #8  
Old 09-30-2007, 08:52 PM
mistyPotato mistyPotato is offline
 
Join Date: Dec 2006
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:30 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04220 seconds
  • Memory Usage 2,220KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete