Support » Plugin: NewStatPress » Changing default values?

  • Hello!

    We really, really do love your stats plugin!

    There’s something I’m trying to figure out in the database. There’s no way to edit the current numbers. We’d like to import the numbers from our old counter, as need it, a lot for our sponsors (we are non profit):

    This week: 13040
    This month: 846
    Total visitors: 714632

    How can we achieve it?

    Thanks

    – Note: We’ve tried to contact the developer in its website, but captcha’s aren’t working well there, neither the Contact page.

    Cheers!

    https://wordpress.org/plugins/newstatpress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author cHab

    (@lechab)

    Hi,

    Thank you!
    The development of this function is in progress 🙂
    It should be available in next version.
    Stay tuned,
    cHab

    Hi,

    Thanks cHab, the plugin is awesome!

    Any ETA?

    Plugin Author cHab

    (@lechab)

    no ETA, but it should be probably this month or in April
    See you,
    cHab

    Hello,

    Sure thing, it seems we can’t do anything.. This Non Profit in question really needs their old values.

    Tried to edit the database directly, but I don’t know which values I should change.

    Plugin Author ice00

    (@ice00)

    hi,

    there is a way to update what is get from widget variables for counting old values, but this is becoming too much complicated to achieve with the new Ajax way used for speed up rendering.

    Before this it was just a little Javascript to put in the widget text for having that result and I usually give it to people, but as now it is more complicated we had planned to add those options instead.

    Adding that value into the database directly is not trivial (for example if you have 5000 old visits you need to create 5000 records in DB for have them counted and the records have to meet some requirement to being counted)

    As a programmer if you really need it soon, the simple way is to modify the source of newstatpress/includes/api/variable.php.

    In it there are some peace of code like:
    if ($var=='alltotalvisits') {
    and then

    if ($qry != null) {
         echo $qry[0]->pageview;
       }

    that code calculate all the total visits, so if your old value was 5000 you need to have this:

    if ($qry != null) {
         echo $qry[0]->pageview+5000;
       }

    You need to catch the code of the variable you use in the widget (example %totalpageviews%) and add the value like I show above.

    The disadvantage of this (not counting the difficulty for a people that has never programmed before to follow the above suggestion) is that at every plugin update you lose that modifications, so I did not directly suggest to people to use this way.

    Thanks

    p.s.
    as you have problem with the contact form of the site, try to write at newstatpress [at] altervista.org if you want that I modify the variable.php for you and send with your old values added. You then need to put into your site with ftp. This could be just a temporally fix for your No Profit until the function will be ready in next version

    Hello!

    Looks hell complicated… I shall wait for the new version to be released 😛

    I’ll send you an email today! 🙂

    And thanks for your awesome support, never seen such great support here, at all.

    Plugin Author ice00

    (@ice00)

    hi,

    if you attend some more days the implementation of this is almost done and after a test it can be released into 1.1.8 directly

    thanks

    Hello, sure thing.

    I’ll email you now.

    Plugin Author cHab

    (@lechab)

    Hi,

    As indicated previously, try the option in the 1.1.8 version.
    Please confirm us, it works well for you.
    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Changing default values?’ is closed to new replies.