Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yk11

    (@yk11)

    To clarify, I am trying to consolidate multiple twitter feeds into a single one showing the latest N tweets. So if using a list is not possible, then maybe there is a way to specify multiple users and get a consolidated result set.

    Thread Starter yk11

    (@yk11)

    I was able to modify the plugin to add support for lists using the shortcode. It would be great if you could integrate this into the plugin proper so I do not need to re-merge each time you do an update.

    class.twitter-feed.php

    144,147d143
    < 			case 'lists':
    < 				$this->feed_term = $this->options['lists_slug'];
    < 				break;
    <
    255,263d250
    < 			case 'lists':
    < 				$url       = 'https://api.twitter.com/1.1/lists/statuses.json';
    < 				$get_field = '?slug='.$this->options['lists_slug'].'&owner_screen_name='.$this->options['user'];
    <
    < 				if ( $this->options['exclude_replies'] === 'yes' ) {
    < 					$get_field .= '&exclude_replies=true';
    < 				}
    < 			break;
    <
    559d545
    < 				case 'lists':

    class.twitter-feed-base.php

    51d50
    < 		'lists_slug'		    => NULL,		// String: Any valid lists slug
    145d143
    < 			'lists_slug'		    => NULL,
    168d165
    < 			'lists_slug'		    => $lists_slug,
    354,357d350
    < 			case 'lists':
    < 				$cache_id = $input['lists_slug'];
    < 			break;
    <
    416d408
    < 							'lists_slug'  => $this->options['lists_slug'],
    503d494
    < 				'lists'		=> array(),
    526,536d516
    < 				case 'lists':
    < 					$lists_slug = htmlspecialchars($input['lists_slug'], ENT_QUOTES);
    < 					if ( $lists_slug !== FALSE ) {
    < 						$ftc['lists'][ $lists_slug ] = array(
    < 							'cache_began'   => time(),
    < 							'cache_lasts'   => $cache_hours,
    < 							'cache_expires' => $cache_expires
    < 						);
    < 					}
    < 				break;
    <
    699,702d678
    < 			case 'lists':
    < 				$clearance_list = $ftc['lists'];
    < 			break;
    <

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Is it possible to display tweets from a list?’ is closed to new replies.