The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#3
|
|||
|
|||
![]()
I am not sure I am 100% correct, but I did this for a script I have and which I didn't want to update the lastactivity or the lastvisit:
In sessions.php find: Code:
if (!SESSION_BYPASS) { if (TIMENOW - $bbuserinfo['lastactivity'] > $vboptions['cookietimeout']) { // see if session has 'expired' and if new post indicators need resetting $DB_site->shutdown_query(" UPDATE " . TABLE_PREFIX . "user SET lastvisit = lastactivity, lastactivity = " . TIMENOW . " WHERE userid = $bbuserinfo[userid] ", 'lastvisit'); $bbuserinfo['lastvisit'] = $bbuserinfo['lastactivity']; } else { Code:
if (!SESSION_BYPASS) { if (TIMENOW - $bbuserinfo['lastactivity'] > $vboptions['cookietimeout']) { // see if session has 'expired' and if new post indicators need resetting if (THIS_SCRIPT != 'yourscriptname') { $DB_site->shutdown_query(" UPDATE " . TABLE_PREFIX . "user SET lastvisit = lastactivity, lastactivity = " . TIMENOW . " WHERE userid = $bbuserinfo[userid] ", 'lastvisit'); $bbuserinfo['lastvisit'] = $bbuserinfo['lastactivity']; } } else { Code:
if (THIS_SCRIPT != 'yourscriptname') [code]define('THIS_SCRIPT', 'yourscriptname'); Mind you I am using vB 3.0.xx so the code may be different if you are using a later version. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|