WordPress.org

Forums

WordPress hack: wp-logging (4 posts)

  1. culturevulture
    Member
    Posted 9 years ago #

    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 http://www.tt-digital.de for updates.

  2. mtanner
    Member
    Posted 9 years ago #

    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.

  3. Nick Momrik
    Member
    Posted 9 years ago #

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

  4. culturevulture
    Member
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.