Title: Changing default values?
Last modified: August 31, 2016

---

# Changing default values?

 *  [mrgeneral](https://wordpress.org/support/users/mrgeneral/)
 * (@mrgeneral)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/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/](https://wordpress.org/plugins/newstatpress/)

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [lechab](https://wordpress.org/support/users/lechab/)
 * (@lechab)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138404)
 * Hi,
 * Thank you!
    The development of this function is in progress 🙂 It should be available
   in next version. Stay tuned, cHab
 *  Thread Starter [mrgeneral](https://wordpress.org/support/users/mrgeneral/)
 * (@mrgeneral)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138505)
 * Hi,
 * Thanks cHab, the plugin is awesome!
 * Any ETA?
 *  Plugin Contributor [lechab](https://wordpress.org/support/users/lechab/)
 * (@lechab)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138515)
 * no ETA, but it should be probably this month or in April
    See you, cHab
 *  Thread Starter [mrgeneral](https://wordpress.org/support/users/mrgeneral/)
 * (@mrgeneral)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138525)
 * 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](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138538)
 * 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
 *  Thread Starter [mrgeneral](https://wordpress.org/support/users/mrgeneral/)
 * (@mrgeneral)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138599)
 * 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](https://wordpress.org/support/users/ice00/)
 * (@ice00)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138603)
 * 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
 *  Thread Starter [mrgeneral](https://wordpress.org/support/users/mrgeneral/)
 * (@mrgeneral)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138604)
 * Hello, sure thing.
 * I’ll email you now.
 *  Plugin Contributor [lechab](https://wordpress.org/support/users/lechab/)
 * (@lechab)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138627)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/newstatpress.svg)
 * [NewStatPress](https://wordpress.org/plugins/newstatpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newstatpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newstatpress/)
 * [Active Topics](https://wordpress.org/support/plugin/newstatpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newstatpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newstatpress/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [lechab](https://wordpress.org/support/users/lechab/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/changing-default-values/#post-7138627)
 * Status: not resolved