<?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: How To: Sociable WP Plugin With Auto TinyURL Or Bit.ly Shortening</title> <atom:link href="http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/feed/" rel="self" type="application/rss+xml" /><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening</link> <description>web design, tutorials, photoshop tutorials, jquery tutorials, wordpress tutorials, design, inspiration, design trends</description> <lastBuildDate>Tue, 07 Feb 2012 17:52:22 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Lord</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-8429</link> <dc:creator>Lord</dc:creator> <pubDate>Wed, 23 Feb 2011 19:04:45 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-8429</guid> <description>I needed the bit.ly hack and now it&#039;s working! Thank you so much!</description> <content:encoded><![CDATA[<p>I needed the bit.ly hack and now it&#8217;s working! Thank you so much!</p> ]]></content:encoded> </item> <item><title>By: Luã de Souza</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-3433</link> <dc:creator>Luã de Souza</dc:creator> <pubDate>Mon, 19 Jul 2010 01:39:04 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-3433</guid> <description>Thanks :)</description> <content:encoded><![CDATA[<p>Thanks :)</p> ]]></content:encoded> </item> <item><title>By: uberVU - social comments</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-1422</link> <dc:creator>uberVU - social comments</dc:creator> <pubDate>Mon, 22 Feb 2010 06:54:49 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-1422</guid> <description>&lt;strong&gt;Social comments and analytics for this post...&lt;/strong&gt;This post was mentioned on Twitter by liliansi: Linka: Eccezionale tutrial! How To Sociable WP Plugin With Auto TinyURL Or Bit.ly Shortening ( http://bit.ly/nF9tR )...</description> <content:encoded><![CDATA[<p><strong>Social comments and analytics for this post&#8230;</strong></p><p>This post was mentioned on Twitter by liliansi: Linka: Eccezionale tutrial! How To Sociable WP Plugin With Auto TinyURL Or Bit.ly Shortening ( <a
href="http://bit.ly/nF9tR" rel="nofollow">http://bit.ly/nF9tR</a> )&#8230;</p> ]]></content:encoded> </item> <item><title>By: SwitzerBaden</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-146</link> <dc:creator>SwitzerBaden</dc:creator> <pubDate>Mon, 20 Jul 2009 09:45:41 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-146</guid> <description>ok, I solved this issue by creating a file called bit2twit.php and passing the permalink to it like so:&lt;code&gt;
&#039;Twitter&#039; =&gt; Array(
&#039;favicon&#039; =&gt; &#039;twitter.png&#039;,
&#039;awesm_channel&#039; =&gt; &#039;twitter&#039;,
&#039;url&#039; =&gt; &#039;bit2twit.php?url=PERMALINK&#039;,
),
&lt;/code&gt;then, my bit2twit.php file makes the conversion with your getBitlyUrl function, and then redirects the header location to twitter like so:&lt;code&gt;
$url = $_GET[&#039;url&#039;];
// Ondemand function to generate dynamic bit.ly urls
function getBitlyUrl($url) {
// fill up this 2 lines below with your login and api key
$bitlylogin = &#039;switzerbaden&#039;;
$bitlyapikey= &#039;R_e06c3df4d1629229278fc355fff1568e&#039;;
// you dont need to change below this line
$bitlyurl = file_get_contents(&#039;http://api.bit.ly/shorten?version=2.0.1&amp;longUrl=&#039;.$url.&#039;&amp;login=&#039;.$bitlylogin.&#039;&amp;apiKey=&#039;.$bitlyapikey);
$bitlycontent = json_decode($bitlyurl,true);
$bitlyerror = $bitlycontent[&quot;errorCode&quot;];
if ($bitlyerror == 0){
$bitlyurl = $bitlycontent[&quot;results&quot;][$url][&quot;shortUrl&quot;];
}
else $bitlyurl = $url;
return $bitlyurl;
}header(&#039;Location: http://twitter.com/home?status=&#039;.getBitlyUrl($url));
&lt;/code&gt;greatly reduced my home page load time by 11 seconds.</description> <content:encoded><![CDATA[<p>ok, I solved this issue by creating a file called bit2twit.php and passing the permalink to it like so:</p><p><code><br
/> 'Twitter' =&gt; Array(<br
/> 'favicon' =&gt; 'twitter.png',<br
/> 'awesm_channel' =&gt; 'twitter',<br
/> 'url' =&gt; 'bit2twit.php?url=PERMALINK',<br
/> ),<br
/> </code></p><p>then, my bit2twit.php file makes the conversion with your getBitlyUrl function, and then redirects the header location to twitter like so:</p><p><code><br
/> $url = $_GET['url'];<br
/> // Ondemand function to generate dynamic bit.ly urls<br
/> function getBitlyUrl($url) {<br
/> // fill up this 2 lines below with your login and api key<br
/> $bitlylogin = 'switzerbaden';<br
/> $bitlyapikey= 'R_e06c3df4d1629229278fc355fff1568e';</p><p> // you dont need to change below this line<br
/> $bitlyurl = file_get_contents('<a
href="http://api.bit.ly/shorten?version=2.0.1&#038;longUrl=&#039;.$url.&#039;&#038;login=&#039;.$bitlylogin.&#039;&#038;apiKey=&#039;.$bitlyapikey" rel="nofollow">http://api.bit.ly/shorten?version=2.0.1&#038;longUrl=&#039;.$url.&#039;&#038;login=&#039;.$bitlylogin.&#039;&#038;apiKey=&#039;.$bitlyapikey</a>);</p><p> $bitlycontent = json_decode($bitlyurl,true);</p><p> $bitlyerror = $bitlycontent["errorCode"];</p><p> if ($bitlyerror == 0){<br
/> $bitlyurl = $bitlycontent["results"][$url]["shortUrl"];<br
/> }<br
/> else $bitlyurl = $url;</p><p> return $bitlyurl;<br
/> }</p><p>header('Location: <a
href="http://twitter.com/home?status=&#039;.getBitlyUrl($url)" rel="nofollow">http://twitter.com/home?status=&#039;.getBitlyUrl($url)</a>);<br
/> </code></p><p>greatly reduced my home page load time by 11 seconds.</p> ]]></content:encoded> </item> <item><title>By: SwitzerBaden</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-145</link> <dc:creator>SwitzerBaden</dc:creator> <pubDate>Mon, 20 Jul 2009 09:29:15 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-145</guid> <description>Hmmm... but there is one large issue using this solution.  if you have 10 posts on the main page, this bit.ly-ize twitter link hack will add 11+ seconds to your page load time, as the page loop waits for each permalink to be shortened.  A better solution would be to shorten the link only when the needed.  Any thoughts?</description> <content:encoded><![CDATA[<p>Hmmm&#8230; but there is one large issue using this solution.  if you have 10 posts on the main page, this bit.ly-ize twitter link hack will add 11+ seconds to your page load time, as the page loop waits for each permalink to be shortened.  A better solution would be to shorten the link only when the needed.  Any thoughts?</p> ]]></content:encoded> </item> <item><title>By: SwitzerBaden</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-144</link> <dc:creator>SwitzerBaden</dc:creator> <pubDate>Mon, 20 Jul 2009 07:48:37 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-144</guid> <description>Exactly what I needed... works exactly as advertised.  Impressively described with step-by-step so clear that even my grandmother could have hacked this.  Well-done, mate... well-done!</description> <content:encoded><![CDATA[<p>Exactly what I needed&#8230; works exactly as advertised.  Impressively described with step-by-step so clear that even my grandmother could have hacked this.  Well-done, mate&#8230; well-done!</p> ]]></content:encoded> </item> <item><title>By: Krystian</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-125</link> <dc:creator>Krystian</dc:creator> <pubDate>Tue, 23 Jun 2009 22:33:00 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-125</guid> <description>Thanks for that function, it&#039;s very usefull.</description> <content:encoded><![CDATA[<p>Thanks for that function, it&#8217;s very usefull.</p> ]]></content:encoded> </item> <item><title>By: liliansi</title><link>http://webexpedition18.com/articles/how-to-sociable-wp-plugin-with-auto-tinyurl-or-bitly-shortening/comment-page-1/#comment-122</link> <dc:creator>liliansi</dc:creator> <pubDate>Sat, 20 Jun 2009 18:27:38 +0000</pubDate> <guid
isPermaLink="false">http://webexpedition18.com/?p=447#comment-122</guid> <description>You&#039;re genius! Works great. Thank a lot for the clear tut. Bye</description> <content:encoded><![CDATA[<p>You&#8217;re genius! Works great. Thank a lot for the clear tut. Bye</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 1/15 queries in 0.006 seconds using disk: basic
Object Caching 445/448 objects using disk: basic
Content Delivery Network via blog.webexpedition18.netdna-cdn.com

Served from: webexpedition18.com @ 2012-02-08 05:54:33 -->
