Changeset 1466646
- Timestamp:
- 08/03/2016 05:32:47 AM (10 years ago)
- Location:
- social-metrics-tracker
- Files:
-
- 107 added
- 5 edited
-
tags/1.6.7 (added)
-
tags/1.6.7/MetricsUpdater.class.php (added)
-
tags/1.6.7/SocialMetricsDebugger.class.php (added)
-
tags/1.6.7/SocialMetricsSettings.class.php (added)
-
tags/1.6.7/SocialMetricsTrackerWidget.class.php (added)
-
tags/1.6.7/css (added)
-
tags/1.6.7/css/social-metrics-tracker.min.css (added)
-
tags/1.6.7/css/social-metrics-tracker.min.css.map (added)
-
tags/1.6.7/css/social-metrics-tracker.scss (added)
-
tags/1.6.7/data-sources (added)
-
tags/1.6.7/data-sources/FacebookGraphUpdater.class.php (added)
-
tags/1.6.7/data-sources/FacebookPublicUpdater.class.php (added)
-
tags/1.6.7/data-sources/FlattrUpdater.class.php (added)
-
tags/1.6.7/data-sources/GooglePlusUpdater.class.php (added)
-
tags/1.6.7/data-sources/HTTPResourceUpdater.class.php (added)
-
tags/1.6.7/data-sources/LinkedInUpdater.class.php (added)
-
tags/1.6.7/data-sources/PinterestUpdater.class.php (added)
-
tags/1.6.7/data-sources/RedditUpdater.class.php (added)
-
tags/1.6.7/data-sources/StumbleUponUpdater.class.php (added)
-
tags/1.6.7/data-sources/WordPressCircuitBreaker.class.php (added)
-
tags/1.6.7/data-sources/XingUpdater.class.php (added)
-
tags/1.6.7/data-sources/google_analytics.php (added)
-
tags/1.6.7/js (added)
-
tags/1.6.7/js/social-metrics-tracker.js (added)
-
tags/1.6.7/js/social-metrics-tracker.min.js (added)
-
tags/1.6.7/lib (added)
-
tags/1.6.7/lib/Google (added)
-
tags/1.6.7/lib/Google/Auth (added)
-
tags/1.6.7/lib/Google/Auth/Abstract.php (added)
-
tags/1.6.7/lib/Google/Auth/AssertionCredentials.php (added)
-
tags/1.6.7/lib/Google/Auth/Exception.php (added)
-
tags/1.6.7/lib/Google/Auth/LoginTicket.php (added)
-
tags/1.6.7/lib/Google/Auth/OAuth2.php (added)
-
tags/1.6.7/lib/Google/Auth/Simple.php (added)
-
tags/1.6.7/lib/Google/Cache (added)
-
tags/1.6.7/lib/Google/Cache/Abstract.php (added)
-
tags/1.6.7/lib/Google/Cache/Apc.php (added)
-
tags/1.6.7/lib/Google/Cache/Exception.php (added)
-
tags/1.6.7/lib/Google/Cache/File.php (added)
-
tags/1.6.7/lib/Google/Cache/Memcache.php (added)
-
tags/1.6.7/lib/Google/Cache/Null.php (added)
-
tags/1.6.7/lib/Google/Client.php (added)
-
tags/1.6.7/lib/Google/Collection.php (added)
-
tags/1.6.7/lib/Google/Config.php (added)
-
tags/1.6.7/lib/Google/Exception.php (added)
-
tags/1.6.7/lib/Google/Http (added)
-
tags/1.6.7/lib/Google/Http/Batch.php (added)
-
tags/1.6.7/lib/Google/Http/CacheParser.php (added)
-
tags/1.6.7/lib/Google/Http/MediaFileUpload.php (added)
-
tags/1.6.7/lib/Google/Http/REST.php (added)
-
tags/1.6.7/lib/Google/Http/Request.php (added)
-
tags/1.6.7/lib/Google/IO (added)
-
tags/1.6.7/lib/Google/IO/Abstract.php (added)
-
tags/1.6.7/lib/Google/IO/Curl.php (added)
-
tags/1.6.7/lib/Google/IO/Exception.php (added)
-
tags/1.6.7/lib/Google/IO/Stream.php (added)
-
tags/1.6.7/lib/Google/IO/cacerts.pem (added)
-
tags/1.6.7/lib/Google/Model.php (added)
-
tags/1.6.7/lib/Google/Service (added)
-
tags/1.6.7/lib/Google/Service.php (added)
-
tags/1.6.7/lib/Google/Service/Analytics.php (added)
-
tags/1.6.7/lib/Google/Service/Exception.php (added)
-
tags/1.6.7/lib/Google/Service/Resource.php (added)
-
tags/1.6.7/lib/Google/Signer (added)
-
tags/1.6.7/lib/Google/Signer/Abstract.php (added)
-
tags/1.6.7/lib/Google/Signer/P12.php (added)
-
tags/1.6.7/lib/Google/Utils (added)
-
tags/1.6.7/lib/Google/Utils.php (added)
-
tags/1.6.7/lib/Google/Utils/URITemplate.php (added)
-
tags/1.6.7/lib/Google/Verifier (added)
-
tags/1.6.7/lib/Google/Verifier/Abstract.php (added)
-
tags/1.6.7/lib/Google/Verifier/Pem.php (added)
-
tags/1.6.7/lib/Handlebars (added)
-
tags/1.6.7/lib/Handlebars/Autoloader.php (added)
-
tags/1.6.7/lib/Handlebars/Cache (added)
-
tags/1.6.7/lib/Handlebars/Cache.php (added)
-
tags/1.6.7/lib/Handlebars/Cache/APC.php (added)
-
tags/1.6.7/lib/Handlebars/Cache/Disk.php (added)
-
tags/1.6.7/lib/Handlebars/Cache/Dummy.php (added)
-
tags/1.6.7/lib/Handlebars/Context.php (added)
-
tags/1.6.7/lib/Handlebars/Engine.php (added)
-
tags/1.6.7/lib/Handlebars/Helpers.php (added)
-
tags/1.6.7/lib/Handlebars/Loader (added)
-
tags/1.6.7/lib/Handlebars/Loader.php (added)
-
tags/1.6.7/lib/Handlebars/Loader/FilesystemLoader.php (added)
-
tags/1.6.7/lib/Handlebars/Loader/StringLoader.php (added)
-
tags/1.6.7/lib/Handlebars/Parser.php (added)
-
tags/1.6.7/lib/Handlebars/String.php (added)
-
tags/1.6.7/lib/Handlebars/Template.php (added)
-
tags/1.6.7/lib/Handlebars/Tokenizer.php (added)
-
tags/1.6.7/lib/class-wp-list-table.php (added)
-
tags/1.6.7/lib/wp-settings-framework.php (added)
-
tags/1.6.7/readme.txt (added)
-
tags/1.6.7/settings (added)
-
tags/1.6.7/settings/smt-gapi.php (added)
-
tags/1.6.7/settings/smt-general.php (added)
-
tags/1.6.7/smt-dashboard-debug.php (added)
-
tags/1.6.7/smt-dashboard.php (added)
-
tags/1.6.7/smt-export.php (added)
-
tags/1.6.7/social-metrics-tracker.php (added)
-
tags/1.6.7/templates (added)
-
tags/1.6.7/templates/settings-connections.handlebars (added)
-
tags/1.6.7/templates/settings-nav.handlebars (added)
-
tags/1.6.7/templates/settings-test.handlebars (added)
-
tags/1.6.7/templates/settings-urls.handlebars (added)
-
tags/1.6.7/templates/stat-details.handlebars (added)
-
tags/1.6.7/uninstall.php (added)
-
trunk/MetricsUpdater.class.php (modified) (1 diff)
-
trunk/data-sources/FacebookPublicUpdater.class.php (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/social-metrics-tracker.php (modified) (2 diffs)
-
trunk/templates/settings-connections.handlebars (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
social-metrics-tracker/trunk/MetricsUpdater.class.php
r1344759 r1466646 838 838 ***************************************************/ 839 839 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); 841 841 print('<div style="width: 100%; border:1px solid #CCC; background:#EEE; border-radius: 6px; padding:20px; margin: 15px 0; box-sizing:border-box;">'); 842 842 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 63 63 64 64 // 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 66 94 } 67 95 -
social-metrics-tracker/trunk/readme.txt
r1357474 r1466646 4 4 Tags: admin, dashboard, social, social media, facebook, twitter, metrics, analytics, tracking, stats, engagement, share, sharing, shares, likes, tweets 5 5 Requires at least: 3.5 6 Tested up to: 4. 4.27 Stable tag: 1.6. 66 Tested up to: 4.5.3 7 Stable tag: 1.6.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 108 108 109 109 == 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 110 114 111 115 = 1.6.6 = … … 253 257 == Upgrade Notice == 254 258 259 = 1.6.7 = 260 Fixed a bug with the Facebook Public data 261 255 262 = 1.6.6 = 256 263 Fixed a bug where custom post types were not being listed on the settings page … … 372 379 373 380 **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-tracker381 We 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 2 2 /* 3 3 Plugin Name: Social Metrics Tracker 4 Plugin URI: https://github.com/ ChapmanU/wp-social-metrics-tracker4 Plugin URI: https://github.com/bcole808/wp-social-metrics-tracker 5 5 Description: Collect and display social network shares, likes, tweets, and view counts of posts. 6 Version: 1.6. 66 Version: 1.6.7 7 7 Author: Ben Cole 8 8 Author URI: http://www.bencole.net … … 39 39 class SocialMetricsTracker { 40 40 41 public $version = '1.6. 6'; // for db upgrade comparison41 public $version = '1.6.7'; // for db upgrade comparison 42 42 public $updater; 43 43 public $options; -
social-metrics-tracker/trunk/templates/settings-connections.handlebars
r1202486 r1466646 57 57 58 58 <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> 60 60 </blockquote> 61 61
Note: See TracChangeset
for help on using the changeset viewer.