<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : Social followers counter</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sat, 11 Apr 2026 19:19:05 -0000</pubDate>

		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	Thanks.</p>
]]></description>
			<pubDate>Пт, 20 Січ 2012 10:04:02 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32815]]></link>
		</item>
		<item>
			<title>GHengeveld</title>
			<description><![CDATA[For info about plugin config, have a look <a href="http://www.cotonti.com/docs/ext/extensions/configvalues">here</a>. You can simply put the fields you need in yourplugin.setup.php and it will automatically make the config screen and store the values in the database. You can then use it like $cfg['plugin']['yourplugin']['configname']  ]]></description>
			<pubDate>Пт, 20 Січ 2012 03:53:17 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32801]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	I was wondering if someone could better explain the use of the $cfg variable for extensions. For example, do you have to store the contents in the database? Also how would you add an input box when a user clicks add, like they do for pages, etc. If that makes sense :D</p>
]]></description>
			<pubDate>Thu, 19 Січ 2012 23:52:53 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32800]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	Well, maybe it's a hint.. adopt the name dude.. Sounds fancy too, Mr. Skywalker..</p>
]]></description>
			<pubDate>Ср, 18 Січ 2012 12:41:35 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32747]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	lol, Yeah I get that a lot :P</p>
]]></description>
			<pubDate>Ср, 18 Січ 2012 12:26:38 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32745]]></link>
		</item>
		<item>
			<title>Kingsley</title>
			<description><![CDATA[<p>
	:) Very nice Mr. Skywalker (very lame, very far fetched joke .. I know) xD</p>
]]></description>
			<pubDate>Ср, 18 Січ 2012 12:24:39 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32744]]></link>
		</item>
		<item>
			<title>lukgoh</title>
			<description><![CDATA[<p>
	I have made a small plugin to show the number of followers from various different social sites including: Twitter, Facebook and Feedburner. I hope to add others, for example Google+. You can download the plugin <a href="http://www.cotonti.com/datas/users/subscribecount_1089.zip">here</a>!</p>
<p>
	Here is an example of it in use on my sites footer: <img src="http://www.cotonti.com/datas/users/socialcounter_1089.png" alt="socialcounter_1089.png" /></p>
<p>
	It is currently a standalone page, however if you edit the main php file (subscribecount.php), line 4:</p>
<pre class="brush:php;">
Hooks=standalone</pre>
<p>
	You can change that to suit your needs, for example if you want to display this in the footer you can change to Hooks=footer.tags and use the following tags: {TWITTER_COUNT} {FACEBOOK_COUNT} and {FEEDBURNER_COUNT}</p>
<p>
	You currently have to also input your data into the same php file for this to load your data...</p>
<p>
	I am knew to php and plugin development and would like improve this and make it easier for people to use and was wondering if someone could help me develope it further.</p>
<p>
	Here is the code:</p>
<pre class="brush:php;">
&lt;?php
/* ====================
[BEGIN_COT_EXT]
Hooks=standalone
[END_COT_EXT]
==================== */

/**
 * business Plugin for Cotonti CMF
 *
 * @package subscribecount
 * @version 1.0
 * @author DesignLizard
 * @copyright (c) 2012
 * @license BSD
 */

defined('COT_CODE') or die('Wrong URL');

// Get Twitter Follower Count

$screenName = 'YOUR TWITTER NAME IN HERE';
$getData = 'followers_count';
 
$xml = file_get_contents('http://twitter.com/users/show.xml?screen_name=' . $screenName);
 
if(preg_match('/' . $getData . '&gt;(.*)&lt;/', $xml, $match) !=0)
$twittercount =	$match[1];


// Get Facebook like count

$fbcount = file_get_contents("https://graph.facebook.com/YOUR FACEBOOK PAGE ID IN HERE");
$fbcount1 = json_decode($fbcount,true);
 
$facebookcount =  $fbcount1["likes"];

// Get Feedburner Subscribers count

//feedburner api url
$url = "http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=YOUR FEEDBURNER RSS FEED NAME HERE";
 
//Initialize the Curl
$ch = curl_init();  
 
//Set curl to return the data instead of printing it to the browser.
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2); 
 
//Set the URL
curl_setopt($ch, CURLOPT_URL, $url);  
 
//Execute the fetch
$data = curl_exec($ch);  
 
//Close the connection
curl_close($ch);  
 
$xml = new SimpleXMLElement($data);
$subscribers = $xml-&gt;feed-&gt;entry['circulation']; 
 
if ($subscribers == "") {
	
	$feedburnercount = '0';
} else {
 
$feedburnercount = $subscribers;

}

	$t-&gt;assign(array(
				'TWITTER_COUNT' =&gt; $twittercount,
				'FACEBOOK_COUNT' =&gt; $facebookcount,
				'FEEDBURNER_COUNT' =&gt; $feedburnercount,
			));

?&gt;</pre>
<p>
	I guess if you could enter the values in the admin panel that could be better...</p>
]]></description>
			<pubDate>Ср, 18 Січ 2012 12:12:06 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6736&d=0#post32743]]></link>
		</item>
	</channel>
</rss>