Plugin Directory

Changeset 933293


Ignore:
Timestamp:
06/16/2014 09:05:21 PM (12 years ago)
Author:
chartbeat
Message:

Remove Newsbeat reference, update json encoding

Location:
chartbeat/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chartbeat/trunk/chartbeat.php

    r723225 r933293  
    266266        var _sf_async_config={};
    267267        _sf_async_config.uid = <?php echo intval( $user_id ); ?>;
    268         _sf_async_config.useCanonical = <?php echo $use_canonical; ?>;
     268        _sf_async_config.useCanonical = <?php echo esc_js( $use_canonical ); ?>;
    269269        <?php
    270270        $enable_newsbeat = get_option('chartbeat_enable_newsbeat');
     
    337337    }
    338338
    339     function widget( $args ) {
     339    function widget( $args, $instance ) {
    340340        extract( $args );
    341341        echo $before_widget;
     
    348348        <script type="text/javascript">
    349349        var options = { };
    350         new CBTopPagesWidget( <?php echo get_option('chartbeat_widgetconfig'); ?> );
     350        new CBTopPagesWidget( <?php echo json_encode( json_decode( get_option('chartbeat_widgetconfig') ) ); ?> );
    351351        </script>
    352352        <?php
     
    381381    }
    382382   
    383     echo $response;
     383    echo json_encode( json_decode( $response ) );
    384384    exit;
    385385}
     
    542542            function(data) {
    543543                if ( !data.visits ) data.visits = 0;
    544                 jQuery('#post-<?php echo $id; ?> .cb_visits').append(data.visits);
     544                jQuery('#post-<?php echo absint( $id ); ?> .cb_visits').append(data.visits);
    545545            }
    546546        );
  • chartbeat/trunk/readme.txt

    r723225 r933293  
    44Requires at least: 2.8
    55Tested up to: 3.5.1
    6 Stable tag: 2.0.3
     6Stable tag: 2.0.4
    77
    88The Chartbeat plugin automatically adds real-time data and a top pages widget to your blog. See who’s on your site, what they’re doing - right now
     
    17172. Activate the plugin through the 'Plugins' menu in WordPress
    18183. Under Settings > Chartbeat, add your User ID
    19 4. You may also add your API key and configure the widget (API key must have "all" persmissions).
    20 5. Select Newsbeat if you're using it
     194. You may also add your API key and configure the widget (API key must have "all" permissions).
     205. Select Chartbeat Publishing if you're using it
    21216. If you want to use the widget, drag it into your sidebar under Appearance > Widgets
    2222
     
    2828= What is Chartbeat? =
    2929
    30 We’re a real-time data service used by everyone from Foursquare to FoxNews to your mom’s blog (well, someone’s mom’s blog, if not yours.)
     30We’re a real-time data service used by everyone from Foursquare to Financial Times to your mom’s blog (well, someone’s mom’s blog, if not yours.)
    3131
    3232Use Chartbeat (and this plugin) to see how many people are on your site and what they’re up to while they’re there, so you can take smarter real-time actions. Check it out for yourself by playing with our [demo](http://chartbeat.com/demo/) and sign up for [a free trial](https://chartbeat.com/signup/)!
     
    5151
    5252= 1.0 =
    53 * First verison. Please provide feedback.
     53* First version. Please provide feedback.
    5454
    5555= 1.2 =
     
    7272
    7373= 2.0.3 =
    74 * Fixed issure where the Chartbeat console's iframe was too short to be usable
     74* Fixed issue where the Chartbeat console's iframe was too short to be usable
     75
     76= 2.0.4 =
     77* Remove Newsbeat reference, update json encoding
Note: See TracChangeset for help on using the changeset viewer.