<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JOZSOFT</title>
	<atom:link href="http://www.jozsoft.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jozsoft.com</link>
	<description>Search And Social Media Development</description>
	<lastBuildDate>Thu, 15 Jul 2010 20:28:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How To Add &#8220;Tweet This&#8221; Links To Any CMS With PHP</title>
		<link>http://www.jozsoft.com/twitter/how-to-add-tweet-this-links-to-any-cms-with-php/</link>
		<comments>http://www.jozsoft.com/twitter/how-to-add-tweet-this-links-to-any-cms-with-php/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 18:35:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.jozsoft.com/?p=206</guid>
		<description><![CDATA[Twitter is a popular social media platform that not only enables communication but can help drive traffic to your blog. On way to integrate twitter with your blog is to add a &#8220;Tweet This&#8221; link to your pages. If you are using WordPress or another popular CMS you can find plugins that will do this [...]]]></description>
			<content:encoded><![CDATA[<p>Twitter is a popular social media platform that not only enables communication but can help drive traffic to your blog. On way to integrate twitter with your blog is to add a &#8220;Tweet This&#8221; link to your pages. If you are using WordPress or another popular CMS you can find plugins that will do this for you. However, if your CMS is custom built or if you are unable to install plugins you can use the script we are going to build below to integrate twitter into any PHP page.</p>
<p>With this script we are going to follow the following steps.</p>
<ol>
<li>Set a few parameters for the link.</li>
<li>Determine the URL of the page.</li>
<li>Pass the URL through a shortening service&#8217;s API.</li>
<li>Create HTML link to Twitter with tiny URL.</li>
</ol>
<p><strong>Set a few parameters for the link.</strong><br />
In our first step we are going to add a few parameters to define parts of the hyperlink that the script will be creating. To do this we will be defining two strings, $linktext and $tweetmessage. $linktext is the anchor text of the link that we will be creating and $tweetmessage is the prefix message that will appear in the tweet right before the tiny URL.  </p>
<pre name="code" class="php:firstline[1]">/*** To customize edit below ***/

    /*** Link Anchor Text ***/
    $linktext = "Tweet this Article!";

    /*** Message in Tweet ***/
    $tweetmessage = "Currently Reading:";
    $encodedmessage = urlencode($tweetmessage);
</pre>
<p>Because $tweetmessage will become part of the final URL in our link we want to make sure that it is encoded to work correctly across the HTTP. Therefore we use the urlencode() function to create $encodedmessage.</p>
<p><strong>Determine the URL of the page.</strong><br />
We will be using the $_SERVER array to determine the page&#8217;s URL in order to pass through a shortening service. We first detect the URL&#8217;s protocol by using $_SERVER['HTTPS']. This will help us determine if the URL is http or https. Next we combine the results from our $_SERVER['HTTPS'] check with $_SERVER['HTTP_HOST'] and $_SERVER['REQUEST_URI']   </p>
<pre name="code" class="php:firstline[10]">
    /*** check for https ***/
    $protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
    /*** return the full address ***/
    $longurl = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
</pre>
<p>$longurl now contains the full URL to the page.</p>
<p><strong>Pass the URL through a shortening service&#8217;s API.</strong><br />
We now want to pass $longurl through a shortening service so that we don&#8217;t tweet a long URL. In this example we are using <a href="http://tinyurl.com/">TinyURL</a>, but you can use any service who&#8217;s API returns data in a text format. To grab the tiny URL we will use PHP&#8217;s cURL library. </p>
<pre name="code" class="php:firstline[14]">
/*** creates URL for API ***/
    $urlapi = "http://tinyurl.com/api-create.php?url=".$longurl;
    /*** activate cURL for URL shortening ***/
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $urlapi);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $shorturl = curl_exec($ch);
    curl_close($ch);
</pre>
<p>Now $shorturl contains the new shortened URL that we will use in our tweet.</p>
<p><strong>Create HTML link to Twitter with tiny URL.</strong><br />
Here we take all of the variables and combine them to create our HTML &#8220;Tweet This&#8221; link. </p>
<pre name="code" class="php:firstline[22]">
 /*** make the tweet code ***/
    echo '<a href="http://twitter.com/home?status='.$encodedmessage.'+'.$shorturl.'">'.$linktext.'</a>';
</pre>
<p><strong>Installation</strong></p>
<ol>
<li>Copy the full code below.</li>
<li>Edit code to suit your needs.</li>
<li>Save file and upload to your web host.</li>
<li>Paste below include code in PHP doc where you want link to appear.</li>
</ol>
<p><strong><a href="http://www.jozsoft.com/example/TweetLink.php">Working example</a>.</strong></p>
<p><strong>Include Code</strong></p>
<pre name="code" class="php:firstline[1]">
include 'TweetLink.php';
</pre>
<p><strong>FULL CODE</strong><br />
Download this in a <a href="http://www.jozsoft.com/example/TweetLink.txt">text file here</a>.</p>
<pre name="code" class="php:firstline[1]">/*** To customize edit below ***/

    /*** Link Anchor Text ***/
    $linktext = "Tweet this Article!";

    /*** Message in Tweet ***/
    $tweetmessage = "Currently+Reading:";
    $encodedmessage = urlencode($tweetmessage);

    /*** check for https ***/
    $protocol = $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';
    /*** return the full address ***/
    $longurl = $protocol.'://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
    /*** creates URL for API ***/
    $urlapi = "http://tinyurl.com/api-create.php?url=".$longurl;
    /*** activate cURL for URL shortening ***/
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $urlapi);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    $shorturl = curl_exec($ch);
    curl_close($ch);
    /*** make the tweet code ***/
    echo '<a href="http://twitter.com/home?status=%27.$encodedmessage.%27+%27.$shorturl.%27">'.$linktext.'</a>';
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jozsoft.com/twitter/how-to-add-tweet-this-links-to-any-cms-with-php/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mobile Messaging Test Subjects Needed &#8211; FREE STUFF INSIDE</title>
		<link>http://www.jozsoft.com/new-products/mobile-messaging-test-subjects-needed-free-stuff-inside/</link>
		<comments>http://www.jozsoft.com/new-products/mobile-messaging-test-subjects-needed-free-stuff-inside/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:58:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[New Products]]></category>

		<guid isPermaLink="false">http://www.jozsoft.com/?p=211</guid>
		<description><![CDATA[We are currently developing a very unique social media application that utilizes text messaging! During the development of this product we have realized that we need some help testing our system on the widest array of mobile carriers. Therefore we are asking for help from you! Anyone that agrees to help with this test will [...]]]></description>
			<content:encoded><![CDATA[<p>We are currently developing a very unique social media application that utilizes text messaging! During the development of this product we have realized that we need some help testing our system on the widest array of mobile carriers. Therefore we are asking for help from you! Anyone that agrees to help with this test will receive a FREE copy of this new application! If you currently use any of the carriers below for mobile messaging please email Joe Hall at joe[at]jozsoft.com to participate!</p>
<ul>
<li>Airtouch Pagers</li>
<li>Bell South</li>
<li>GTE</li>
<li>Metro PCS</li>
<li>Omnipoint</li>
<li>Skytel Pagers</li>
<li>TSR Wireless</li>
<li>Nextel</li>
<li>Bell Canada</li>
<li>Cellular One</li>
<li>Cingular</li>
<li>Cingular Wireless</li>
<li>SunCom</li>
<li>Sunrise Mobile</li>
<li>T-Mobile</li>
<li>TSR Wireless</li>
<li>US Cellular</li>
<li>Verizon PCS</li>
<li>Virgin Mobile</li>
<li>Vodafone Japan</li>
<li>WebLink Wiereless</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.jozsoft.com/new-products/mobile-messaging-test-subjects-needed-free-stuff-inside/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WhosTalkin.com Moves To Media Temple!</title>
		<link>http://www.jozsoft.com/whostalkin/whostalkincom-moves-to-media-temple/</link>
		<comments>http://www.jozsoft.com/whostalkin/whostalkincom-moves-to-media-temple/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 00:48:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WhosTalkin]]></category>

		<guid isPermaLink="false">http://www.jozsoft.com/?p=136</guid>
		<description><![CDATA[It is my proud pleasure to announce that WhosTalkin.com is now using a robust hosting solution provided by Media Temple. We are very excited to move forward with a company that has a proven record in hosting excellence! This change should also allow us to scale as we continue to develop a new line of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://mediatemple.net/" target="_blank"><img class="alignright size-full wp-image-77" title="mt-120x60-dk" src="http://70.32.92.63/blog/wp-content/uploads/2009/01/mt-120x60-dk.jpg" alt="mt-120x60-dk" width="120" height="60" /></a>It is my proud pleasure to announce that WhosTalkin.com is now using a robust hosting solution provided by <a href="http://mediatemple.net/">Media Temple</a>. We are very excited to move forward with a company that has a proven record in hosting excellence! This change should also allow us to scale as we continue to develop a new line of exciting tools and services that are sure to blow you away! So with that, give our new home a try and stay tuned for some really great services in the future.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jozsoft.com/whostalkin/whostalkincom-moves-to-media-temple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WhosTalkin? iGoogle Gadget Released!</title>
		<link>http://www.jozsoft.com/whostalkin/hello-world-2/</link>
		<comments>http://www.jozsoft.com/whostalkin/hello-world-2/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 18:32:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WhosTalkin]]></category>
		<category><![CDATA[gadget]]></category>
		<category><![CDATA[iGoogle]]></category>

		<guid isPermaLink="false">http://www.jozsoft.com/INDEX_blog/?p=1</guid>
		<description><![CDATA[Hey everyone! I have some great news, we just rolled out our first tool at WhosTalkin.com! It is my proud pleasure to present to you The WhosTalkin.com iGoogle Gadget! You can now find out exactly what is being said in the world of social media with out leaving the comfort of your home page! For [...]]]></description>
			<content:encoded><![CDATA[<p>Hey everyone! I have some great news, we just rolled out our first tool at WhosTalkin.com! It is my proud pleasure to present to you The WhosTalkin.com iGoogle Gadget! You can now find out exactly what is being said in the world of social media with out leaving the comfort of your home page!</p>
<p>For more information on this tool, visit our new <a href="http://www.whostalkin.com/blog/tools/">tools section</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jozsoft.com/whostalkin/hello-world-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
