How to make this work in 2.0.15 - A Fix

This mod will register when the user last logged in, allong with the info about how meny users have visited the board

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

How to make this work in 2.0.15 - A Fix

Postby Lance S on Sun 05. Jun, 2005 18:09

In the installation script, find at line 506:

Code: Select all
includes/sessions.php

#
#-----[ FIND ]------------------------------------------------
#
if (
{// (
$last_visit = (

$sql = "UPDATE " . USERS_TABLE . "
SET


and replace with:

Code: Select all
includes/sessions.php

#
#-----[ FIND ]------------------------------------------------
#
if (
{// (
$last_visit = (

if (!$admin)
{
$sql = "UPDATE " . USERS_TABLE . "
SET


Basically you are just adding these two lines:
if (!$admin)
{


above this one:
$sql = "UPDATE " . USERS_TABLE . "

So the find matches the content of sessions.php in 2.0.15

HTH
Lance S
Poster
Poster
 
Posts: 2
Joined: Wed 25. May, 2005 22:54

Return to Last visit [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron