Support » Plugin: NewStatPress » Statistics offset doesn’t work

  • Hi,
    I noticed that statistics offset doesn’t work anymore.
    After I entered the values and saved it, I go back to check again but it’s empty and the values doesn’t reflect in the statistic.

    Please help. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ice00

    (@ice00)

    hi,

    It is probably broken due to the new sanization applyed.

    It will be fixed in the version of tomorrow.

    thanks

    Hi @ice00,
    Is the new version out yet?
    I haven’t receive any update.
    Hope it can be pushed out ASAP 🙂

    Thank you.

    Plugin Author ice00

    (@ice00)

    hi,

    unfortunately it needs to rewrite part of the code that affect counter option saving for being able to fix it and this is not simple as planned 🙁

    So I have to test the fix a lot before releasing it.

    I hope to have it ready in a couples of days.

    Thanks

    Hi @ice00,
    It has been a while already. Is there any way to hard code the values? I really need this function.

    Thank you.

    Plugin Author ice00

    (@ice00)

    hi,

    sorry, it is not jet ready. It is more difficult to achieve that I was thinking.

    you can temporally modify the PHP (look at file variable.php inside include/api/). For example, if you want to modify the %alltotalvisits%

      if ($var=='alltotalvisits') {
        $qry = $wpdb->get_results(
        "SELECT count(distinct urlrequested, ip) AS pageview
         FROM $table_name AS t1
         WHERE
          spider='' AND
          feed='' AND
          urlrequested!='';
         ");
         if ($qry != null) {
           echo json_encode($qry[0]->pageview+$offsets['alltotalvisits']);
         }

    then you have to add your fixed amount before $offsets (eg, suppose it is 1234):

         if ($qry != null) {
           echo json_encode($qry[0]->pageview+1234+$offsets['alltotalvisits']);
         }

    you can email at newstatpress [at] altervista.org your fixed values and I can send the modified file to you if you are not able to modify the source.

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Statistics offset doesn’t work’ is closed to new replies.