Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

SecretCrush change to update empty visitor_name

This is FAR from perfect but i added the following lines at line 206 of class.php just in case anyone finds it useful

    // If a new registered visitor comes, update previous unnamed visits from that ip to visitor_name
    $this->query("UPDATE `{$this->Mint->db['tblPrefix']}visit` SET `visitor_name`='".$visitor_name."' WHERE `visitor_name` = '' AND `ip_long` = '".$ip_long."'";);

It does as it says in the comment, once a registered visitor is detected it updates all empty visitor_name from that same ip to that visitor_name

Shaun Inman
Mint/Pepper Developer
Posted on Apr 15, '09 at 10:04 am

I avoid doing this officially because depending on the volume of each individual site’s traffic this query could be time consuming and negatively affect your visitors’ experience on your site.

So what if the IP is a public machine?

You must be logged in to reply. Login above or create an account