Changeset 1064280
- Timestamp:
- 01/10/2015 12:06:37 AM (11 years ago)
- Location:
- social-metrics-tracker
- Files:
-
- 118 added
- 3 edited
-
tags/1.3.4 (added)
-
tags/1.3.4/MetricsUpdater.class.php (added)
-
tags/1.3.4/SocialMetricsDebugger.class.php (added)
-
tags/1.3.4/SocialMetricsSettings.class.php (added)
-
tags/1.3.4/SocialMetricsTrackerWidget.class.php (added)
-
tags/1.3.4/css (added)
-
tags/1.3.4/css/social-metrics-tracker.min.css (added)
-
tags/1.3.4/css/social-metrics-tracker.min.css.map (added)
-
tags/1.3.4/css/social-metrics-tracker.scss (added)
-
tags/1.3.4/data-sources (added)
-
tags/1.3.4/data-sources/FacebookUpdater.class.php (added)
-
tags/1.3.4/data-sources/GooglePlusUpdater.class.php (added)
-
tags/1.3.4/data-sources/HTTPResourceUpdater.class.php (added)
-
tags/1.3.4/data-sources/LinkedInUpdater.class.php (added)
-
tags/1.3.4/data-sources/PinterestUpdater.class.php (added)
-
tags/1.3.4/data-sources/StumbleUponUpdater.class.php (added)
-
tags/1.3.4/data-sources/TwitterUpdater.class.php (added)
-
tags/1.3.4/data-sources/WordPressCircuitBreaker.class.php (added)
-
tags/1.3.4/data-sources/google_analytics.php (added)
-
tags/1.3.4/js (added)
-
tags/1.3.4/js/social-metrics-tracker.js (added)
-
tags/1.3.4/js/social-metrics-tracker.min.js (added)
-
tags/1.3.4/lib (added)
-
tags/1.3.4/lib/Google (added)
-
tags/1.3.4/lib/Google/Auth (added)
-
tags/1.3.4/lib/Google/Auth/Abstract.php (added)
-
tags/1.3.4/lib/Google/Auth/AssertionCredentials.php (added)
-
tags/1.3.4/lib/Google/Auth/Exception.php (added)
-
tags/1.3.4/lib/Google/Auth/LoginTicket.php (added)
-
tags/1.3.4/lib/Google/Auth/OAuth2.php (added)
-
tags/1.3.4/lib/Google/Auth/Simple.php (added)
-
tags/1.3.4/lib/Google/Cache (added)
-
tags/1.3.4/lib/Google/Cache/Abstract.php (added)
-
tags/1.3.4/lib/Google/Cache/Apc.php (added)
-
tags/1.3.4/lib/Google/Cache/Exception.php (added)
-
tags/1.3.4/lib/Google/Cache/File.php (added)
-
tags/1.3.4/lib/Google/Cache/Memcache.php (added)
-
tags/1.3.4/lib/Google/Cache/Null.php (added)
-
tags/1.3.4/lib/Google/Client.php (added)
-
tags/1.3.4/lib/Google/Collection.php (added)
-
tags/1.3.4/lib/Google/Config.php (added)
-
tags/1.3.4/lib/Google/Exception.php (added)
-
tags/1.3.4/lib/Google/Http (added)
-
tags/1.3.4/lib/Google/Http/Batch.php (added)
-
tags/1.3.4/lib/Google/Http/CacheParser.php (added)
-
tags/1.3.4/lib/Google/Http/MediaFileUpload.php (added)
-
tags/1.3.4/lib/Google/Http/REST.php (added)
-
tags/1.3.4/lib/Google/Http/Request.php (added)
-
tags/1.3.4/lib/Google/IO (added)
-
tags/1.3.4/lib/Google/IO/Abstract.php (added)
-
tags/1.3.4/lib/Google/IO/Curl.php (added)
-
tags/1.3.4/lib/Google/IO/Exception.php (added)
-
tags/1.3.4/lib/Google/IO/Stream.php (added)
-
tags/1.3.4/lib/Google/IO/cacerts.pem (added)
-
tags/1.3.4/lib/Google/Model.php (added)
-
tags/1.3.4/lib/Google/Service (added)
-
tags/1.3.4/lib/Google/Service.php (added)
-
tags/1.3.4/lib/Google/Service/Analytics.php (added)
-
tags/1.3.4/lib/Google/Service/Exception.php (added)
-
tags/1.3.4/lib/Google/Service/Resource.php (added)
-
tags/1.3.4/lib/Google/Signer (added)
-
tags/1.3.4/lib/Google/Signer/Abstract.php (added)
-
tags/1.3.4/lib/Google/Signer/P12.php (added)
-
tags/1.3.4/lib/Google/Utils (added)
-
tags/1.3.4/lib/Google/Utils.php (added)
-
tags/1.3.4/lib/Google/Utils/URITemplate.php (added)
-
tags/1.3.4/lib/Google/Verifier (added)
-
tags/1.3.4/lib/Google/Verifier/Abstract.php (added)
-
tags/1.3.4/lib/Google/Verifier/Pem.php (added)
-
tags/1.3.4/lib/Mustache (added)
-
tags/1.3.4/lib/Mustache/Autoloader.php (added)
-
tags/1.3.4/lib/Mustache/Cache (added)
-
tags/1.3.4/lib/Mustache/Cache.php (added)
-
tags/1.3.4/lib/Mustache/Cache/AbstractCache.php (added)
-
tags/1.3.4/lib/Mustache/Cache/FilesystemCache.php (added)
-
tags/1.3.4/lib/Mustache/Cache/NoopCache.php (added)
-
tags/1.3.4/lib/Mustache/Compiler.php (added)
-
tags/1.3.4/lib/Mustache/Context.php (added)
-
tags/1.3.4/lib/Mustache/Engine.php (added)
-
tags/1.3.4/lib/Mustache/Exception (added)
-
tags/1.3.4/lib/Mustache/Exception.php (added)
-
tags/1.3.4/lib/Mustache/Exception/InvalidArgumentException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/LogicException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/RuntimeException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/SyntaxException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/UnknownFilterException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/UnknownHelperException.php (added)
-
tags/1.3.4/lib/Mustache/Exception/UnknownTemplateException.php (added)
-
tags/1.3.4/lib/Mustache/HelperCollection.php (added)
-
tags/1.3.4/lib/Mustache/LambdaHelper.php (added)
-
tags/1.3.4/lib/Mustache/Loader (added)
-
tags/1.3.4/lib/Mustache/Loader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/ArrayLoader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/CascadingLoader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/FilesystemLoader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/InlineLoader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/MutableLoader.php (added)
-
tags/1.3.4/lib/Mustache/Loader/StringLoader.php (added)
-
tags/1.3.4/lib/Mustache/Logger (added)
-
tags/1.3.4/lib/Mustache/Logger.php (added)
-
tags/1.3.4/lib/Mustache/Logger/AbstractLogger.php (added)
-
tags/1.3.4/lib/Mustache/Logger/StreamLogger.php (added)
-
tags/1.3.4/lib/Mustache/Parser.php (added)
-
tags/1.3.4/lib/Mustache/Template.php (added)
-
tags/1.3.4/lib/Mustache/Tokenizer.php (added)
-
tags/1.3.4/lib/class-wp-list-table.php (added)
-
tags/1.3.4/lib/wp-settings-framework.php (added)
-
tags/1.3.4/readme.txt (added)
-
tags/1.3.4/settings (added)
-
tags/1.3.4/settings/smt-gapi.php (added)
-
tags/1.3.4/settings/smt-general.php (added)
-
tags/1.3.4/smt-dashboard-debug.php (added)
-
tags/1.3.4/smt-dashboard.php (added)
-
tags/1.3.4/smt-export.php (added)
-
tags/1.3.4/social-metrics-tracker.php (added)
-
tags/1.3.4/templates (added)
-
tags/1.3.4/templates/example.mustache (added)
-
tags/1.3.4/uninstall.php (added)
-
trunk/data-sources/FacebookUpdater.class.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/social-metrics-tracker.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-metrics-tracker/trunk/data-sources/FacebookUpdater.class.php
r1026007 r1064280 11 11 public $name = 'Facebook'; 12 12 13 private $uri = 'https:// api.facebook.com/method/links.getStats';13 private $uri = 'https://graph.facebook.com/2.0/fql'; 14 14 15 15 public function __construct() { … … 20 20 parent::setparams($post_id, $post_url); 21 21 22 $url = $this->updater->post_url; 23 22 24 $this->updater->resource_params = array( 23 'format' => 'json',24 ' urls' => $this->updater->post_url25 // This FQL query will be URL encoded by http_build_query() 26 'q' => "SELECT url, share_count, like_count, comment_count, total_count, click_count FROM link_stat where url='$url'" 25 27 ); 26 28 } … … 32 34 $updater->meta = array(); 33 35 $updater->meta[$this->updater->meta_prefix.$this->updater->slug] = $this->get_total(); 34 $updater->meta['facebook_comments'] = $updater->data[ 0]['comment_count'];35 $updater->meta['facebook_shares'] = $updater->data[ 0]['share_count'];36 $updater->meta['facebook_likes'] = $updater->data[ 0]['like_count'];36 $updater->meta['facebook_comments'] = $updater->data['data'][0]['comment_count']; 37 $updater->meta['facebook_shares'] = $updater->data['data'][0]['share_count']; 38 $updater->meta['facebook_likes'] = $updater->data['data'][0]['like_count']; 37 39 } 38 40 39 41 public function get_total() { 40 return ($this->updater->data === null) ? 0 : $this->updater->data[ 0]['total_count'];42 return ($this->updater->data === null) ? 0 : $this->updater->data['data'][0]['total_count']; 41 43 } 42 44 -
social-metrics-tracker/trunk/readme.txt
r1032108 r1064280 2 2 Contributors: bcole808 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K2Z4QFWKJ5DM4 4 Tags: admin, dashboard, social, social media, facebook, twitter, metrics, analytics, tracking, engagement, share, sharing, shares4 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. 07 Stable tag: 1.3. 36 Tested up to: 4.1 7 Stable tag: 1.3.4 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Collects social data and shows you which of your posts are most popular based on how many times each post has been shared on varioussocial networks.11 Collects social data and shows you which posts are most popular based on post shares across popular social networks. 12 12 13 13 … … 37 37 1. Install and activate the WordPress plugin. 38 38 2. Data will automatically begin syncing. This will take some time. 39 3. Review the plugin settings under S ettings > Social Metrics39 3. Review the plugin settings under Social Metrics > Settings 40 40 41 41 If you do not see any statistics on the Social Metrics dashboard, make sure that you have some posts published and that wp-cron.php is working correctly. This plugin relies on the WordPress Cron system to fetch data updates. This plugin will not work on local or development servers where URLs are not publicly accessible. … … 84 84 85 85 == Changelog == 86 87 = 1.3.4 = 88 * Update plugin to use Facebook API v2.0 89 * Removed "Development server notice" for some configurations 90 * IMPORTANT: As of April 30, 2015, versions of this plugin below 1.3.4 will fail to collect data from Facebook; update to this version before then. 86 91 87 92 = 1.3.3 = … … 149 154 == Upgrade Notice == 150 155 156 = 1.3.4 = 157 Important update to the Facebook API 158 151 159 = 1.3.3 = 152 160 Optimize pagination on reporting dashboard -
social-metrics-tracker/trunk/social-metrics-tracker.php
r1032108 r1064280 4 4 Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker 5 5 Description: Collect and display social network shares, likes, tweets, and view counts of posts. 6 Version: 1.3. 36 Version: 1.3.4 7 7 Author: Ben Cole, Chapman University 8 8 Author URI: http://www.bencole.net … … 35 35 class SocialMetricsTracker { 36 36 37 public $version = '1.3. 3'; // for db upgrade comparison37 public $version = '1.3.4'; // for db upgrade comparison 38 38 public $updater; 39 39 public $options; … … 96 96 // Determines if we are on a development or staging environment 97 97 public function is_development_server() { 98 return ( (defined('WP_ENV') && strtolower(WP_ENV) != 'production') || (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] == '127.0.0.1'));98 return (defined('WP_ENV') && strtolower(WP_ENV) != 'production'); 99 99 } 100 100 … … 108 108 } 109 109 110 $message = '<h3 style="margin-top:0;">Social Metrics data syncing is disabled</h3> You are on a development server; Social Network share data cannot be retrieved for private development URLs. <ul>'; 111 112 if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1') { 113 $message .= "<li>The server IP address appears to be set to 127.0.0.1 which is a local address. </li>"; 114 } 115 116 if (defined('WP_ENV') && strtolower(WP_ENV) != 'production') { 117 $message .= "<li>The PHP constant <b>WP_ENV</b> must be set to <b>production</b> or be undefined. WP_ENV is currently set to: <b>".WP_ENV."</b>. </li>"; 118 } 119 120 $message .= '</ul>'; 110 $message = '<h3 style="margin-top:0;">Social Metrics data syncing is disabled</h3> You are on a development server; Social Network share data cannot be retrieved for private development URLs. '; 111 112 $message .= "<ul><li>The PHP constant <b>WP_ENV</b> must be set to <b>production</b> or be undefined. WP_ENV is currently set to: <b>".WP_ENV."</b>. </li></ul>"; 121 113 122 114 printf( '<div class="error"> <p> %s </p> </div>', $message);
Note: See TracChangeset
for help on using the changeset viewer.