Support » Plugin: Twitter Widget Pro » item count not working with 'hide replies' etc

  • Resolved thirzah

    (@thirzah)


    hello

    I found that the number of tweets was being included in the twitter request, before the filters to include retweets, hide replies etc etc

    This meant that when I selected ‘show 5 tweets’, if 4 of the last 5 tweets were replies (hidden) only 1 tweet was shown.

    To fix this, I added the following below line 613

    if ( $args['items'] < 1 || 20 < $args['items'] )
    		$args['items'] = 10;
    	/*thirz mod */
    	$showitems = $args['items'];
    	$args['items'] = 20;
    	/*end thirz */

    and then changed the break at line 702 (after additions above) to

    `/*thirz mod */
    if ( ++$count >= $showitems)
    break;`
    obviously it’s a bit approximate, because it still depends just how many (hidden) replies etc there are, but this worked for me, so thought I’d share in the hope you might do a better version 🙂

    http://wordpress.org/extend/plugins/twitter-widget-pro/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Aaron D. Campbell

    (@aaroncampbell)

    Eventually I’ll have to code a workaround for this, but it’s not super high on the priority list right now. Watch for new versions though!

    @thirzah, thanks for this fix, it saves me the trouble of figuring it out for myself.

    I was going to report this as a bug, but found this when I was checking for existing reports.

    I hope it can be fixed eventually, but I do appreciate why a general fix for any number of @replies requires quite a few changes to the way the plugin works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘item count not working with 'hide replies' etc’ is closed to new replies.