vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=315057

Session Auto-Refresh (if user has not close the browser: show as online!)
by Scandal
26 Oct 2014 12:04

1 Attachment(s)
A template modification for session auto-refresh! :up:
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.


Justinphx 26 Oct 2014 14:56

Looks good. I just added the script. Thanks.

KHALIK 01 Nov 2014 22:49

Installed.


EDIT.

It doesn't seem to be working


:(

ahobilam 16 Nov 2014 14:29

How to conform as it is working?!

tme_power 27 Nov 2014 22:50

It still stay the same for me.

CAG CheechDogg 27 Nov 2014 23:07

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.


zorcocuq 29 Dec 2014 23:06

Thanks Scandal. Looks good.

thetechgenius 09 Jan 2015 21:43

Quote:

Originally Posted by CAG CheechDogg (Post 2524551)
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.

madness85 13 Jan 2015 19:08

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 :(


All times are GMT. The time now is 01:06.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.