Plugin Directory

Changeset 1145252


Ignore:
Timestamp:
04/24/2015 10:50:44 PM (11 years ago)
Author:
bcole808
Message:

Release of v1.5.0

Location:
social-metrics-tracker
Files:
109 added
1 deleted
12 edited

Legend:

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

    r1092718 r1145252  
    1111
    1212require_once('data-sources/HTTPResourceUpdater.class.php');
    13 require_once('data-sources/FacebookUpdater.class.php');
     13require_once('data-sources/FacebookGraphUpdater.class.php');
     14require_once('data-sources/FacebookPublicUpdater.class.php');
    1415require_once('data-sources/TwitterUpdater.class.php');
    1516require_once('data-sources/LinkedInUpdater.class.php');
     
    5051        }
    5152
    52         // Import adapters for 3rd party services
    53         if (!isset($this->sources->FacebookUpdater))    $this->sources->FacebookUpdater    = new FacebookUpdater();
    54         if (!isset($this->sources->TwitterUpdater))     $this->sources->TwitterUpdater     = new TwitterUpdater();
    55         if (!isset($this->sources->LinkedInUpdater))    $this->sources->LinkedInUpdater    = new LinkedInUpdater();
    56         if (!isset($this->sources->GooglePlusUpdater))  $this->sources->GooglePlusUpdater  = new GooglePlusUpdater();
    57         if (!isset($this->sources->PinterestUpdater))   $this->sources->PinterestUpdater   = new PinterestUpdater();
    58         if (!isset($this->sources->StumbleUponUpdater)) $this->sources->StumbleUponUpdater = new StumbleUponUpdater();
     53        // Setup adapter for Facebook updater service
     54        if ($this->smt->get_smt_option('connection_type_facebook') == 'graph') {
     55            // Graph:
     56            $preferred_facebook_updater = new FacebookGraphUpdater();
     57            $preferred_facebook_updater->setAccessToken($this->smt->get_smt_option('facebook_access_token'));
     58        } else {
     59            // Public / Default:
     60            $preferred_facebook_updater = new FacebookPublicUpdater();
     61        }
     62
     63        // Set adapters for all services
     64        if (!isset($this->sources->FacebookUpdater))       $this->sources->FacebookUpdater       = $preferred_facebook_updater;
     65        if (!isset($this->sources->TwitterUpdater))        $this->sources->TwitterUpdater        = new TwitterUpdater();
     66        if (!isset($this->sources->LinkedInUpdater))       $this->sources->LinkedInUpdater       = new LinkedInUpdater();
     67        if (!isset($this->sources->GooglePlusUpdater))     $this->sources->GooglePlusUpdater     = new GooglePlusUpdater();
     68        if (!isset($this->sources->PinterestUpdater))      $this->sources->PinterestUpdater      = new PinterestUpdater();
     69        if (!isset($this->sources->StumbleUponUpdater))    $this->sources->StumbleUponUpdater    = new StumbleUponUpdater();
    5970
    6071        return $this->dataSourcesReady = true;
  • social-metrics-tracker/trunk/SocialMetricsDebugger.class.php

    r1026007 r1145252  
    5555        $result = $HTTPResourceUpdater->fetch(true);
    5656
     57        $http_error_detail = array(
     58            'request_time'     => current_time('mysql'),
     59            'request_method'   => $HTTPResourceUpdater->resource_request_method,
     60            'request_uri'      => $HTTPResourceUpdater->resource_uri,
     61            'request_response' => $result
     62        );
     63
    5764        // If the connection did not fail, check to make sure we received data!
    5865        if ($result !== false && $HTTPResourceUpdater->get_total() <= 0) {
    59             $HTTPResourceUpdater->wpcb->reportFailure('The connection was successful, but we did not receive the expected data from the social network.');
     66            $HTTPResourceUpdater->wpcb->reportFailure('The connection was successful, but we did not receive the expected data from the social network.', $http_error_detail);
    6067        }
    6168
  • social-metrics-tracker/trunk/SocialMetricsSettings.class.php

    r1104324 r1145252  
    77    private $wpsf;
    88
     9    private $facebook_auth_error;
     10
    911    function __construct($smt) {
    1012
     
    1921            $this->wpsf = new WordPressSettingsFramework( plugin_dir_path( __FILE__ ) .'settings/smt-'.$this->section.'.php', 'smt' );
    2022        }
    21    
     23
    2224    }
    2325
     
    3840                    'url'     => 'admin.php?page=social-metrics-tracker-settings',
    3941                    'current' => $this->section == 'general'
     42                ),
     43                array(
     44                    'slug'    => 'connections',
     45                    'label'   => 'API Connection Settings',
     46                    'url'     => add_query_arg('section', 'connections'),
     47                    'current' => $this->section == 'connections'
    4048                ),
    4149                array(
     
    5159                    'current' => $this->section == 'urls'
    5260                ),
    53                 // array(
    54                 //  'slug'    => 'test',
    55                 //  'label'   => 'URL Debug / Test Tool',
    56                 //  'url'     => add_query_arg('section', 'test'),
    57                 //  'current' => $this->section == 'test'
    58                 // )
    5961            )
    6062        );
     
    7375                if (isset($_GET['go_to_step']) && $_GET['go_to_step']) $this->gapi->go_to_step($_GET['go_to_step']);
    7476
     77                break;
     78
     79            case 'connections':
     80                if (count($_POST) > 0) {
     81                    $this->process_connections_form();
     82                }
    7583                break;
    7684
     
    113121        if (!isset($_POST) || count($_POST) == 0) return;
    114122        $this->smt->merge_smt_options($_POST['smt_settings']);
     123    }
     124
     125    function connections_section() {
     126
     127        $args = array(
     128            'facebook_public_checked' => checked('public', $this->smt->get_smt_option('connection_type_facebook'), false),
     129            'facebook_graph_checked'  => checked('graph',  $this->smt->get_smt_option('connection_type_facebook'), false),
     130            'facebook_access_token_valid' => strlen($this->smt->get_smt_option('facebook_access_token')) > 0,
     131            'facebook_auth_error' => $this->facebook_auth_error,
     132            'fb_app_id'     => isset($_POST['fb_app_id']) ? $_POST['fb_app_id'] : '',
     133            'fb_app_secret' => isset($_POST['fb_app_secret']) ? $_POST['fb_app_secret'] : '',
     134        );
     135
     136        print($this->smt->renderTemplate('settings-connections', $args));
     137    }
     138
     139    function process_connections_form() {
     140        if (!isset($_POST) || count($_POST) == 0) return;
     141
     142        // Save FB connection type
     143        $this->smt->set_smt_option('connection_type_facebook', $_POST['connection_type_facebook']);
     144
     145        // Process token delete request
     146        if ($_POST['action'] == 'Delete saved access token') {
     147            $this->smt->delete_smt_option('facebook_access_token');
     148        }
     149
     150        // Generate Access Token
     151        if ($_POST['action'] == 'Save Changes' && ($_POST['fb_app_id'] || $_POST['fb_app_secret']) ) {
     152
     153            // Need this to verify token
     154            $fb = new FacebookGraphUpdater();
     155
     156            if (strlen($_POST['fb_app_id']) == 0) {
     157                $this->facebook_auth_error = 'You must enter an App ID';
     158
     159            } elseif (strlen($_POST['fb_app_secret']) == 0) {
     160                $this->facebook_auth_error = 'You must enter an App Secret';
     161
     162            } elseif (false === $access_token = $fb->requestAccessToken($_POST['fb_app_id'], $_POST['fb_app_secret'])) {
     163                $this->facebook_auth_error = 'The info you entered did not validate with Facebook.';
     164
     165                if ($fb->error_message) {
     166                    $this->facebook_auth_error .= ' Facebook said: '.$fb->error_message;
     167                }
     168
     169            } else {
     170                // Save the valid access token!
     171                $this->smt->set_smt_option('facebook_access_token', $access_token);
     172
     173            }
     174
     175        }
     176
    115177    }
    116178
  • social-metrics-tracker/trunk/SocialMetricsTrackerWidget.class.php

    r1112300 r1145252  
    1212class SocialMetricsTrackerWidget extends WP_List_Table {
    1313
     14    private $smt, $gapi, $data_max;
    1415
    1516    function __construct($smt){
  • social-metrics-tracker/trunk/css/social-metrics-tracker.min.css

    r1112300 r1145252  
    1 #social-metrics-tracker .wp-list-table #views,#social-metrics-tracker .wp-list-table #comments{width:15%}#social-metrics-tracker .wp-list-table #social{width:25%}#dashboard-widgets #social-metrics-tracker .wp-list-table #social{width:auto}#social-metrics-tracker .wp-list-table #views a,#social-metrics-tracker .wp-list-table #social a,#social-metrics-tracker .wp-list-table #comments a{width:90%}#social-metrics-tracker .wp-list-table thead .column-views a span,#social-metrics-tracker .wp-list-table thead .column-social a span,#social-metrics-tracker .wp-list-table thead .column-comments a span,#social-metrics-tracker .wp-list-table tfoot .column-views a span,#social-metrics-tracker .wp-list-table tfoot .column-social a span,#social-metrics-tracker .wp-list-table tfoot .column-comments a span{float:right}#social-metrics-tracker .wp-list-table tfoot .column-social a,#social-metrics-tracker .wp-list-table tfoot .column-comments a{float:right;padding-right:17px}#social-metrics-tracker .wp-list-table #views .sorting-indicator,#social-metrics-tracker .wp-list-table #social .sorting-indicator,#social-metrics-tracker .wp-list-table #comments .sorting-indicator{margin:7px}#social-metrics-tracker .wp-list-table td.date{color:#666;font-size:10px}#social-metrics-tracker .wp-list-table td.views,#social-metrics-tracker .wp-list-table td.social,#social-metrics-tracker .wp-list-table td.comments{padding:10px;text-align:right}#social-metrics-tracker .wp-list-table .bar,#social-metrics-tracker .wp-list-table .total{border-radius:2px;display:inline-block;float:right}#social-metrics-tracker .wp-list-table .bar{height:20px;margin-left:5px;overflow:visible}#social-metrics-tracker .wp-list-table .bar span{float:left;font-size:9px;font-weight:300;height:20px;line-height:21px;overflow:hidden;text-align:center;text-indent:-9999px}#social-metrics-tracker .wp-list-table td.social .bar{overflow:hidden;-webkit-transition:all 0.3s ease-out;-moz-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;transition:all 0.3s ease-out}#social-metrics-tracker .wp-list-table td.social .bar span{display:inline-block}#social-metrics-tracker .wp-list-table td.social .bar .facebook{background-color:#3b5998;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .twitter{background-color:#00aced;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .googleplus{background-color:#dd4b39;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .linkedin{background-color:#4875B4;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .pinterest{background-color:#cb2027;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .diggs{background-color:#444444;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .delicious{background-color:#222222;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .reddit{background-color:#CEE3F8;color:#111}#social-metrics-tracker .wp-list-table td.social .bar .stumbleupon{background-color:#EA4B24;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .other{background-color:#666666;color:#EEE}#social-metrics-tracker .wp-list-table tr:hover td.social .bar{min-width:80%;opacity:0.9}#social-metrics-tracker .wp-list-table tr:hover td.social .bar span{text-indent:0}#social-metrics-tracker .wp-list-table td.social .bar{max-width:190px;min-width:5px}#social-metrics-tracker .wp-list-table td.views .bar{background-color:#A9243B;color:#EEE;max-width:80%;min-width:18px}#social-metrics-tracker .wp-list-table td.comments .bar{background-color:#02BAC1;color:#EEE;max-width:80%;min-width:18px}#social-metrics-tracker .wp-list-table td .total{height:16px;overflow:hidden}#social-metrics-tracker .wp-list-table td.social .total{padding:2px 5px}#social-metrics-tracker .wp-list-table td.views .total{background-color:#A9243B;padding:2px 5px}#social-metrics-tracker .wp-list-table td.comments .total{background-color:#02BAC1;padding:2px 5px}#social-metrics-tracker .wp-list-table td.decayed .bar{background-color:#555;color:#EEE;line-height:19px;max-width:80%;min-width:32px;padding-right:5px}#social-metrics-tracker .wp-list-table td.aggregate .bar .social{background-color:#3B5998;color:#CCC;display:inline-block}#social-metrics-tracker .wp-list-table td.aggregate .bar .views{background-color:#A9243B;color:#EEE;display:inline-block}#social-metrics-tracker .wp-list-table td.aggregate .bar .comments{background-color:#02BAC1;color:#CCC;display:inline-block}#social-metrics-tracker .wp-list-table tr:hover td.aggregate .bar.stats span{text-indent:0}#social-metrics-tracker .wp-list-table td.aggregate .bar{-webkit-transition:all 0.1s ease-out;-moz-transition:all 0.1s ease-out;-o-transition:all 0.1s ease-out;transition:all 0.1s ease-out}#social-metrics-tracker .wp-list-table td.aggregate .bar:hover{min-width:80%;opacity:0.9}#social-metrics-tracker .wp-list-table td.aggregate .bar:hover span{text-indent:0}#dashboard-widgets #social-metrics-tracker .inside{margin:0;padding:0}#dashboard-widgets #social-metrics-tracker .tablenav.top{display:none}#dashboard-widgets #social-metrics-tracker .tablenav.bottom{height:auto}#dashboard-widgets #social-metrics-tracker .tablenav.bottom p{color:#AAA;font-style:italic}#dashboard-widgets #social-metrics-tracker .tablenav-pages{display:none}#dashboard-widgets #social-metrics-tracker .wp-list-table{border-left:none;border-right:none;border-top:none}#dashboard-widgets #social-metrics-tracker th{padding-right:10px;text-align:right}#dashboard-widgets #social-metrics-tracker th:first-of-type{text-align:left}#dashboard-widgets #social-metrics-tracker tfoot{display:none}.social-metrics_page_social-metrics-tracker-settings .wrap{max-width:900px}#smt_gapi_steps{display:block;width:100%;min-width:850px;margin:0;padding:0;overflow:hidden;list-style:none;border:1px solid #AAA;background:#C1C1C1}#smt_gapi_steps li{display:block;float:left;margin:0}#smt_gapi_steps li .btn{display:block;position:relative;padding:10px 0 10px 45px;text-decoration:none;background:#C1C1C1;color:#666666;cursor:default}#smt_gapi_steps li a.btn:hover{text-decoration:underline;cursor:pointer}#smt_gapi_steps li:first-child .btn{padding-left:15px}#smt_gapi_steps li .btn:after{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid #C1C1C1;position:absolute;top:50%;margin-top:-50px;left:100%;z-index:2}#smt_gapi_steps li .btn:before{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid white;position:absolute;top:50%;margin-top:-50px;margin-left:1px;left:100%;z-index:1}#smt_gapi_steps li:last-child .btn{padding-right:15px}#smt_gapi_steps li:last-child .btn:after,#smt_gapi_steps li:last-child .btn:before{display:none}#smt_gapi_steps li.done .btn{background:#008000;color:#94C692}#smt_gapi_steps li.done .btn:after{border-left-color:#008000}#smt_gapi_steps li.current .btn{background:#043D50;color:#FFFFFF}#smt_gapi_steps li.current .btn:after{border-left-color:#043D50}#smt_gapi_steps.ready{background:#008000}#smt_gapi_steps.ready .current .btn{background:#008000}#gapi-sign-in{display:block;max-width:350px;margin:0 auto;text-align:center}.blue-box{background:#CDE0FF;border:1px solid #96BFFF}.blue-box th{padding-left:20px}.yellow-box{background:#FFF7E7;border:1px solid #C6C1B3;margin-bottom:15px}.yellow-box th{padding-left:20px}div.yellow-box{padding:0 15px;margin:15px 0}#smt-connection-status{display:block;clear:both;background:#FFF;border:1px solid #DDD;padding:5px 10px;margin:15px 0 30px 0;overflow:auto}#smt-connection-status .smt-debug-box{width:100%;min-height:300px;font-family:monospace;font-size:12px;border:1px solid #DDD;padding:10px}#smt-connection-status small{color:#AAA;font-size:11px}.smt-connection-item{display:block;position:relative;padding:10px 20px 10px 28px;color:#666}.smt-connection-item:before{content:"";position:absolute;left:10px;top:13px;display:block;background:black;border-radius:100%;height:12px;width:12px;margin:0}.smt-connection-item.online:before{background:radial-gradient(circle at 3px 3px, #00b464, rgba(80,80,80,0.9))}.smt-connection-item.offline:before{background:radial-gradient(circle at 3px 3px, #b43200, rgba(80,80,80,0.9))}button.smt-connection-item{float:right;background:none;border:none;cursor:pointer;padding-right:0}button.smt-connection-item:hover{text-decoration:underline}button.smt-connection-item:focus{outline:none}.toplevel_page_social-metrics-tracker .smt-stat-details ol{margin-top:0}.toplevel_page_social-metrics-tracker .smt-stat-details li{color:#999;font-size:11px;margin-bottom:0}.toplevel_page_social-metrics-tracker .smt-stat-details .detail-heading{font-weight:bold;margin:12px 0 6px 0}.toplevel_page_social-metrics-tracker .smt-stat-details .smt-url-box{cursor:text;font-size:11px;border:1px solid #E7E7E7;background:#FFFFFF;width:50%}.toplevel_page_social-metrics-tracker .smt-stat-details .info{margin-left:6px;color:#ddd}.toplevel_page_social-metrics-tracker .smt-stat-details .more-info{margin-left:6px;color:#CCC}.toplevel_page_social-metrics-tracker .smt-stat-details .more-info:hover{color:#2ea2cc}.toplevel_page_social-metrics-tracker .smt-stat-details .smt-stat-row{margin-bottom:15px}.social-metrics_page_social-metrics-tracker-settings .smt-url-box{color:#333;width:90%}.social-metrics_page_social-metrics-tracker-settings .more-info{margin-left:6px;color:#CCC}.social-metrics_page_social-metrics-tracker-settings .more-info:hover{color:#2ea2cc}.social-metrics_page_social-metrics-tracker-settings .box{background:#f9f9f9;border:1px solid #e1e1e1;padding:30px}.social-metrics_page_social-metrics-tracker-settings .box label{display:block;color:#999;margin-top:8px}.social-metrics_page_social-metrics-tracker-settings .box h1:first-child,.social-metrics_page_social-metrics-tracker-settings .box h2:first-child,.social-metrics_page_social-metrics-tracker-settings .box h3:first-child,.social-metrics_page_social-metrics-tracker-settings .box h4:first-child,.social-metrics_page_social-metrics-tracker-settings .box h5:first-child,.social-metrics_page_social-metrics-tracker-settings .box h6:first-child,.social-metrics_page_social-metrics-tracker-settings .box p:first-child{margin-top:0}.social-metrics_page_social-metrics-tracker-settings .box h1:last-child,.social-metrics_page_social-metrics-tracker-settings .box h2:last-child,.social-metrics_page_social-metrics-tracker-settings .box h3:last-child,.social-metrics_page_social-metrics-tracker-settings .box h4:last-child,.social-metrics_page_social-metrics-tracker-settings .box h5:last-child,.social-metrics_page_social-metrics-tracker-settings .box h6:last-child,.social-metrics_page_social-metrics-tracker-settings .box p:last-child{margin-bottom:0}.social-metrics_page_social-metrics-tracker-settings .box blockquote{border-left:5px solid #DDD;margin-left:0;padding:11px;background:#F2F2F2;color:#626262}.social-metrics_page_social-metrics-tracker-settings .invalid{background:#FFF0F0}.social-metrics_page_social-metrics-tracker-settings .valid{background:#F0FFF0}
     1#social-metrics-tracker .wp-list-table #views,#social-metrics-tracker .wp-list-table #comments{width:15%}#social-metrics-tracker .wp-list-table #social{width:25%}#dashboard-widgets #social-metrics-tracker .wp-list-table #social{width:auto}#social-metrics-tracker .wp-list-table #views a,#social-metrics-tracker .wp-list-table #social a,#social-metrics-tracker .wp-list-table #comments a{width:90%}#social-metrics-tracker .wp-list-table thead .column-views a span,#social-metrics-tracker .wp-list-table thead .column-social a span,#social-metrics-tracker .wp-list-table thead .column-comments a span,#social-metrics-tracker .wp-list-table tfoot .column-views a span,#social-metrics-tracker .wp-list-table tfoot .column-social a span,#social-metrics-tracker .wp-list-table tfoot .column-comments a span{float:right}#social-metrics-tracker .wp-list-table tfoot .column-social a,#social-metrics-tracker .wp-list-table tfoot .column-comments a{float:right;padding-right:17px}#social-metrics-tracker .wp-list-table #views .sorting-indicator,#social-metrics-tracker .wp-list-table #social .sorting-indicator,#social-metrics-tracker .wp-list-table #comments .sorting-indicator{margin:7px}#social-metrics-tracker .wp-list-table td.date{color:#666;font-size:10px}#social-metrics-tracker .wp-list-table td.views,#social-metrics-tracker .wp-list-table td.social,#social-metrics-tracker .wp-list-table td.comments{padding:10px;text-align:right}#social-metrics-tracker .wp-list-table .bar,#social-metrics-tracker .wp-list-table .total{border-radius:2px;display:inline-block;float:right}#social-metrics-tracker .wp-list-table .bar{height:20px;margin-left:5px;overflow:visible}#social-metrics-tracker .wp-list-table .bar span{float:left;font-size:9px;font-weight:300;height:20px;line-height:21px;overflow:hidden;text-align:center;text-indent:-9999px}#social-metrics-tracker .wp-list-table td.social .bar{overflow:hidden;-webkit-transition:all 0.3s ease-out;-moz-transition:all 0.3s ease-out;-o-transition:all 0.3s ease-out;transition:all 0.3s ease-out}#social-metrics-tracker .wp-list-table td.social .bar span{display:inline-block}#social-metrics-tracker .wp-list-table td.social .bar .facebook{background-color:#3b5998;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .twitter{background-color:#00aced;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .googleplus{background-color:#dd4b39;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .linkedin{background-color:#4875B4;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .pinterest{background-color:#cb2027;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .diggs{background-color:#444444;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .delicious{background-color:#222222;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .reddit{background-color:#CEE3F8;color:#111}#social-metrics-tracker .wp-list-table td.social .bar .stumbleupon{background-color:#EA4B24;color:#EEE}#social-metrics-tracker .wp-list-table td.social .bar .other{background-color:#666666;color:#EEE}#social-metrics-tracker .wp-list-table tr:hover td.social .bar{min-width:80%;opacity:0.9}#social-metrics-tracker .wp-list-table tr:hover td.social .bar span{text-indent:0}#social-metrics-tracker .wp-list-table td.social .bar{max-width:190px;min-width:5px}#social-metrics-tracker .wp-list-table td.views .bar{background-color:#A9243B;color:#EEE;max-width:80%;min-width:18px}#social-metrics-tracker .wp-list-table td.comments .bar{background-color:#02BAC1;color:#EEE;max-width:80%;min-width:18px}#social-metrics-tracker .wp-list-table td .total{height:16px;overflow:hidden}#social-metrics-tracker .wp-list-table td.social .total{padding:2px 5px}#social-metrics-tracker .wp-list-table td.views .total{background-color:#A9243B;padding:2px 5px}#social-metrics-tracker .wp-list-table td.comments .total{background-color:#02BAC1;padding:2px 5px}#social-metrics-tracker .wp-list-table td.decayed .bar{background-color:#555;color:#EEE;line-height:19px;max-width:80%;min-width:32px;padding-right:5px}#social-metrics-tracker .wp-list-table td.aggregate .bar .social{background-color:#3B5998;color:#CCC;display:inline-block}#social-metrics-tracker .wp-list-table td.aggregate .bar .views{background-color:#A9243B;color:#EEE;display:inline-block}#social-metrics-tracker .wp-list-table td.aggregate .bar .comments{background-color:#02BAC1;color:#CCC;display:inline-block}#social-metrics-tracker .wp-list-table tr:hover td.aggregate .bar.stats span{text-indent:0}#social-metrics-tracker .wp-list-table td.aggregate .bar{-webkit-transition:all 0.1s ease-out;-moz-transition:all 0.1s ease-out;-o-transition:all 0.1s ease-out;transition:all 0.1s ease-out}#social-metrics-tracker .wp-list-table td.aggregate .bar:hover{min-width:80%;opacity:0.9}#social-metrics-tracker .wp-list-table td.aggregate .bar:hover span{text-indent:0}#dashboard-widgets #social-metrics-tracker .inside{margin:0;padding:0}#dashboard-widgets #social-metrics-tracker .tablenav.top{display:none}#dashboard-widgets #social-metrics-tracker .tablenav.bottom{height:auto}#dashboard-widgets #social-metrics-tracker .tablenav.bottom p{color:#AAA;font-style:italic}#dashboard-widgets #social-metrics-tracker .tablenav-pages{display:none}#dashboard-widgets #social-metrics-tracker .wp-list-table{border-left:none;border-right:none;border-top:none}#dashboard-widgets #social-metrics-tracker th{padding-right:10px;text-align:right}#dashboard-widgets #social-metrics-tracker th:first-of-type{text-align:left}#dashboard-widgets #social-metrics-tracker tfoot{display:none}.social-metrics_page_social-metrics-tracker-settings .wrap{max-width:900px}#smt_gapi_steps{display:block;width:100%;min-width:850px;margin:0;padding:0;overflow:hidden;list-style:none;border:1px solid #AAA;background:#C1C1C1}#smt_gapi_steps li{display:block;float:left;margin:0}#smt_gapi_steps li .btn{display:block;position:relative;padding:10px 0 10px 45px;text-decoration:none;background:#C1C1C1;color:#666666;cursor:default}#smt_gapi_steps li a.btn:hover{text-decoration:underline;cursor:pointer}#smt_gapi_steps li:first-child .btn{padding-left:15px}#smt_gapi_steps li .btn:after{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid #C1C1C1;position:absolute;top:50%;margin-top:-50px;left:100%;z-index:2}#smt_gapi_steps li .btn:before{content:" ";display:block;width:0;height:0;border-top:50px solid transparent;border-bottom:50px solid transparent;border-left:30px solid white;position:absolute;top:50%;margin-top:-50px;margin-left:1px;left:100%;z-index:1}#smt_gapi_steps li:last-child .btn{padding-right:15px}#smt_gapi_steps li:last-child .btn:after,#smt_gapi_steps li:last-child .btn:before{display:none}#smt_gapi_steps li.done .btn{background:#008000;color:#94C692}#smt_gapi_steps li.done .btn:after{border-left-color:#008000}#smt_gapi_steps li.current .btn{background:#043D50;color:#FFFFFF}#smt_gapi_steps li.current .btn:after{border-left-color:#043D50}#smt_gapi_steps.ready{background:#008000}#smt_gapi_steps.ready .current .btn{background:#008000}#gapi-sign-in{display:block;max-width:350px;margin:0 auto;text-align:center}.blue-box{background:#CDE0FF;border:1px solid #96BFFF}.blue-box th{padding-left:20px}.yellow-box{background:#FFF7E7;border:1px solid #C6C1B3;margin-bottom:15px}.yellow-box th{padding-left:20px}div.yellow-box{padding:0 15px;margin:15px 0}#smt-connection-status{display:block;clear:both;background:#FFF;border:1px solid #DDD;padding:5px 10px;margin:15px 0 30px 0;overflow:auto}#smt-connection-status .smt-debug-box{width:100%;min-height:300px;font-family:monospace;font-size:12px;border:1px solid #DDD;padding:10px}#smt-connection-status small{color:#AAA;font-size:11px}.smt-connection-item{display:block;position:relative;padding:10px 20px 10px 28px;color:#666}.smt-connection-item:before{content:"";position:absolute;left:10px;top:13px;display:block;background:black;border-radius:100%;height:12px;width:12px;margin:0}.smt-connection-item.online:before{background:radial-gradient(circle at 3px 3px, #00b464, rgba(80,80,80,0.9))}.smt-connection-item.offline:before{background:radial-gradient(circle at 3px 3px, #b43200, rgba(80,80,80,0.9))}button.smt-connection-item{float:right;background:none;border:none;cursor:pointer;padding-right:0}button.smt-connection-item:hover{text-decoration:underline}button.smt-connection-item:focus{outline:none}.toplevel_page_social-metrics-tracker .smt-stat-details ol{margin-top:0}.toplevel_page_social-metrics-tracker .smt-stat-details li{color:#999;font-size:11px;margin-bottom:0}.toplevel_page_social-metrics-tracker .smt-stat-details .detail-heading{font-weight:bold;margin:12px 0 6px 0}.toplevel_page_social-metrics-tracker .smt-stat-details .smt-url-box{cursor:text;font-size:11px;border:1px solid #E7E7E7;background:#FFFFFF;width:50%}.toplevel_page_social-metrics-tracker .smt-stat-details .info{margin-left:6px;color:#ddd}.toplevel_page_social-metrics-tracker .smt-stat-details .more-info{margin-left:6px;color:#CCC}.toplevel_page_social-metrics-tracker .smt-stat-details .more-info:hover{color:#2ea2cc}.toplevel_page_social-metrics-tracker .smt-stat-details .smt-stat-row{margin-bottom:15px}.social-metrics_page_social-metrics-tracker-settings .smt-url-box{color:#333;width:90%}.social-metrics_page_social-metrics-tracker-settings .more-info{margin-left:6px;color:#CCC}.social-metrics_page_social-metrics-tracker-settings .more-info:hover{color:#2ea2cc}.social-metrics_page_social-metrics-tracker-settings .box{background:#f9f9f9;border:1px solid #e1e1e1;padding:30px}.social-metrics_page_social-metrics-tracker-settings .box .label{display:block;color:#999;margin-top:8px}.social-metrics_page_social-metrics-tracker-settings .box .label h3{display:inline-block}.social-metrics_page_social-metrics-tracker-settings .box h1:first-child,.social-metrics_page_social-metrics-tracker-settings .box h2:first-child,.social-metrics_page_social-metrics-tracker-settings .box h3:first-child,.social-metrics_page_social-metrics-tracker-settings .box h4:first-child,.social-metrics_page_social-metrics-tracker-settings .box h5:first-child,.social-metrics_page_social-metrics-tracker-settings .box h6:first-child,.social-metrics_page_social-metrics-tracker-settings .box p:first-child{margin-top:0}.social-metrics_page_social-metrics-tracker-settings .box h1:last-child,.social-metrics_page_social-metrics-tracker-settings .box h2:last-child,.social-metrics_page_social-metrics-tracker-settings .box h3:last-child,.social-metrics_page_social-metrics-tracker-settings .box h4:last-child,.social-metrics_page_social-metrics-tracker-settings .box h5:last-child,.social-metrics_page_social-metrics-tracker-settings .box h6:last-child,.social-metrics_page_social-metrics-tracker-settings .box p:last-child{margin-bottom:0}.social-metrics_page_social-metrics-tracker-settings .box blockquote{border-left:5px solid #DDD;margin-left:0;padding:11px;background:#F2F2F2;color:#626262}.social-metrics_page_social-metrics-tracker-settings .invalid{background:#FFF0F0}.social-metrics_page_social-metrics-tracker-settings .valid{background:#F0FFF0}
    22/*# sourceMappingURL=social-metrics-tracker.min.css.map */
  • social-metrics-tracker/trunk/css/social-metrics-tracker.min.css.map

    r1112300 r1145252  
    11{
    22"version": 3,
    3 "mappings": "AAGA,8FACiD,CAChD,KAAK,CAAE,GAAG,CAGX,8CAA+C,CAC9C,KAAK,CAAE,GAAG,CAIV,iEAA+C,CAC9C,KAAK,CAAE,IAAI,CAOb,mJAEmD,CAClD,KAAK,CAAE,GAAG,CAGX,mZAKqE,CACpE,KAAK,CAAE,KAAK,CAGb,6HACgE,CAC/D,KAAK,CAAE,KAAK,CACZ,aAAa,CAAE,IAAI,CAGpB,sMAEoE,CACnE,MAAM,CAAE,GAAG,CAGZ,8CAA+C,CAC9C,KAAK,CAAE,IAAI,CACX,SAAS,CAAE,IAAI,CAGhB,mJAEmD,CAClD,OAAO,CAAE,IAAI,CACb,UAAU,CAAE,KAAK,CAGlB,yFAC8C,CAC7C,aAAa,CAAE,GAAG,CAClB,OAAO,CAAE,YAAY,CACrB,KAAK,CAAE,KAAK,CAGb,2CAA4C,CAC3C,MAAM,CAAE,IAAI,CACZ,WAAW,CAAE,GAAG,CAChB,QAAQ,CAAE,OAAO,CAGlB,gDAAiD,CAChD,KAAK,CAAE,IAAI,CACX,SAAS,CAAE,GAAG,CACd,WAAW,CAAE,GAAG,CAChB,MAAM,CAAE,IAAI,CACZ,WAAW,CAAE,IAAI,CACjB,QAAQ,CAAE,MAAM,CAChB,UAAU,CAAE,MAAM,CAClB,WAAW,CAAE,OAAO,CAGrB,qDAAsD,CACrD,QAAQ,CAAE,MAAM,CACf,kBAAkB,CAAE,iBAAiB,CAClC,eAAe,CAAE,iBAAiB,CAChC,aAAa,CAAE,iBAAiB,CAC7B,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,CACf,MAAM,CAAE,iBAAiB,CACzB,UAAU,CAAE,OAAO,CACnB,KAAK,CAAE,GAAG,CAGX,6DAAM,CACL,WAAW,CAAE,GAAG,CAChB,KAAK,CAAE,IAAI,CAGZ,kEAAW,CACV,WAAW,CAAE,GAAG,CAChB,KAAK,CAAE,IAAI,CACX,wEAAQ,CACP,KAAK,CAAE,OAAO,CAIhB,qEAAc,CACb,aAAa,CAAE,IAAI,CASrB,iEAAa,CACZ,KAAK,CAAE,IAAI,CACX,KAAK,CAAE,GAAG,CAGX,+DAAW,CACV,WAAW,CAAE,GAAG,CAChB,KAAK,CAAE,IAAI,CACX,qEAAQ,CACP,KAAK,CAAE,OAAO,CAIhB,yDAAK,CACJ,UAAU,CAAE,OAAO,CACnB,MAAM,CAAE,iBAAiB,CACzB,OAAO,CAAE,IAAI,CAEb,gEAAO,CACN,OAAO,CAAE,KAAK,CACd,KAAK,CAAE,IAAI,CACX,UAAU,CAAC,GAAG,CAEd,mEAAG,CACF,OAAO,CAAE,YAAY,CAIvB,6fAMc,CACb,UAAU,CAAE,CAAC,CAGd,sfAMa,CACZ,aAAa,CAAE,CAAC,CAGjB,oEAAW,CACV,WAAW,CAAE,cAAc,CAC3B,WAAW,CAAE,CAAC,CACd,OAAO,CAAE,IAAI,CACb,UAAU,CAAE,OAAO,CACnB,KAAK,CAAE,OAAO,CAKhB,6DAAS,CACR,UAAU,CAAE,OAAO,CAGpB,2DAAO,CACN,UAAU,CAAE,OAAO",
    44"sources": ["social-metrics-tracker.scss"],
    55"names": [],
  • social-metrics-tracker/trunk/css/social-metrics-tracker.scss

    r1112300 r1145252  
    529529        padding: 30px;
    530530
    531         label {
     531        .label {
    532532            display: block;
    533533            color: #999;
    534534            margin-top:8px;
     535
     536            h3 {
     537                display: inline-block;
     538            }
    535539        }
    536540
  • social-metrics-tracker/trunk/data-sources/HTTPResourceUpdater.class.php

    r1112300 r1145252  
    9999        }
    100100
    101         return $this->data = (strlen($result) > 0) ? $this->jsonp_decode($result, true) : false;
     101        // Return either a json_decoded array, or a string, or false (in that order)
     102        if (strlen($result) > 0) {
     103            $decoded_result = $this->jsonp_decode($result, true);
     104            return $this->data = ($decoded_result) ? $decoded_result : $result;
     105        } else {
     106            return $this->data = false;
     107        }
     108
    102109    }
    103110
     
    149156            return false;
    150157        } else if ($response['response']['code'] != 200) {
    151             $this->http_error = "Received HTTP response code: <b>".$response['response']['code']." ".$response['response']['message']."</b>";
     158            $this->http_error = '';
     159
     160            // Attempt to build a helpful error message (provided by Facebook)
     161            $body = $this->jsonp_decode($response['body'], true);
     162
     163            if ($body && strlen($body['error']['message']) > 1) {
     164                $this->http_error .= $body['error']['message'];
     165            }
     166
     167            if ($body && strlen($body['error']['type']) > 1) {
     168                $this->http_error .= ' ('.$body['error']['type'].' '.$body['error']['code'].'). ';
     169            }
     170
     171            // Generic error message
     172            $this->http_error .= "Received HTTP response code: ".$response['response']['code']." ".$response['response']['message'];
     173
    152174            $this->http_error_detail = array(
    153175                'request_time'     => current_time('mysql'),
  • social-metrics-tracker/trunk/readme.txt

    r1112300 r1145252  
    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.1.1
    7 Stable tag: 1.4.5
     6Tested up to: 4.2
     7Stable tag: 1.5.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    9696
    9797== Changelog ==
     98
     99= 1.5.0 =
     100* Compatbility with WordPress 4.2
     101* Fixed a bug where connection debug info sometimes did not get displayed
     102* Updated the way Facebook data is retrieved; added two options to settings page under "API Connection Settings".
     103* IMPORTANT: If you rely on post custom fields for 'facebook_likes', 'facebook_shares', or 'facebook_comments' then you must configure the Facebook API to use "Facebook Graph" mode under the new "API Connection Settings" page. When migrating from a previous version of this plugin, those fields will already exist for your posts and they will simply stop updating if you leave the default settings enabled. To remove those fields, un-install this plugin completely then re-install it.
    98104
    99105= 1.4.5 =
     
    193199== Upgrade Notice ==
    194200
     201= 1.5.0 =
     202Changed the way Facebook data is collected, and compatibility fixes.
     203
    195204= 1.4.5 =
    196205Temporary fix for the Facebook stat updater
  • social-metrics-tracker/trunk/smt-dashboard.php

    r1112300 r1145252  
    1010}
    1111class SocialMetricsTable extends WP_List_Table {
     12
     13    private $smt, $gapi, $data_max;
    1214
    1315    function __construct($smt){
     
    110112            $key = $HTTPResourceUpdater->meta_prefix . $HTTPResourceUpdater->slug;
    111113
    112             if (!array_key_exists($key, $obj)) continue;
     114            if (!is_array($obj) || !array_key_exists($key, $obj)) continue;
    113115
    114116            $sum += $obj[$key];
     
    122124            if (array_key_exists('socialcount_url_data', $obj)) {
    123125                foreach ($obj['socialcount_url_data'] as $child) {
    124                     if (!array_key_exists($key, $child)) continue;
     126                    if (!is_array($child) || !array_key_exists($key, $child)) continue;
    125127                    $sum -= $child[$key];
    126128                    $source['num'] -= $child[$key];
     
    484486                         <a href="javascript:void(0);" onClick="jQuery('#smt-error-details-<?php echo $h->slug; ?>').slideToggle();">[Show debug info]</a>
    485487                         <div id="smt-error-details-<?php echo $h->slug; ?>" style="display:none;">
    486                             <p><b>Debug information: </b>This is a record of the most recent attempt your blog server made at connecting to the social network to retrieve stats. <span style="color:red;">Note: If you post this publicly on the support forums, the information below contains a URL back to one of your blog posts (see "request_uri" below)</span>. </p>
     488                            <p><b>Debug information: </b>This is a record of the most recent attempt your blog server made at connecting to the social network to retrieve stats. <span style="color:red;">Warning: The debug info below may contain your private access_token for Facebook, if you have configured that under Connection Settings (it would be part of 'request_uri' below). It will also contain a URL back to one of your blog posts (see "request_uri" below). If you post this publicly on the support forums, be sure to delete any private information before posting!</span>. </p>
    487489                            <textarea class="smt-debug-box"><?php echo htmlspecialchars(print_r($status['error_detail'], true)); ?></textarea>
    488490                         </div>
  • social-metrics-tracker/trunk/social-metrics-tracker.php

    r1112300 r1145252  
    44Plugin URI: https://github.com/ChapmanU/wp-social-metrics-tracker
    55Description: Collect and display social network shares, likes, tweets, and view counts of posts.
    6 Version: 1.4.5
     6Version: 1.5.0
    77Author: Ben Cole, Chapman University
    88Author URI: http://www.bencole.net
     
    3939class SocialMetricsTracker {
    4040
    41     public $version = '1.4.5'; // for db upgrade comparison
     41    public $version = '1.5.0'; // for db upgrade comparison
    4242    public $updater;
    4343    public $options;
     
    187187        $now = current_time( 'timestamp' );
    188188
    189             $difference     = $now - $time;
     189            $difference    = $now - $time;
    190190            $tense         = "ago";
    191191
     
    282282    public function add_missing_settings() {
    283283        $this->initOptions();
     284
     285        // Configure default options here;
     286        // They will be set only if a value does not already exist in the DB.
     287        $defaults = array(
     288            'connection_type_facebook' => 'public'
     289        );
     290
     291        foreach ($defaults as $key => $value) {
     292            if ($this->get_smt_option($key) === false) {
     293                $this->set_smt_option($key, $value, false);
     294            }
     295        }
     296
     297        // Load defaults from smt-general.php
    284298        require('settings/smt-general.php');
    285299        global $wpsf_settings;
  • social-metrics-tracker/trunk/templates/settings-urls.handlebars

    r1092718 r1145252  
    88    <div class="box">
    99
    10         <label>What URL scheme should the plugin check?</label>
     10        <label class="label">What URL scheme should the plugin check?</label>
    1111        <select id="url_protocol" name="url_protocol">
    1212            {{#each protocol_options}}
     
    3737        <h3>Configuration</h3>
    3838
    39         <label>
     39        <label class="label">
    4040            Migration Date
    4141            <a href="javascript:void(0);" onClick="jQuery('#rewrite_before_date_help').slideToggle();" class="more-info">(More Info)</a>
     
    4848        <br />
    4949
    50         <label>
     50        <label class="label">
    5151            Old Base URL
    5252            <a href="javascript:void(0);" onClick="jQuery('#rewrite_change_to_help').slideToggle();" class="more-info">(More Info)</a>
     
    6262
    6363        <h3>Preview</h3>
    64         <label>
     64        <label class="label">
    6565            Current live post URL:
    6666            <a href="javascript:void(0);" onClick="jQuery('#preview_match_from_help').slideToggle();" class="more-info">(More Info)</a>
     
    7373        </blockquote>
    7474
    75         <label>
     75        <label class="label">
    7676            Matching URL from old domain:
    7777            <a href="javascript:void(0);" onClick="jQuery('#preview_change_to_help').slideToggle();" class="more-info">(More Info)</a>
     
    9696       
    9797
    98         <label>How often should we check for social data?</label>
     98        <label class="label">How often should we check for social data?</label>
    9999        <select id="alt_url_ttl_multiplier" name="alt_url_ttl_multiplier">
    100100            {{#each alt_url_ttl_multiplier_options}}
Note: See TracChangeset for help on using the changeset viewer.