Mechanic Visitor Counter
Bug Fix (2 posts)

  1. SweetSozai
    Posted 4 years ago #

    Hi, first of all, thank you for such a great counter!

    There's a bug, though, that I've encountered and fixed. Just would like to share so that other users esp. beginners might benefit.

    The image counter (0.gif - 9.gif) links directly to those on your demo site. This cannot be fixed by simply changing it into the user's http:// link to these graphics. A way to fix this is:

    (1) Find this:

    $tothitsgbr = str_replace($i, "<img src='http://demo.balimechanicweb.net/counter/$i$ext' alt='$i'>", $tothitsgbr);}

    (2) change into:

    $tothitsgbr = str_replace($i, "<img src='../wp-content/plugins/mechanic-visitor-counter/counter/hit/$i$ext' alt='$i'>", $tothitsgbr);}

    users can also replace the .gif pics in this "hit" folder in the above path with their own.

    Hope this could be of some use.

    Thanks again!


  2. SweetSozai
    Posted 4 years ago #

    P.S., my wordpress version is 3.4.1

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mechanic Visitor Counter
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic