forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: Yabba on October 10, 2006, 07:52:21 am

Title: Cookie change the timeout setting
Post by: Yabba on October 10, 2006, 07:52:21 am
All Gurus,

I have this issue that the menu "Users/Memberlist" is not showing the correct last visit. I have read the topic http://forum.coppermine-gallery.net/index.php?topic=14718.0 (http://forum.coppermine-gallery.net/index.php?topic=14718.0) but saw that its out of date and no longer supported.

Is there a mod for the cookies that support 149?

I have also tried onlinetoday pluging but it has a big tolerance in the logging, but that i will take up in an other topic.
In this one i really would like to have correct information in the "Users/Memberlist" menu.

Pretty related to: http://forum.coppermine-gallery.net/index.php?topic=37054.0 (http://forum.coppermine-gallery.net/index.php?topic=37054.0)
Title: Re: Cookie change the timeout setting
Post by: Nibbler on October 10, 2006, 12:33:18 pm
Modify bridge/coppermine.inc.php, find

Code: [Select]
return ($id) ? array($id, $pass) : false;

change to

Code: [Select]
if (!empty($id)){
$sql =  "UPDATE {$this->usertable} SET user_lastvisit = NOW() WHERE user_id = $id";
cpg_db_query($sql, $this->link_id);
}
                       
return ($id) ? array($id, $pass) : false;

This does not appear to have anything to do with the title of your thread.