WordPress.org

Ready to get started?Download WordPress

Forums

Mechanic Visitor Counter
Bug that I can't fix (4 posts)

  1. SweetSozai
    Member
    Posted 1 year ago #

    Hi, just discovered that the img stats on any of the archives page doesn't work. The reason for this is, the archive automatically generates a folder for each year. This made the counter img path incorrect:

    http://www.blogsite.com/1012/...img-path.../counter/hit/

    The auto-generated 2012 folder is the problem. Any help would really be appreciated. ^_^~

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

  2. Aditya Subawa
    Member
    Plugin Author

    Posted 1 year ago #

    simple, patch your plugin

  3. mic24676
    Member
    Posted 1 year ago #

    tip: row 137:::

    $tothitsgbr = sprintf("%06d", $tothitsgbr);
    /*
    for ($i = 0; $i <= 9; $i++) {
    $tothitsgbr = str_replace($i, "<img src='http://www.roma921.com/wp-content/plugins/mechanic-visitor-counter/styles/$style/$i$ext' alt='$i'>", $tothitsgbr);
    }
    */
    $str = str_split($tothitsgbr);
    $new_str = '';
    foreach($str as $k => $v)
    {
    $new_str .= '<img src="http://www.roma921.com/wp-content/plugins/mechanic-visitor-counter/styles/'.$style.'/'.$v.''.$ext.'">';
    }
    //image
    $imgvisit= "<img src='".plugins_url ('counter/visit.png' , __FILE__ ). "'>";
    $imgtotal="<img src='".plugins_url ('counter/line_chart.png' , __FILE__ ). "'>";
    $imghits="<img src='".plugins_url ('counter/hits.png' , __FILE__ ). "'>";
    $imgtotalhits="<img src='".plugins_url ('counter/bar_chart.png' , __FILE__ ). "'>";
    $imgonline="<img src='" .plugins_url ('counter/online.png' , __FILE__ ). "'>";
    //align
    ?>
    <div align="<?php echo $align ?>"><?php /*echo $tothitsgbr*/ echo $new_str ?>

    <div><table width='100'>

  4. sonthanhha
    Member
    Posted 1 year ago #

    Install this plugin:
    SB Welcome Email Editor can not function because another plugin is conflicting.

    How can I fix this problem? Thank!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic