<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Commentaires sur : Intégrer un Twitter-counter sexy à votre blog</title>
	<atom:link href="http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/</link>
	<description>Sur Techtrends, je partage le fruit de ma veille numérique et mes réflexions autour des tendances du web, des médias et nouvelles technologies. Christophe Lefevre.</description>
	<lastBuildDate>Wed, 11 Apr 2012 08:57:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>Par : BlOg’X Office #10 : petit medley du Web &#124; Autour du Web</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10815</link>
		<dc:creator>BlOg’X Office #10 : petit medley du Web &#124; Autour du Web</dc:creator>
		<pubDate>Sun, 14 Jun 2009 21:02:57 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10815</guid>
		<description>[...] Via Techtrends [...]</description>
		<content:encoded><![CDATA[<p>[...] Via Techtrends [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : christophe lefevre</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10805</link>
		<dc:creator>christophe lefevre</dc:creator>
		<pubDate>Sun, 14 Jun 2009 07:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10805</guid>
		<description>Oui Farfadette, ça marche partout tant que la page est en HTML et que tu es sur un navigateur supportant le javascript (99,9%).</description>
		<content:encoded><![CDATA[<p>Oui Farfadette, ça marche partout tant que la page est en HTML et que tu es sur un navigateur supportant le javascript (99,9%).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : farfadette</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10797</link>
		<dc:creator>farfadette</dc:creator>
		<pubDate>Sat, 13 Jun 2009 23:18:09 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10797</guid>
		<description>Merci beaucoup pour l&#039;astuce :) Marche t-elle sur wordpress 2.8 ?</description>
		<content:encoded><![CDATA[<p>Merci beaucoup pour l&#8217;astuce :) Marche t-elle sur wordpress 2.8 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Je n’ai pas eut le temps d’en parler #3 &#124; GOonline.be</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10749</link>
		<dc:creator>Je n’ai pas eut le temps d’en parler #3 &#124; GOonline.be</dc:creator>
		<pubDate>Thu, 11 Jun 2009 15:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10749</guid>
		<description>[...] Intégrer un Twitter-counter sexy à votre blog. [...]</description>
		<content:encoded><![CDATA[<p>[...] Intégrer un Twitter-counter sexy à votre blog. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : degseb</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10748</link>
		<dc:creator>degseb</dc:creator>
		<pubDate>Thu, 11 Jun 2009 13:38:04 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10748</guid>
		<description>Merci @ Christophe et @ Weetabix</description>
		<content:encoded><![CDATA[<p>Merci @ Christophe et @ Weetabix</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : Olivier</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10745</link>
		<dc:creator>Olivier</dc:creator>
		<pubDate>Thu, 11 Jun 2009 08:23:21 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10745</guid>
		<description>eh eh merci, cela peut être plus fun effectivement ;)

pour compléter, la méthode utilisée ici s&#039;appelle du JSON-P, pour arriver à faire du cross-domain grâce à une fonction de callback : http://en.wikipedia.org/wiki/JSONP#JSONP</description>
		<content:encoded><![CDATA[<p>eh eh merci, cela peut être plus fun effectivement ;)</p>
<p>pour compléter, la méthode utilisée ici s&#8217;appelle du JSON-P, pour arriver à faire du cross-domain grâce à une fonction de callback : <a href="http://en.wikipedia.org/wiki/JSONP#JSONP" rel="nofollow">http://en.wikipedia.org/wiki/JSONP#JSONP</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : tOiN0U</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10741</link>
		<dc:creator>tOiN0U</dc:creator>
		<pubDate>Thu, 11 Jun 2009 02:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10741</guid>
		<description>Merci Christophe ;)</description>
		<content:encoded><![CDATA[<p>Merci Christophe ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : weetabix</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10740</link>
		<dc:creator>weetabix</dc:creator>
		<pubDate>Wed, 10 Jun 2009 21:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10740</guid>
		<description>@degseb et @christophe: plus rapide que moi christophe, normal tu es chez toi sur ce blog ! voilà pour ma part, le truc auquel je pensais, je mets le lien du site concerné en l&#039;occurence l&#039;excellent Geekeries.fr ( dont je ne suis pas le propriétaire !! ):
http://www.geekeries.fr/articles/afficher-le-nombre-dabonnes-de-votre-flux-feedburner/</description>
		<content:encoded><![CDATA[<p>@degseb et @christophe: plus rapide que moi christophe, normal tu es chez toi sur ce blog ! voilà pour ma part, le truc auquel je pensais, je mets le lien du site concerné en l&#8217;occurence l&#8217;excellent Geekeries.fr ( dont je ne suis pas le propriétaire !! ):<br />
<a href="http://www.geekeries.fr/articles/afficher-le-nombre-dabonnes-de-votre-flux-feedburner/" rel="nofollow">http://www.geekeries.fr/articles/afficher-le-nombre-dabonnes-de-votre-flux-feedburner/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : christophe lefevre</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10737</link>
		<dc:creator>christophe lefevre</dc:creator>
		<pubDate>Wed, 10 Jun 2009 19:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10737</guid>
		<description>Weetabix, degseb: Pour Feedburner, j&#039;ai ça dans mes tiroirs 



&lt;?php
$cache = md5(&#039;rssfluxfeedburner&#039;);
$expire = time() -3600*24 ; // valable 4 heure
if(file_exists($cache) &amp;&amp; filemtime($cache) &gt; $expire  )
{
        readfile($cache);
}
else
{
ob_start(); 
function get_content($url)
{
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, $url);
    ob_start();
    curl_exec ($ch);
    curl_close ($ch);
    $string = ob_get_contents();
    ob_end_clean();
    return $string;    
}
 $subject = get_content (&quot;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=bleebot&quot;);
	$pattern = &#039;/circulation=&quot;([0-9]+)&quot;/&#039;;
	preg_match($pattern, $subject, $matches);
	$feed_count = $matches[1];
echo $feed_count;
$pagecache = ob_get_contents(); 
ob_end_clean(); 
file_put_contents($cache, $pagecache) ; 
echo $pagecache ;
}</description>
		<content:encoded><![CDATA[<p>Weetabix, degseb: Pour Feedburner, j&#8217;ai ça dans mes tiroirs </p>
<p>< ?php<br />
$cache = md5('rssfluxfeedburner');<br />
$expire = time() -3600*24 ; // valable 4 heure<br />
if(file_exists($cache) &#038;&#038; filemtime($cache) > $expire  )<br />
{<br />
        readfile($cache);<br />
}<br />
else<br />
{<br />
ob_start();<br />
function get_content($url)<br />
{<br />
    $ch = curl_init();<br />
    curl_setopt ($ch, CURLOPT_URL, $url);<br />
    ob_start();<br />
    curl_exec ($ch);<br />
    curl_close ($ch);<br />
    $string = ob_get_contents();<br />
    ob_end_clean();<br />
    return $string;<br />
}<br />
 $subject = get_content (&laquo;&nbsp;https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=bleebot&nbsp;&raquo;);<br />
	$pattern = &#8216;/circulation=&nbsp;&raquo;([0-9]+)&nbsp;&raquo;/&#8217;;<br />
	preg_match($pattern, $subject, $matches);<br />
	$feed_count = $matches[1];<br />
echo $feed_count;<br />
$pagecache = ob_get_contents();<br />
ob_end_clean();<br />
file_put_contents($cache, $pagecache) ;<br />
echo $pagecache ;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Par : weetabix</title>
		<link>http://techtrends.eu/integrer-un-twitter-counter-sexy-a-votre-blog/comment-page-1/#comment-10736</link>
		<dc:creator>weetabix</dc:creator>
		<pubDate>Wed, 10 Jun 2009 18:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://techtrends.eu/?p=2329#comment-10736</guid>
		<description>@degseb: çà existe aussi pr feedburner, je ne l&#039;ai pas sous la main mais tu devrais trouver ç facilement sur le web en cherchant ! ( enfin je pense...)</description>
		<content:encoded><![CDATA[<p>@degseb: çà existe aussi pr feedburner, je ne l&#8217;ai pas sous la main mais tu devrais trouver ç facilement sur le web en cherchant ! ( enfin je pense&#8230;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

