Plugin Directory

Changeset 1466646


Ignore:
Timestamp:
08/03/2016 05:32:47 AM (10 years ago)
Author:
bcole808
Message:

Release 1.6.7

Location:
social-metrics-tracker
Files:
107 added
5 edited

Legend:

Unmodified
Added
Removed
  • social-metrics-tracker/trunk/MetricsUpdater.class.php

    r1344759 r1466646  
    838838        ***************************************************/
    839839        if ($verbose) {
    840             $percent = round(($offset + $q->post_count) / max(1, $q->found_posts * 100));
     840            $percent = round(($offset + $q->post_count) / max(1, $q->found_posts) * 100);
    841841            print('<div style="width: 100%; border:1px solid #CCC; background:#EEE; border-radius: 6px; padding:20px; margin: 15px 0; box-sizing:border-box;">');
    842842            print('<h1 style="margin-top:0;">Scheduled '.($offset + $q->post_count).' out of '.$q->found_posts.' posts.</h1>');
  • social-metrics-tracker/trunk/data-sources/FacebookPublicUpdater.class.php

    r1202486 r1466646  
    6363
    6464        // Convert the string with commas to an integer
    65         return intval(str_replace(',', '', $match));
     65        return $this->convert_abbreviated_num($match);
     66    }
     67
     68    /**
     69     * Converts strings like
     70     *    "1.2k" into "1200"
     71     *    "1,582" into "1582"
     72     */
     73    private function convert_abbreviated_num($input) {
     74
     75        $unit_values = array(
     76            "k" => 1000,
     77            "m" => 1000000,
     78            "b" => 1000000000,
     79            "t" => 1000000000000,
     80        );
     81
     82        $input = trim($input);
     83
     84        $input = str_replace(',', '', $input);
     85
     86        $unit = strtolower( substr($input, -1) );
     87
     88        if (array_key_exists($unit, $unit_values)) {
     89            return floatval($input) * $unit_values[$unit];
     90        } else {
     91            return intval($input);
     92        }
     93
    6694    }
    6795
  • social-metrics-tracker/trunk/readme.txt

    r1357474 r1466646  
    44Tags: admin, dashboard, social, social media, facebook, twitter, metrics, analytics, tracking, stats, engagement, share, sharing, shares, likes, tweets
    55Requires at least: 3.5
    6 Tested up to: 4.4.2
    7 Stable tag: 1.6.6
     6Tested up to: 4.5.3
     7Stable tag: 1.6.7
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    108108
    109109== Changelog ==
     110
     111= 1.6.7 =
     112* Updated the Facebook "Publicly Available Data" option to correctly retrieve shares over 999. Note that it is strongly recommended to configure the Facebook Graph API option as it is more accurate and reliable.
     113* Fixed a bug with the progress bar when scheduling a full sync
    110114
    111115= 1.6.6 =
     
    253257== Upgrade Notice ==
    254258
     259= 1.6.7 =
     260Fixed a bug with the Facebook Public data
     261
    255262= 1.6.6 =
    256263Fixed a bug where custom post types were not being listed on the settings page
     
    372379
    373380**Contributing to the project**
    374 We have a Git repository for the project which you can access here: https://github.com/chapmanu/wp-social-metrics-tracker
     381We have a Git repository for the project which you can access here: https://github.com/bcole808/wp-social-metrics-tracker
  • social-metrics-tracker/trunk/social-metrics-tracker.php

    r1357474 r1466646  
    22/*
    33Plugin Name: Social Metrics Tracker
    4 Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker
     4Plugin URI: https://github.com/bcole808/wp-social-metrics-tracker
    55Description: Collect and display social network shares, likes, tweets, and view counts of posts.
    6 Version: 1.6.6
     6Version: 1.6.7
    77Author: Ben Cole
    88Author URI: http://www.bencole.net
     
    3939class SocialMetricsTracker {
    4040
    41     public $version = '1.6.6'; // for db upgrade comparison
     41    public $version = '1.6.7'; // for db upgrade comparison
    4242    public $updater;
    4343    public $options;
  • social-metrics-tracker/trunk/templates/settings-connections.handlebars

    r1202486 r1466646  
    5757
    5858        <blockquote class="fb_connection_help" style="display:none;">
    59         <p><b>Publicly available data</b> works out of the box and does not require any setup. If you experience problems with this option, try switching to Graph data.</p>
     59        <p><b>Publicly available data</b> works out of the box and does not require any setup. If you experience problems with this option, try switching to Graph data. <b>The numbers retrieved with this option may be estimates. Using the Graph API is strongly recommended.</b></p>
    6060        </blockquote>
    6161
Note: See TracChangeset for help on using the changeset viewer.