WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Mechanic Visitor Counter] Bug Fix

[Plugin: Mechanic Visitor Counter] Bug Fix

  • SweetSozai
    Member

    @sweetsozai

    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!

    http://wordpress.org/extend/plugins/mechanic-visitor-counter/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Mechanic Visitor Counter] Bug Fix’ is closed to new replies.