/ Published in: PHP
WordPress
Expand |
Embed | Plain Text
<?php $usernames = "Username Username Username"; // Pull from accounts, separated by a space $limit = "5"; // Number of tweets to pull in, total. $show = 1; // Show username? 0 = No, 1 = Yes. $prefix = ""; // This comes before the entire block of tweets. $prefix_sub = ""; // This comes before each tweet on the feed. $wedge = ""; // This comes after the username but before the tweet content. $suffix_sub = "<br>"; // This comes after each tweet on the feed. $suffix = ""; // This comes after the entire block of tweets. function parse_feed($usernames, $limit, $show, $prefix_sub, $wedge, $suffix_sub) { $feed = "http://search.twitter.com/search.atom?q=from%3A" . $usernames . "&rpp=" . $limit; for ($i = 1; $i <= $amount; $i++) { echo $prefix_sub; echo $suffix_sub; } } echo $prefix; parse_feed($usernames, $limit, $show, $prefix_sub, $wedge, $suffix_sub); echo $suffix; ?>
You need to login to post a comment.
