«; // This comes before the entire block of tweets.
$prefix_sub = «
$wedge = «
«; // This comes after the username but before the tweet content.
$suffix_sub = «
«; // 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) {
$usernames = str_replace(» «, «+OR+from%3A», $usernames);
$feed = «http://search.twitter.com/search.atom?q=from%3A» . $usernames . «&rpp=» . $limit;
$feed = file_get_contents($feed);
$feed = str_replace(«&», «&», $feed);
$feed = str_replace(«<", "<", $feed);
$feed = str_replace(">«, «>», $feed);
$clean = explode(«
$amount = count($clean) — 1;
for ($i = 1; $i <= $amount; $i++) {
$entry_close = explode("«, $clean[$i]);
$clean_content_1 = explode(«
$clean_content = explode(«
$clean_name_2 = explode(«
$clean_name_1 = explode(«(«, $clean_name_2[1]);
$clean_name = explode(«)
$clean_uri_1 = explode(«
$clean_uri = explode(«
// Make the links clickable and take care quote & apostrophe
$clean_content[0] = str_replace(«<«, «<", $clean_content[0]);
$clean_content[0] = str_replace(">", ">«, $clean_content[0]);
$clean_content[0] = str_replace(«&», «&», $clean_content[0]);
$clean_content[0] = str_replace(«"», «\»», $clean_content[0]);
$clean_content[0] = str_replace(«'», «‘», $clean_content[0]);
echo $prefix_sub;
if ($show == 1) {
echo «» . $clean_name[0] . «» . $wedge;
}
echo $clean_content[0];
echo $suffix_sub;
}
}
echo $prefix;
parse_feed($usernames, $limit, $show, $prefix_sub, $wedge, $suffix_sub);
echo $suffix;
?>