the cache file will be created automagically.
for the patch file, here is what you have to do. open the modules/Your_Account/index.php file and look for the following line of code in the docookie function:
Code: › setcookie("user","$info",time()+2592000);
replace it with:
Code: › setcookie("user","$info",time()+3600);
(this is optional, it forces the user to log in after they've been gone for an hour, it facilitates checking for new albums).
next, find the login function. after the line that reads "include (config.php);", insert the following:
Code: ›
# COPY CURRENT TIME TO PREVIOUS TIME AND UPDATE CURRENT TIME IN USER TABLE.
$gettime = "SELECT user_id,user_current_visit,user_last_visit FROM ".$user_prefix."_users WHERE username='$username'";
$timeinfo = $db->sql_query($gettime);
$usertimes = $db->sql_fetchrow($timeinfo);
$updatesql = "UPDATE ".$user_prefix."_users SET user_current_visit='".time()."',user_last_visit='".$usertimes[1]."' WHERE user_id='".$usertimes[0]."'";
$updatequery = $db->sql_query($updatesql);
make sure you execute the add_fields.php file to add the fields to your database and you're set.