Blogger İçin Olanı ise Burada Hemen Tıkla :)
Facebook Kodları İçin:
<?php
$sayfa_id = "Sayfanın ID'si";$xml = @simplexml_load_file("http://api.facebook.com/restserver.php?method=facebook.fql.query&query=SELECT%20fan_count%20FROM%20page%20WHERE%20page_id=".$sayfa_id."") or die ("a lot");$bSayisi = $xml->page->fan_count;
echo $bSayisi;?>
Twitter Kodları İçin:
< ?php
$twit = file_get_contents('http://twitter.com/users/show/kullaniciadi.xml');$begin = ''; $end = '';$page = $twit;$parts = explode($begin,$page);$page = $parts[1];$parts = explode($end,$page);$tcount = $parts[0];
if($tcount == '') { $tcount = '0'; }
echo '<strong> '.$tcount.' </strong> Takipçi';?>
Feedburner Abone Sayısı İçin:
<?php
$url = file_get_contents('https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=kullaniciadi');$begin = 'circulation="'; $end = '"';$page = $url;$parts = explode($begin,$page);$page = $parts[1];$parts = explode($end,$page);$fbcount = $parts[0];
if($fbcount == '') { $fbcount = '0'; }
echo '<strong> '.$fbcount.' Abone'; ?></strong>
Yazı ve Yorum Sayısı İçin:
<?php
$args=array(
'orderby' => 'name',
'order' => 'ASC'
);
$categories=get_categories($args);
$cat_count = 0;
foreach($categories as $c) {
$cat_count++;
}
$count_posts = wp_count_posts();
$published = $count_posts->publish;
?>
<p style="text-align: center;">
Nonloser.Com'daki <b><?php echo $cat_count; ?></b> ayrı kategoride yazılmış <b><?php echo $published;?></b> makaleye <b><?php echo $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '1'");?></b> yorum yapılmış.</strong>
</p>
0 yorum:
Yorum Gönder