Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Ah, that’s much easier, thanks very much!

    Yeah great plugin!

    Here’s the code I use to “stop replies from being included” (as far as I can tell the “Remove all @replies from posts” option just takes out the @usernames?)

    Basically I add this line to function dg_tw_iswhite($tweet) in twitter-posts-to-blog/functions.php:

    if (ord($tweet->text) == ord('@')) return false;

    so that it looks like this:

    function dg_tw_iswhite($tweet)
    {
        global $dg_tw_queryes, $dg_tw_publish, $dg_tw_tags, $dg_tw_cats, $dg_tw_ft, $wpdb;
    
        if (ord($tweet->text) == ord('@')) return false;

    [then the rest of function etc]

    …I guess you could combine it with the $dg_tw_ft[‘noreplies’] menu option, something like:

    if ($dg_tw_ft['noreplies'] && ord($tweet->text) == ord('@')) return false;

    – though I haven’t tested this. (The original code also seems to use an option called dg_tw_exclude_retweets but I couldn’t easily spot how that’s selected in the menus..?)

Viewing 2 replies - 1 through 2 (of 2 total)