• Home
  • Archive
  • Privacy Policy
  • Sitemap
  • Site Authors
  • Contact us
  • Disclaimer

iPro

iPro
  • Home
  • Apple
    • iPad
    • iPhone
    • iPod Touch
  • Apps
    • App Store
    • Cydia Apps
  • How To
  • Lists
  • News
  • Web
    • Misc
      • Comics
      • Twitter Backs
    • Review
    • Tips
    • Uncategorized

Display Feedburner count as Text to style !

  • Tips

    Written by Imran on April 13th, 2009


    Author Twitter Profile

    4 views


    Tweet

    Related Posts


    feedburner-count

    Ever wondered how do people over the internet display feedburner count in Text and style it to match with their Blog theme. It’s quite easy but little tricky. First of all you would have to enable API Awareness in Publicize section at your Feedburner account. Once you have enabled it, it’s just copy/paste of below coding into your theme, and replace your id with your feedburner feed id for which you want to display the count

    <?php

    //get cool feedburner count

    $whaturl=”http://api.feedburner.com/awareness/1.0/GetFeedData?uri=yourid”;

    //Initialize the Curl session

    $ch = curl_init();

    //Set curl to return the data instead of printing it to the browser.

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    //Set the URL

    curl_setopt($ch, CURLOPT_URL, $whaturl);

    //Execute the fetch

    $data = curl_exec($ch);

    //Close the connection

    curl_close($ch);

    $xml = new SimpleXMLElement($data);

    $fb = $xml->feed->entry['circulation'];

    //end get cool feedburner count

    ?>

    And once you have put that into your theme, now you only need to put below code anywhere in your theme you wish to display the feed count

    <?php echo $fb;?>

    Share
    Tweet

    Other Posts

    • Jailbreakme to be Blocked by Apple in Next iOS 4.0.2 Update [Confirmed]
    • Wordpress 2.7 Beta is available for Download
    • 5 Designer Tutorial Sites
    • Nokia Booklet 3G Price announced.
    • How to Fix : Slow or No WiFi after iOS 4.0 – 4.0.1 Update and Jailbreakme
    • Bubble-Translate: Translation Extension for Google Chrome!
    • What Does Iphone Jailbreak Mean?
    • Beautiful Professional Tumblr Themes
    • iPhone 4 Arriving Early
    • World’s most Tech-Savvy Taxi Driver – Asif Hussein
    This entry was posted on Monday, April 13th, 2009 at 4:00 pm and is filed under Tips. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed. - You can Also Follow us on Facebook or Twitter.
  • Leave a Reply

    Let us know what you thought. Click here to cancel reply.

  • Name (required):

    Email (required):

    Website:

    Message:

  • Recent Posts
    • Apple Announces new iPod Shuffle, Nano, Touch
    • Gmail Priority Inbox. What an Idea!
    • Easiest Way to Jailbreak iPhone 4 – iPhone 3GS
    • Popular iPhone Jailbreak Apps for iPhone and iPod Touch
    • Setup Push Hotmail on iPhone using ActiveSync
    • Downgrade iOS 4.0.2 to 4.0.1 – 4.0 without SHSH Blobs Saved [How-To]
    • Angry Birds updated to Version 1.4.1
    • Auto3G – Turn On & off 3G Automatically

Copyright © 2009 iPro - Content Licensed under Creative Commons. Which requires a linkback to the articles which are quoted on other sites.
iPhone - iPod Touch - iPad - iMac and iOS are registered Trademarks of Apple Inc. Proudly Hosted by DreamHost