Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Session Auto-Refresh (if user has not close the browser: show as online!) Details »
Session Auto-Refresh (if user has not close the browser: show as online!)
Mod Version: 1.0, by Scandal (Coder/Designer) Scandal is offline
Developer Last Online: Oct 2019 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (4 votes - 5.00 average) Installs: 16
Released: 26 Oct 2014 Last Update: Never Downloads: 40
Not Supported Template Edits  

A template modification for session auto-refresh!
What does this mod do?
By default, vbulletin refreshes the session only on a page refresh - move to new page by the user. With this, when a user has not close the browser, it continuous display as ONLINE, on the page the browser is.

Copy and paste the following code at the end of your headinclude template and you're ready!

On the *zip package below you can find also the code for vB3 version.

Credits: to madness85 for him idea and the donation for creating this hack.

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 26 Oct 2014, 13:56
Justinphx Justinphx is offline
 
Join Date: Jan 2012
Looks good. I just added the script. Thanks.
Reply With Quote
  #3  
Old 01 Nov 2014, 21:49
KHALIK KHALIK is offline
 
Join Date: May 2005
Installed.


EDIT.

It doesn't seem to be working



Last edited by KHALIK; 01 Nov 2014 at 22:11.
Reply With Quote
  #4  
Old 16 Nov 2014, 13:29
ahobilam's Avatar
ahobilam ahobilam is offline
 
Join Date: Aug 2011
Real name: NVS
How to conform as it is working?!
Reply With Quote
  #5  
Old 27 Nov 2014, 21:50
tme_power tme_power is offline
 
Join Date: Sep 2006
It still stay the same for me.
Reply With Quote
  #6  
Old 27 Nov 2014, 22:07
CAG CheechDogg's Avatar
CAG CheechDogg CAG CheechDogg is offline
 
Join Date: Feb 2012
I would use this instead and just wrap it around the same conditional:

Change the minutes and seconds highlighted in red to your choice....


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #7  
Old 29 Dec 2014, 22:06
zorcocuq zorcocuq is offline
 
Join Date: Apr 2011
Real name: Sinan
Thanks Scandal. Looks good.
__________________
webmaster sitesi
Reply With Quote
  #8  
Old 09 Jan 2015, 20:43
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Originally Posted by CAG CheechDogg View Post
I would use this instead and just wrap it around the same conditional:

Change the minutes and seconds highlighted in red to your choice....


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.
This works very well. However the refresh time should be a little high, I have mine set to 15 minutes. This is because if someone is posting a reply or starting a new thread, if the refresh time is very low, the page will be refreshing when the user is trying post, and if the page is refreshed before the post is finished, the user's post will be cleared. Now i have my vB settings to save a draft of the user post before the refresh, so the user just has to click "Restore Auto-Saved Content" at the bottom of the Input Area. I don't know if that is a default setting or not, im not sure. But if its not, you could see how that could become a problem if the refresh time was really low.
__________________
TheTechGenius.Net Official IRC Network (ONLINE)
Host: irc.thetechgenius.net
Port: 6667
TTG IRC Web Client - http://thetechgenius.net/irc.html
Reply With Quote
  #9  
Old 13 Jan 2015, 18:08
madness85 madness85 is offline
 
Join Date: Jun 2012
you must have your Session Timeout higher than in the code above for it to work {vb:raw vboptions.cookietimeout} * 1000); mine is set to 1800

@CAG CheechDogg nice script but that actually refreshes the page
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 20:32.

Layout Options | Width: Wide Color: