Hi volx,
I’m looking for a plugin to get the Twitter & Feedburner counter as simple text. But most important is, the script should store the counter in the MySQL DB and refresh it once a day. Because of speed optimization.
And since I don’t have any clue about PHP & MySQL, I’m looking for help.
I found these basic scripts for Twitter and for Feedburner:
<?php
$twit = file_get_contents('http://twitter.com/users/show/USERNAME.xml');
$begin = '<followers_count>'; $end = '</followers_count>';
$page = $twit;
$parts = explode($begin,$page);
$page = $parts[1];
$parts = explode($end,$page);
$tcount = $parts[0];
if($tcount == '') { $tcount = '0'; }
echo ''.$tcount.'';
?><?php
$url = file_get_contents('https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=YOURFEEDHERE');
$begin = 'circulation="'; $end = '"';
$page = $url;
$parts = explode($begin,$page);
$page = $parts[1];
$parts = explode($end,$page);
$fbcount = $parts[0];
if($fbcount == '') { $fbcount = '0'; }
echo ''.$fbcount.'';
?>
Thank you
Stefan