Plugin Directory

Changeset 741270


Ignore:
Timestamp:
07/15/2013 07:47:01 PM (13 years ago)
Author:
dpereyra
Message:

Updated Recent Comments widget to V3

Location:
realtidbits-comments/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • realtidbits-comments/trunk/readme.txt

    r740006 r741270  
    44Requires at least: 2.5
    55Tested up to: 3.5
    6 Stable tag: 1.1.2
     6Stable tag: 1.1.3
    77
    88The RealTidbits comment system replaces your WordPress comment system with comments powered by RealTidbits.
     
    1919
    2020== Changelog ==
     21
     22= 1.1.3 =
     23* Updated Recent Comments widget to V3
    2124
    2225= 1.1.2 =
  • realtidbits-comments/trunk/realtidbits-comments.php

    r740027 r741270  
    55Description: The RealTidbits comment system replaces your WordPress comment system with comments powered by RealTidbits.
    66Author: RealTidbits <[email protected]>
    7 Version: 1.1.2
     7Version: 1.1.3
    88Author URI: http://realtidbits.com/
    99*/
    1010
    11 define('RTB_COMMENTS_VERSION', '1.1.2');
     11define('RTB_COMMENTS_VERSION', '1.1.3');
    1212
    1313define('RTB_BACKPLANE_KEY', 'a80a2e1dcb316164b32acd23c9ae2481');
     
    478478});
    479479</script>
     480<style type="text/css">
     481#rtb-latest-comments .echo-streamserver-controls-stream-item-markers,
     482#rtb-latest-comments .echo-streamserver-controls-stream-item-tags,
     483#rtb-latest-comments .echo-streamserver-controls-stream-item-buttons,
     484#rtb-latest-comments .echo-streamserver-controls-stream-item-modeSwitch {
     485    display:none !important;
     486}
     487</style>
    480488<script type="text/javascript">
    481489jQuery(document).ready(function() {
    482     new Echo.StreamServer.Controls.Stream({
    483         "target": document.getElementById('rtb-latest-comments'),
    484         "appkey": "<?php echo get_option('rtb_comments_appkey'); ?>",
    485         "query": "childrenof:" + document.location.protocol + "//" + document.location.hostname + "/* sortOrder:reverseChronological children state:Untouched,ModeratorApproved user.state:Untouched,ModeratorApproved itemsPerPage:<?php echo $itemsPerPage?> -source:Twitter,Facebook",
    486         "reTag": true,
    487         "itemsPerPage": <?php echo $itemsPerPage?>,
    488         "maxBodyCharacters": 300,
    489         "viaLabel": {
    490               "icon": true,
    491               "text": true
     490    Echo.Loader.initApplication({
     491        "script": "http://cdn.echoenabled.com/sdk/v3/streamserver.pack.js",
     492        "component": "Echo.StreamServer.Controls.Stream",
     493        "backplane": {
     494            "busName": "<?php echo get_option('rtb_comments_backplane_busname'); ?>",
     495            "serverBaseURL": "https://api.echoenabled.com/v1"
    492496        },
    493         "streamStateLabel": {
    494             "icon": false,
    495             "text": false
    496         },
    497         "state": {"label": {"icon": false, "text": false}, "toggleBy": "mouseover", "layout": "compact"},
    498         "contentTransformations": {
    499             "text": ["smileys", "hashtags", "urls", "newlines"],
    500             "html": ["smileys", "hashtags", "urls", "newlines"],
    501             "xhtml": ["smileys", "hashtags", "urls"]
    502         },
    503         "children": {
    504                "sortOrder": "chronological"
    505         },
    506         "plugins": [
    507             {
    508                 "name": "Whirlpools",
    509                 "after" : 2,
    510                 "clickable": true
     497        "config": {
     498            "target": document.getElementById('rtb-latest-comments'),
     499            "appkey": "<?php echo get_option('rtb_comments_appkey'); ?>",
     500            "query": "childrenof:" + document.location.protocol + "//" + document.location.hostname + "/* sortOrder:reverseChronological children state:Untouched,ModeratorApproved user.state:Untouched,ModeratorApproved itemsPerPage:<?php echo $itemsPerPage?> -source:Twitter,Facebook",
     501            "stream": {
     502                "queryParams": {
     503                    "main": {"source": "-source:Twitter,Facebook -provider:'Idea Melt'", "bozo": true, "premod": true, "type": "type:'http://activitystrea.ms/schema/1.0/comment'"}
     504                }
    511505            },
    512             {"name": "CommunityFlag"},
    513             {"name": "Curation"},
    514             {"name": "UserBan"},
    515             {"name": "UserPrivileges"},
    516             {
    517                 "name": "Reply",
    518                 "actionString": "Write reply here...",
    519                 "nestedPlugins": [{
    520                     "name": "FormAuth",
    521                     "submitPermissions": "forceLogin"
    522                 }]
    523             }
    524         ]
    525     });
     506            "item": {
     507                "reTag": false,
     508                "limits": {
     509                    "maxBodyCharacters": 300   
     510                }
     511            },
     512            "liveUpdates": {
     513                "enabled" : false
     514            },
     515            "itemsPerPage": <?php echo $itemsPerPage?>,
     516            "children": {
     517                   "sortOrder": "chronological"
     518            },
     519            "plugins": [
     520                {
     521                    "name": "Whirlpools",
     522                    "after" : 2,
     523                    "clickable": true
     524                },
     525                {"name": "CommunityFlag"},
     526                {"name": "Curation"},
     527                {"name": "UserBan"},
     528                {"name": "UserPrivileges"},
     529                {
     530                    "name": "Reply",
     531                    "actionString": "Write reply here...",
     532                    "nestedPlugins": [{
     533                        "name": "FormAuth",
     534                        "submitPermissions": "forceLogin"
     535                    }]
     536                }
     537            ]
     538        }
     539    });
    526540});
    527541</script>
     
    544558    global $rtb;
    545559    if ( !is_admin() ){
     560        wp_enqueue_script( 'backplane', 'http://cdn.echoenabled.com/sdk/v3/backplane.js');
     561        wp_enqueue_script( 'echo-loader', 'http://cdn.echoenabled.com/sdk/v3/loader.js' );
    546562        wp_enqueue_script( 'jquery' );
    547563        wp_enqueue_script( 'rtb', rtb_plugin_url( 'js/pushquote.js' ), array('jquery'), '1.0', true);
     
    549565        //  array('jquery'), '1.0', true);
    550566        wp_localize_script( 'rtb', 'PushquoteAjax', array( 'show_credits' => (is_array($rtb) ? $rtb['show_credits'] : 0 ) ) );
    551         wp_enqueue_script( 'backplane', 'http://cdn.echoenabled.com/sdk/v3/backplane.js');
    552         wp_enqueue_script( 'echo-loader', 'http://cdn.echoenabled.com/sdk/v3/loader.js' );
     567       
     568        //wp_enqueue_script( 'environment', 'http://cdn.echoenabled.com/sdk/v3/environment.pack.js', array( 'jquery' ), '1.0' );
     569        //wp_enqueue_script( 'streamserver', 'http://cdn.echoenabled.com/sdk/v3/streamserver.pack.js', array( 'jquery' ), '1.0' );
     570        //wp_enqueue_script( 'identityserver', 'http://cdn.echoenabled.com/sdk/v3/identityserver.pack.js', array( 'jquery' ), '1.0' );
     571       
    553572        wp_enqueue_script( 'jplayer', rtb_plugin_url( 'js/jquery.jplayer.js' ), array('jquery'), '1.0', true);
    554573        wp_enqueue_script( 'miniPlayer', rtb_plugin_url( 'js/jquery.mb.miniPlayer.js' ), array('jquery'), '1.0', true);
Note: See TracChangeset for help on using the changeset viewer.