<?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>Iacob Ionut - Freelance Website Design &#187; Wordpress</title>
	<atom:link href="http://iacobionut.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://iacobionut.com</link>
	<description></description>
	<lastBuildDate>Sat, 12 Jun 2010 07:48:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twitter Tools Plugin Problem Solved</title>
		<link>http://iacobionut.com/twitter-tools-plugin-problem-solved/</link>
		<comments>http://iacobionut.com/twitter-tools-plugin-problem-solved/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 20:45:39 +0000</pubDate>
		<dc:creator>Iacob Ionut</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[twitter plugin]]></category>

		<guid isPermaLink="false">http://iacobionut.com/?p=792</guid>
		<description><![CDATA[In the last couple of weeks I&#8217;ve been having some problems with Twitter Tools . For some reason , after I upgraded Wordpress to 2.8.6 the plugin stopped working . Whenever I tried to test my user ID and password I got this message :
&#8221; Sorry, login failed. Error message from Twitter: Rate limit exceeded. [...]]]></description>
			<content:encoded><![CDATA[<p>In the last couple of weeks I&#8217;ve been having some problems with Twitter Tools . For some reason , after I upgraded Wordpress to 2.8.6 the plugin stopped working . Whenever I tried to test my user ID and password I got this message :</p>
<p>&#8221; <em>Sorry, login failed. Error message from Twitter: Rate limit exceeded. Clients may not make more than 150 requests per hour.&#8221;</em> .<br />
<span id="more-792"></span><br />
So I upgraded WP to 2.9.1 , reinstalled the plugin and tried again &#8230;. with no luck . I Googled the message and found out that I wasn&#8217;t the only one with <a href="http://wordpress.org/support/topic/289319">this</a> <a href="http://wordpress.org/support/topic/312067/page/2?replies=46">problem</a>. Those solutions didn&#8217;t work so I uninstalled the plugin (again) and tried an earlier version . This didn&#8217;t work either . I started looking for other solutions . <a href="http://www.wprecipes.com/how-to-display-your-latest-twitter-entry-on-your-wp-blog">This one</a> didn&#8217;t work because of my server&#8217;s settings , but I found CSS Trick&#8217;s &#8220;<a href="http://css-tricks.com/build-your-own-social-home/">Build your own Social Home</a>&#8221; post. They&#8217;ve used Twitter&#8217;s API and a bit of JSON to load and display tweets on the page.</p>
<p>This is the code I use to display tweets on my home page . It&#8217;s basically the same , with some small changes. </p>
<pre class="brush: php;">
&lt;script type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
		$.getJSON('http://twitter.com/status/user_timeline/iacobionut.json?count=2&amp;callback=?', function(data){
		$.each(data, function(index, item){
			$('#twitter-home').append('&lt;div class=&quot;tweet&quot;&gt;&lt;p&gt;' + item.text.linkify() + '&lt;/p&gt;&lt;p&gt;&lt;em&gt;' + relative_time(item.created_at) + '&lt;/em&gt;&lt;/p&gt;&lt;/div&gt;');
		});

	});
function relative_time(time_value) {
	  var values = time_value.split(&quot; &quot;);
	  time_value = values[1] + &quot; &quot; + values[2] + &quot;, &quot; + values[5] + &quot; &quot; + values[3];
	  var parsed_date = Date.parse(time_value);
	  var relative_to = (arguments.length &gt; 1) ? arguments[1] : new Date();
	  var delta = parseInt((relative_to.getTime() - parsed_date) / 1000);
	  delta = delta + (relative_to.getTimezoneOffset() * 60);

	  var r = '';
	  if (delta &lt; 60) {
		r = 'a minute ago';
	  } else if(delta &lt; 120) {
		r = 'couple of minutes ago';
	  } else if(delta &lt; (45*60)) {
		r = (parseInt(delta / 60)).toString() + ' minutes ago';
	  } else if(delta &lt; (90*60)) {
		r = 'an hour ago';
	  } else if(delta &lt; (24*60*60)) {
		r = '' + (parseInt(delta / 3600)).toString() + ' hours ago';
	  } else if(delta &lt; (48*60*60)) {
		r = '1 day ago';
	  } else {
		r = (parseInt(delta / 86400)).toString() + ' days ago';
	  }

	  return r;
	}

	String.prototype.linkify = function() {
		return this.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&amp;\?\/.=]+/, function(m) {
			return m.link(m);
		});
	};

});
&lt;/script&gt;
</pre>
<p>I still have no idea why Twitter Tools doesn&#8217;t work , but this solution is really easy to use if you have the same problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://iacobionut.com/twitter-tools-plugin-problem-solved/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wordpress How-To : Exporting / Importing a Wordpress Database</title>
		<link>http://iacobionut.com/wordpress-how-to-exporting-importing-a-wordpress-database/</link>
		<comments>http://iacobionut.com/wordpress-how-to-exporting-importing-a-wordpress-database/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 13:22:28 +0000</pubDate>
		<dc:creator>Iacob Ionut</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://iacobionut.com/?p=399</guid>
		<description><![CDATA[When working on a project , I usually install Wordpress on my local server (WAMP on a PC) and after I&#8217;m done developing the theme , I export the database to the client&#8217;s server.This is a pretty easy process and this is how you do it.
1. Exporting the database &#8211; Phpmyadmin
Enter Phpmyadmin and select your [...]]]></description>
			<content:encoded><![CDATA[<p>When working on a project , I usually install Wordpress on my local server (WAMP on a PC) and after I&#8217;m done developing the theme , I export the database to the client&#8217;s server.This is a pretty easy process and this is how you do it.</p>
<h3>1. Exporting the database &#8211; Phpmyadmin</h3>
<p>Enter Phpmyadmin and select your database.<br />
<span id="more-399"></span><br />
<a id="single_1" href="http://iacobionut.com/wp-content/uploads/2009/07/1-1.jpg"><img class="alignnone size-full wp-image-400" title="WP database" src="http://iacobionut.com/wp-content/uploads/2009/07/1-1.jpg" alt="" width="500" height="146"  /></a></p>
<p>Select the Export tab</p>
<p>Tick Add DROP TABLE/VIEW/PROCEDURE/FUNCTION . Make sure all the tables and SQL are selected . Tick &#8220;Save as file&#8221; . Click &#8220;GO&#8221; and you&#8217;re done with the first part.</p>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/2.jpg" rel="lightbox"><img class="alignnone size-full wp-image-403" title="Export DB" src="http://iacobionut.com/wp-content/uploads/2009/07/2.jpg" alt="" width="500" height="356" /></a></p>
<p>Open the file (*.sql) with Notepad (or any other text editor) . Replace all local URLs ( http://localhost ) with you new domain name (e.g. http://www.mysite.com ). After you&#8217;re done , save the file.</p>
<h3>2. Upload the Wordpress folder to your server</h3>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/3.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/3.jpg" alt="" title="Wordpress" width="500" height="356" class="alignnone size-full wp-image-407" /></a></p>
<h3>3. Importing the database</h3>
<p>Log in to Phpmyadmin on your server and select the Import Tab. Click Browse , select the database file (*.sql) from your HDD and click GO.</p>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/4.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/4.jpg" alt="" title="Import DB" width="500" height="356" class="alignnone size-full wp-image-408" /></a></p>
<h3>4. Changing WP Settings</h3>
<p>Edit wp-config.php and change these following lines.</p>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/5.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/5.jpg" alt="" title="wp-config" width="500" height="116" class="alignnone size-full wp-image-409" /></a></p>
<p>Done.</p>
<h2>Problems you may encounter .</h2>
<p>One problem I found after I imported the database was that I couldn&#8217;t upload images from the Dashboard to the &#8220;Upload&#8221; folder. To solve this , log in to phpmyadmin on your server. Select the newly imported database .<br />
Select the wp_options table and click Browse.<br />
<a href="http://iacobionut.com/wp-content/uploads/2009/07/6.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/6.jpg" alt="" title="WP DB" width="500" height="356" class="alignnone size-full wp-image-411" /></a></p>
<p>Search for the option_name called upload_path (I found it on the second page)</p>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/7.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/7.jpg" alt="" title="wp-options" width="500" height="88" class="alignnone size-full wp-image-412" /></a></p>
<p>Select it and click Change (the little Pencil icon)</p>
<p>Enter the Full path to your &#8220;Uploads&#8221; folder and click GO.</p>
<p><a href="http://iacobionut.com/wp-content/uploads/2009/07/8.jpg" rel="lightbox"><img src="http://iacobionut.com/wp-content/uploads/2009/07/8.jpg" alt="" title="Edit wp-options" width="500" height="228" class="alignnone size-full wp-image-413" /></a></p>
<p>And you&#8217;re done.</p>
]]></content:encoded>
			<wfw:commentRss>http://iacobionut.com/wordpress-how-to-exporting-importing-a-wordpress-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress How-To : Week 1 &#8211; The Excerpt</title>
		<link>http://iacobionut.com/wordpress-how-to-week-1-the-excerpt/</link>
		<comments>http://iacobionut.com/wordpress-how-to-week-1-the-excerpt/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 20:09:36 +0000</pubDate>
		<dc:creator>Iacob Ionut</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[excerpt]]></category>

		<guid isPermaLink="false">http://iacobionut.com/?p=67</guid>
		<description><![CDATA[I&#8217;ve decided to make some changes to the blog. One is to write a weekly series of &#8220;Wordpress How-To&#8217;s&#8221; . Every monday  I&#8217;ll try to find something interesting about Wordpress and write about it . Ok&#8230;now let&#8217;s begin.

Week 1 : Wordpress Excerpt &#8211; how to limit the number of words displayed 
The excerpt displays [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve decided to make some changes to the blog. One is to write a weekly series of &#8220;Wordpress How-To&#8217;s&#8221; . Every monday  I&#8217;ll try to find something interesting about Wordpress and write about it . Ok&#8230;now let&#8217;s begin.<br />
<span id="more-67"></span></p>
<h3>Week 1 : Wordpress Excerpt &#8211; how to limit the number of words displayed </h3>
<p>The excerpt displays the first 55 words of a post&#8230;a &#8220;teaser&#8221; if you like.It&#8217;s usually used on front pages of blogs and online newspapers  . Unlike the_content() , the_excerpt() does not show a &#8220;Read More&#8221; link after the text &#8230;this is replaced by [..] .</p>
<p>Today we&#8217;ll learn how to change the number of words displayed by the excerpt.Let&#8217;s say that you don&#8217;t have the space to show the first 55 words of a post/article and you would like to show only the first 25.This is how you do it :</p>
<p>First of all you&#8217;ll need to open the functions.php file of your theme and add these following lines:</p>
<pre class="brush: php;">
&lt;?php
function string_limit_words($string, $word_limit)
{
  $words = explode(' ', $string, ($word_limit + 1));
  if(count($words) &gt; $word_limit)
  array_pop($words);
  return implode(' ', $words);
}
?&gt;
</pre>
<p>Then add this where you want the excerpt to be displayed :</p>
<pre class="brush: php;">
&lt;?php $excerpt = get_the_excerpt();
 echo string_limit_words($excerpt,25);
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://iacobionut.com/wordpress-how-to-week-1-the-excerpt/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
