• Well, I needed a quick and dirty WordPress hack to keep track of my visitors. I have webalizer running but wanted to try out something new. And here it is: wp-logging!
    It comes as a single php file, one MySQL table needs to be created and that’s it. In the current version there is no graphical nor textual log analysis. That will be implemented in the near future.
    This hack will log the following:

    • timestamp of access
    • referrer
    • ip
    • host name
    • browser
    • accessed WP posting
    • static ip variable that will not be logged

    Get the source files including a readme file here (version 0.2). Feedback is appreciated. Visit https://www.tt-digital.de for updates.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I installed that script about 15minutes after you posted, it’s been 5 hours and I’ve had several dozen visitors however I see nothing on my wp-logging.php page. Am I looking in the right pace? I followed the instructions quite well.

    “In the current version there is no graphical nor textual log analysis. That will be implemented in the near future.”

    Thread Starter culturevulture

    (@culturevulture)

    Please change line 14 of wp-logging.php to $query = “INSERT INTO wp_logging VALUES (”,’$time’,’$referrer’,’$host’,’$ip’,’$browser’,’$id’)”;
    There was a different (wrong) table name. Then it should work. Downloadable version is already updated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress hack: wp-logging’ is closed to new replies.