The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
[QUOTE]Originally posted by MrLister
ditto... i dosed off after the 3rd line.. |
#12
|
||||
|
||||
Quote:
|
#13
|
||||
|
||||
I like the Clear Session feature and wonder if Firefly would share with us how its done?
|
#14
|
||||
|
||||
Add this action to member.php:
Code:
// ############################### start clear sessions ############################### if ($action=="clears") { include("./global.php"); if ($bbuserinfo[userid]!=0 and $bbuserinfo[userid]!=-1) { $DB_site->query("UPDATE user SET lastactivity='".(time()-$cookietimeout)."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); } $DB_site->query("DELETE FROM session WHERE sessionhash='".addslashes($session[dbsessionhash])."'"); $DB_site->query("DELETE FROM session WHERE userid='$bbuserinfo[userid]'"); eval("standarderror(\"".gettemplate("error_sessionclear")."\");"); } Add a template named error_sessionclear and put your message there. |
#15
|
||||
|
||||
Thank ya. leased:
|
#16
|
||||
|
||||
And all this does--the only thing at all--is remove you from the Who's Online? It doesn't mark anything as read, it doesn't log you out, it doesn't do anything else, other than take you off Who's Online?
I'm still not sure if I see what the point is. If someone can explain it to me a little better so that I can explain it to my members so we'll all know what to do with it, I'd really appreciate it. |
#17
|
||||
|
||||
It does not log you out, which would clear your cookie and prevent an auto-login next time.
It does remove you from Who's Online. Why? Because if you leave the site, you show up on Who's Online for 15 minutes after your last activity. It's just if you don't want to show up on Who's Online without actually logging out. |
#18
|
||||
|
||||
And it does mark all forums read.
If you don't want that, remove this code from the code above: Code:
if ($bbuserinfo[userid]!=0 and $bbuserinfo[userid]!=-1) { $DB_site->query("UPDATE user SET lastactivity='".(time()-$cookietimeout)."',lastvisit='".time()."' WHERE userid='$bbuserinfo[userid]'"); } |
#19
|
|||
|
|||
Well, this works but it still shows the user as ONLINE in their Profile and in the CURRENTLY ACTIVE user list.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|