Good afternoon everyone, today il be taking you through the steps of modifying your feed count. Ive had loads of e-mails asking how i designed my "stay connected" box and how i displayed my RSS count as pure text and not a feed burner image.
To display your feedburner RSS count as text we need to just add two snippets of code to our website. Open up a blank notepad document copy and paste the code below.
| <?php //get feedburner count $whaturl="https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=hvdesigns"; //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 feedburner count |
Where "hv-designs" is in the 1st bif of code, change that to your feed. Save the blank notepad document as "rss.php", save it in the root of your websites directory. Now copy and paste the code below.
| <?php include("rss.php"); ?> |
Paste it any where inside the body of your website. Now all you need to do is add the code below.
| <?php echo $fb;?> |
Then paste it inside your website where you want the RSS count to be.
Related Articles
- RSS Feed Secrets: Using RSS Feeds For Search Engine Spider Food - Part 1This is part one of a two part series. In this part you will learn a little about RSS feeds and how to put an RSS feed on your website or blog using just a simple Java Script. If you would like to see this article in its entirety please visit the link in the authors bio.
- How RSS Improve my Site Rankings?This article provides basic information about RSS feeds syndication. With this information you may decide to install the RSS feed of your content, with links, to your reader/subscribers worldwide. RSS not only better distributes your arti....
- Pitfalls of a Newbie - What About RSS Feeds?Are RSS feeds necessarily the right thing for you? Take a look at this article in order to find out everything you need to know in order to make the right decision.
- Displaying RSS Feeds in TextAdd two snippets of PHP code to our website to get a RSS count in text format avoiding feed burner image.
- It Really Is Simple RSSI have Googlebot coming to my site every day since a month ago I put up my first news feed, since then I have put up yet another. I never used to see Googlebot much before, so it goes to show that if you want to be noticed by the search engines, you need to put up a news-feed.
- Powerful Reasons Why You Should Be Using RSSImagine the next time you join a discussion about using RSS. When you start sharing the fascinating RSS facts below, your friends will be absolutely amazed.
- Using RSS to Explode Website TrafficWhats better: to get your readers to keep coming back because they remember you, or to have a little automated reminder there, telling them youre here, youve got new stuff, and they should come out and check it out? The answers obvious.
- Displaying Special CharactersWhy does putting an & in my text mess up my page? For the full list of displayable characters, check out the ASCII CHART.
- Using RSS TO Make Money OnlineYou probably know that RSS stands for Remote Site Syndication, but what does that really mean to you as a marketer and more importantly can you use RSS to make money online?
- How RSS Feeds Can Build Traffic And Bottom LinesThis very fine article will explain the benefits of RSS feeds. The author covers 3 main topics: What Makes RSS Really Something Special, How to Get RSS Capability, and Turning Your Website Into a Dynamic Website.
