Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Extended timeout for whois online without changing cookie timeout Details »»
Extended timeout for whois online without changing cookie timeout
Version: 1.00, by Jakeman Jakeman is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 03-05-2002 Last Update: Never Installs: 14
 
No support by the author.

Extended timeout for whois online without changing cookie timeout - vBulletin 2.2.6 - Jake's second hack. wOOtie!

About: This hack will make your forumhome and whois online pages show all users from the last X amount of time without increasing the actual login time. By using this hack instead of simply changing your cookietimeout setting in your admin cp you can avoid the side effect of increasing the login time which jacks the unread post markers for your users.

Indications: forums needing the appearance of more traffic.

Directions: four small file mods. see attached file.

Demo: my site @ http://www.macsubculture.com/

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 03-06-2002, 05:45 AM
Neo's Avatar
Neo Neo is offline
 
Join Date: Oct 2001
Location: Anywhere
Posts: 1,817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice. I will install it later on. Great Hack
Reply With Quote
  #3  
Old 03-07-2002, 12:26 AM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this also reduce load on the server? we are having so many people on the boards that we have had some occasional blackouts.
Reply With Quote
  #4  
Old 03-07-2002, 12:36 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this should have no effect on server load either way
Reply With Quote
  #5  
Old 03-07-2002, 02:02 AM
nafae's Avatar
nafae nafae is offline
 
Join Date: Nov 2001
Posts: 240
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Jakeman
By using this hack instead of simply changing your cookietimeout setting in your admin cp you can avoid the side effect of increasing the login time which jacks the unread post markers for your users.
Sounds like a great hack, but am curious what this means? I have noticed that the mark as read feature doesn't work particularly well on my board, could this be the culprit?
Reply With Quote
  #6  
Old 03-07-2002, 02:05 AM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks

what i meant was this...

we have our timeout set at 1200. it doesn't show as many users online as i'd like at 1200. but if i raise it, there's too much load on the server. Would this be useful in showing more users online, without having to increase the server load by raising the timeout?

am i making sense? lol
Reply With Quote
  #7  
Old 03-07-2002, 06:12 AM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by lordofgun
thanks

what i meant was this...

we have our timeout set at 1200. it doesn't show as many users online as i'd like at 1200. but if i raise it, there's too much load on the server. Would this be useful in showing more users online, without having to increase the server load by raising the timeout?

am i making sense? lol
hmm, do you have persistant connections enabled? if so, turn them off. (it's a setting in your forum/admin/config.php)

nafae, i know exactly what you are talking about. that problem is caused by a limitation of browser cookies and there is nothing you can do about that under the current system. one way vB could fix that is to directly query the database for post markers instead of using cookies, but this increases the server load. maybe vB has something in the works for version 3.

anyways, this hack simply gives the appearance of more traffic by displaying users from the last hour (or whatever you choose). many people will set their cookie timeout really high to give the appearance of more users, but setting the cookie really high means you are also increasing the login time which jacks with unread post markers... example, a user logs into your forum and then is inactive for 2 hours. since your login cookie is set to 1 hour (for example) then any new posts made within the first hour of inactivity will *not* be marked as unread the next time they login. do you see what i'm saying? this hack allows you to increase the time for the whois online list without touching your login cookie time.

*head explodes*
Reply With Quote
  #8  
Old 03-07-2002, 08:54 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not too familiar with the session code and can't be bothered to look right now, but I think this *will* jack the markers for users that don't use cookies (thus using the sessions table, which is only emptied after one hour instead of 15 minutes).

Like I said I'm not sure, maybe a dev can confirm this.
Reply With Quote
  #9  
Old 03-07-2002, 03:08 PM
lordofgun lordofgun is offline
 
Join Date: Jan 2002
Posts: 285
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks jakeman!

great hack, BTW!
Reply With Quote
  #10  
Old 03-07-2002, 05:17 PM
Jakeman's Avatar
Jakeman Jakeman is offline
 
Join Date: Nov 2001
Posts: 273
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
I'm not too familiar with the session code and can't be bothered to look right now, but I think this *will* jack the markers for users that don't use cookies (thus using the sessions table, which is only emptied after one hour instead of 15 minutes).
i will test this without cookies when i get home from work tonight... i never thought of that. i have had no complaints from my members so far, but they all might be using cookies (myself included). we will see.
Reply With Quote
Reply


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:36 PM.


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.05461 seconds
  • Memory Usage 2,292KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete