<?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>Comments on: Create Custom Skype Buttons</title>
	<atom:link href="http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/</link>
	<description>not just another e-marketing blog</description>
	<lastBuildDate>Sat, 10 Jul 2010 18:07:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=Updated</generator>
	<item>
		<title>By: Shane</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-983</link>
		<dc:creator>Shane</dc:creator>
		<pubDate>Mon, 28 Jun 2010 10:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-983</guid>
		<description>I found my problem, I needed to make my &quot;show my status on the web&quot; in &quot;preferences -&gt; privacy&quot;</description>
		<content:encoded><![CDATA[<p>I found my problem, I needed to make my &#8220;show my status on the web&#8221; in &#8220;preferences -> privacy&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane McCarthy</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-982</link>
		<dc:creator>Shane McCarthy</dc:creator>
		<pubDate>Sun, 27 Jun 2010 14:54:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-982</guid>
		<description>It didn&#039;t seem to post correctly, hopefully it will now, I&#039;ve just pasted the piece I&#039;ve changed.



&lt;code&gt;function getSkypeStatusIcon($username) {
	$status = getSkypeStatus($username);
	echo &#039;&lt;a href=&quot;&#039;.$username.&#039;?call&quot; rel=&quot;nofollow&quot;&gt;
&#039;;
}
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>It didn&#8217;t seem to post correctly, hopefully it will now, I&#8217;ve just pasted the piece I&#8217;ve changed.</p>
<p><code>function getSkypeStatusIcon($username) {<br />
	$status = getSkypeStatus($username);<br />
	echo '<a href="'.$username.'?call" rel="nofollow"><br />
';<br />
}<br />
</a></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shane McCarthy</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-981</link>
		<dc:creator>Shane McCarthy</dc:creator>
		<pubDate>Sun, 27 Jun 2010 14:47:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-981</guid>
		<description>This code is brilliant, however I&#039;ve changed about the code a little and the images do not seem to update correctly at all now.

I have one graphic with both a normal and active state in the image which are referencing each status code.
I have the image loaded as a background image in css and a transparent button overlaid so that when the user hovers their mouse it allows the graphic to switch (sliding doors css) to a hover state.

The problem is that the script does not seem to update the image code now? Any ideas? It works perfectly the normal way.

Thanks!,
Shane


&lt;?php
function getSkypeStatus($username) {
	$remote_status = fopen (&#039;http://mystatus.skype.com/&#039;.$username.&#039;.num&#039;, &#039;r&#039;);
	if (!$remote_status) {
	    return &#039;0&#039;;
	    exit;
	}
	while (!feof ($remote_status)) {
	    $value = fgets ($remote_status, 1024);
	    return trim($value);
	}
	fclose($remote_status);
}
function getSkypeStatusIcon($username) {
	$status = getSkypeStatus($username);
	echo &#039;&lt;a href=&quot;&#039;.$username.&#039;?call&quot; rel=&quot;nofollow&quot;&gt;
&#039;;
}
getSkypeStatusIcon(&#039;MY_USERNAME&#039;);?&gt;
&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>This code is brilliant, however I&#8217;ve changed about the code a little and the images do not seem to update correctly at all now.</p>
<p>I have one graphic with both a normal and active state in the image which are referencing each status code.<br />
I have the image loaded as a background image in css and a transparent button overlaid so that when the user hovers their mouse it allows the graphic to switch (sliding doors css) to a hover state.</p>
<p>The problem is that the script does not seem to update the image code now? Any ideas? It works perfectly the normal way.</p>
<p>Thanks!,<br />
Shane</p>
<p>&lt;?php<br />
function getSkypeStatus($username) {<br />
	$remote_status = fopen (&#039;http://mystatus.skype.com/&#039;.$username.&#039;.num&#039;, &#039;r&#039;);<br />
	if (!$remote_status) {<br />
	    return &#039;0&#039;;<br />
	    exit;<br />
	}<br />
	while (!feof ($remote_status)) {<br />
	    $value = fgets ($remote_status, 1024);<br />
	    return trim($value);<br />
	}<br />
	fclose($remote_status);<br />
}<br />
function getSkypeStatusIcon($username) {<br />
	$status = getSkypeStatus($username);<br />
	echo &#039;<a href="'.$username.'?call" rel="nofollow"><br />
&#8216;;<br />
}<br />
getSkypeStatusIcon(&#8216;MY_USERNAME&#8217;);?&gt;<br />
</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark8t Staff</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-739</link>
		<dc:creator>Mark8t Staff</dc:creator>
		<pubDate>Sun, 15 Nov 2009 01:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-739</guid>
		<description>You need to include in the script where the images are located. The line you need to modify is noted in the script.</description>
		<content:encoded><![CDATA[<p>You need to include in the script where the images are located. The line you need to modify is noted in the script.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-738</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Sat, 14 Nov 2009 23:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-738</guid>
		<description>after you do all this how do you get the images to actually show up in my html page</description>
		<content:encoded><![CDATA[<p>after you do all this how do you get the images to actually show up in my html page</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark8t Staff</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-392</link>
		<dc:creator>Mark8t Staff</dc:creator>
		<pubDate>Sat, 16 May 2009 16:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-392</guid>
		<description>Unfortunately this only works with fopen. We are using the Skype custom solution in a secure area. We suggest you hide the info about your php.ini file using the below in your .htaccess file. Just Google hide php.ini or read  &lt;a href=&quot;http://www.bluehostforum.com/showthread.php?t=8842&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;. You should also set the appropriate CHMOD for the file...

Other issues to consider are your hosts security and the platform or  CMS which you are using to host your content. We have used it on several developments with no issue, but please note we don&#039;t take credit for the script. It was created by another party, so use it at your own risk.</description>
		<content:encoded><![CDATA[<p>Unfortunately this only works with fopen. We are using the Skype custom solution in a secure area. We suggest you hide the info about your php.ini file using the below in your .htaccess file. Just Google hide php.ini or read  <a href="http://www.bluehostforum.com/showthread.php?t=8842" rel="nofollow">here</a>. You should also set the appropriate CHMOD for the file&#8230;</p>
<p>Other issues to consider are your hosts security and the platform or  CMS which you are using to host your content. We have used it on several developments with no issue, but please note we don&#8217;t take credit for the script. It was created by another party, so use it at your own risk.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: michael</title>
		<link>http://www.mark8t.com/2009/03/07/create-custom-skype-buttons/comment-page-1/#comment-391</link>
		<dc:creator>michael</dc:creator>
		<pubDate>Sat, 16 May 2009 15:20:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.mark8t.com/?p=981#comment-391</guid>
		<description>Nice code!!

But I dont have fopen on in my php.ini, last time I did this my server was hacked sometime after so I dont really want to. 

I was wondering if there is any way around this.
 
</description>
		<content:encoded><![CDATA[<p>Nice code!!</p>
<p>But I dont have fopen on in my php.ini, last time I did this my server was hacked sometime after so I dont really want to. </p>
<p>I was wondering if there is any way around this.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
