Plugin Directory

Changeset 740006


Ignore:
Timestamp:
07/12/2013 08:00:39 PM (13 years ago)
Author:
dpereyra
Message:

Fixed issue with Recent Comments widget

Location:
realtidbits-comments/trunk
Files:
3 edited

Legend:

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

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

    r737837 r740006  
    55Description: The RealTidbits comment system replaces your WordPress comment system with comments powered by RealTidbits.
    66Author: RealTidbits <support@realtidbits.com>
    7 Version: 1.1.1
     7Version: 1.1.2
    88Author URI: http://realtidbits.com/
    99*/
     
    1111define('RTB_COMMENTS_VERSION', '1.1.1');
    1212
    13 define('RTB_COMMENTS_VERSION', '1.1');
    1413if($_SERVER['HTTP_HOST'] == "diego.realtidbits.com" || $_SERVER['HTTP_HOST'] == "www.dpereyra.com") {
    1514    define('RTB_BACKPLANE_KEY', '199f89b565a7bf9e276cebd00b8a79ac');
     
    472471    }
    473472    //include dirname(__FILE__) . '/widget.php';
     473    $x = get_option('widget_name');
     474    if(is_numeric($x['option1'])) { $itemsPerPage = $x['option1']; } else { $itemsPerPage = '10'; };
    474475    ?>
    475476<!-- RealTidbits.Comments -->
     
    482483</script>
    483484<script type="text/javascript">
    484 new Echo.Stream({
    485     "target": document.getElementById('rtb-latest-comments'),
    486     "appkey": "<?php echo get_option('rtb_comments_appkey'); ?>",
    487     "query": "childrenof:" + document.location.protocol + "//" + document.location.hostname + "/* sortOrder:reverseChronological children",
    488     "reTag": true,
    489     "itemsPerPage": <?php
    490         $x = get_option('widget_name');
    491         if(isset($x['option1'])) { echo $x['option1']; } else { echo '10'; };
    492         ?>,
    493     "maxBodyCharacters": 300,
    494     "viaLabel": {
    495           "icon": true,
    496           "text": true
    497     },
    498     "streamStateLabel": {
    499         "icon": false,
    500         "text": false
    501     },
    502     "contentTransformations": {
    503         "text": ["smileys", "hashtags", "urls", "newlines"],
    504         "html": ["smileys", "hashtags", "urls", "newlines"],
    505         "xhtml": ["smileys", "hashtags", "urls"]
    506     },
    507     "children": {
    508            "sortOrder": "chronological"
    509     },
    510     "plugins": [
    511         {
    512             "name": "Whirlpools",
    513             "after" : 2,
    514             "clickable": true
    515         },
    516         {"name": "CommunityFlag"},
    517         {"name": "Curation"},
    518         {"name": "UserBan"},
    519         {"name": "UserPrivileges"},
    520         {
    521             "name": "Reply",
    522             "actionString": "Write reply here...",
    523             "nestedPlugins": [{
    524                 "name": "FormAuth",
    525                 "submitPermissions": "forceLogin"
    526             }]
    527         }
    528     ]
     485jQuery(document).ready(function() {
     486    new Echo.StreamServer.Controls.Stream({
     487        "target": document.getElementById('rtb-latest-comments'),
     488        "appkey": "<?php echo get_option('rtb_comments_appkey'); ?>",
     489        "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",
     490        "reTag": true,
     491        "itemsPerPage": <?php echo $itemsPerPage?>,
     492        "maxBodyCharacters": 300,
     493        "viaLabel": {
     494              "icon": true,
     495              "text": true
     496        },
     497        "streamStateLabel": {
     498            "icon": false,
     499            "text": false
     500        },
     501        "state": {"label": {"icon": false, "text": false}, "toggleBy": "mouseover", "layout": "compact"},
     502        "contentTransformations": {
     503            "text": ["smileys", "hashtags", "urls", "newlines"],
     504            "html": ["smileys", "hashtags", "urls", "newlines"],
     505            "xhtml": ["smileys", "hashtags", "urls"]
     506        },
     507        "children": {
     508               "sortOrder": "chronological"
     509        },
     510        "plugins": [
     511            {
     512                "name": "Whirlpools",
     513                "after" : 2,
     514                "clickable": true
     515            },
     516            {"name": "CommunityFlag"},
     517            {"name": "Curation"},
     518            {"name": "UserBan"},
     519            {"name": "UserPrivileges"},
     520            {
     521                "name": "Reply",
     522                "actionString": "Write reply here...",
     523                "nestedPlugins": [{
     524                    "name": "FormAuth",
     525                    "submitPermissions": "forceLogin"
     526                }]
     527            }
     528        ]
     529    });
    529530});
    530531</script>
  • realtidbits-comments/trunk/widgets/rtb-audiorecorder.php

    r737837 r740006  
    5959    }
    6060    function form( $instance ) {
    61         $donate_link = '';
    62         if ( of_get_option( 'donate_link' ) )
    63             $donate_link = esc_url( of_get_option( 'donate_link' ) );
    64         $donate_btn_text = __('Donate Now', 'fold');
    65         if ( of_get_option( 'donate_button_text' ) )
    66             $donate_btn_text = esc_attr( of_get_option( 'donate_button_text' ) );
    6761        $defaults = array(
    6862            'title'             => __('Record your voice', 'fold'),
Note: See TracChangeset for help on using the changeset viewer.