<?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>Revolution Media &#187; Tutorials</title>
	<atom:link href="http://www.revolution-media.net/index.php/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.revolution-media.net</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 13 Aug 2010 13:45:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Move Wordpress Website From Localhost To The Destination Server</title>
		<link>http://www.revolution-media.net/index.php/2009/07/how-to-move-wordpress-website-from-localhost-to-the-destination-server/</link>
		<comments>http://www.revolution-media.net/index.php/2009/07/how-to-move-wordpress-website-from-localhost-to-the-destination-server/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:12:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.revolution-media.net/?p=539</guid>
		<description><![CDATA[
Did you ever experienced hard times trying to get your hand crafted Wordpress website transferred from your local test environment to the destination server? Did you spend countless hours trying to make things work? If you can answer yes to these questions then this article is for you. I&#8217;ll explain in plain English how to [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-574" href="http://www.revolution-media.net/index.php/2009/07/how-to-move-wordpress-website-from-localhost-to-the-destination-server/title-tut02/"><img class="aligncenter size-full wp-image-574" title="title-tut02" src="http://www.revolution-media.net/wp-content/uploads/2009/07/title-tut02.jpg" alt="title-tut02" width="630" height="150" /></a></p>
<p>Did you ever experienced hard times trying to get your hand crafted Wordpress website transferred from your local test environment to the destination server? Did you spend countless hours trying to make things work? If you can answer yes to these questions then this article is for you. I&#8217;ll explain in plain English how to make a smooth transition from you localhost to the destination server.<span id="more-539"></span></p>
<p>Before we begin, I need to make some assumptions:</p>
<ul>
<li>You have your website working perfectly on your local machine.</li>
<li>Local environment is either a PC or Mac on which you run a web server with PHP and a MySQL database and you have access to phpMyAdmin.</li>
<li>Destination server runs Apache or IIS, you have FTP details, access to phpMyAdmin, database server name, database name, database user name &amp; password.</li>
<li>Other configurations may work as well.</li>
<li>It doesn&#8217;t matter which version of Wordpress you are using.</li>
</ul>
<p>Also, a quick <strong>&#8220;executive summary&#8221;</strong> of all the steps below:</p>
<ol>
<li>Export your local Wordpress database to a text file.</li>
<li>Search and replace <em>http://localhost/yoursite</em> with <em>http://www.yoursite.com</em></li>
<li>Create a database on your destination server and import your database.</li>
<li>Copy all files from your local machine to destination server and amend wp-config.php file with new database details.</li>
<li>If necessary change file and folders permissions so Wordpress will be able to use them.</li>
</ol>
<h2>Step 1 &#8211; Export Local Database To Text File</h2>
<p>Open up your browser and access phpMyAdmin and select your website database from the drop down box on the left. This may look like this:</p>
<div id="attachment_543" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step1a.png"><img class="size-medium wp-image-543 " title="step1a" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step1a-300x225.png" alt="step1a" width="300" height="225" /></a><p class="wp-caption-text">Step 1a (click to enlarge)</p></div>
<p>Go to Export section (click on the Export tab at the top). Depend on your version of the phpMyAdmin this section may look bit different but the functionality will be the same.</p>
<p>Click <strong>&#8216;Select All&#8217;</strong> in the Export form. All tables should be selected now. Leave other options as they are. Navigate to the bottom and tick <strong>&#8216;Save as file&#8217;</strong> checkbox. Click <strong>&#8216;Go&#8217;</strong>.</p>
<div id="attachment_544" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step1b.png"><img class="size-medium wp-image-544" title="step1b" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step1b-300x225.png" alt="Step 1b (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 1b (click to enlarge)</p></div>
<div id="attachment_545" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step1c.png"><img class="size-medium wp-image-545" title="step1c" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step1c-300x225.png" alt="step1c" width="300" height="225" /></a><p class="wp-caption-text">Step 1c (click to enlarge)</p></div>
<p>File save dialog will appear. Click OK and save that SQL file on your computer. Step 1 completed. Get yourself a coffee.</p>
<div id="attachment_546" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step1d.png"><img class="size-medium wp-image-546" title="step1d" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step1d-300x225.png" alt="Step 1d (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 1d (click to enlarge)</p></div>
<h2>Step 2 &#8211; Search &amp; Replace</h2>
<p>Now, we have to change your database export file and find &amp; replace all URLs that contain http://localhost/yoursite with http://www.yoursite.com</p>
<p>I&#8217;m using Dreamweaver but you can use any text editor to do the same.</p>
<div id="attachment_553" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step2a.png"><img class="size-medium wp-image-553" title="step2a" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step2a-300x225.png" alt="Step 2a (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 2a (click to enlarge)</p></div>
<p>We have to change another line as well. Find line <img src="file:///C:/DOCUME%7E1/pbrady/LOCALS%7E1/Temp/moz-screenshot-2.png" alt="" />C:\\Program Files\\xampp\\htdocs\\yoursite/wp-content/uploads and strip it down to /wp-content/uploads and finally save your SQL file.</p>
<div id="attachment_552" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step2b.png"><img class="size-medium wp-image-552" title="step2b" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step2b-300x225.png" alt="Step 2b (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 2b (click to enlarge)</p></div>
<h2>Step 3 &#8211; Import Information Into Destination Server Database</h2>
<p>On your destination server you have to create database for your WP installation. It may look like this screen below (assuming you&#8217;ll be using phpMyAdmin) However in most cases you&#8217;ll have to log onto your server administration panel and create database, user and password from there. It varies from provider to provider so please refer to your hosting provider help section.</p>
<div id="attachment_555" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step3a.png"><img class="size-medium wp-image-555" title="step3a" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step3a-300x225.png" alt="Step 3a (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 3a (click to enlarge)</p></div>
<p>Now as you have your database created you should populate it with your data. Click on the <strong>Import</strong> tab at the top of the page. Click on <strong>Browse</strong> in the &#8216;File to import&#8217; section and select your amended SQL file. Click <strong>Go</strong> to proceed.</p>
<div id="attachment_556" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step3b.png"><img class="size-medium wp-image-556" title="step3b" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step3b-300x225.png" alt="Step 3b (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 3b (click to enlarge)</p></div>
<p>If everything went well you should see table names on the left hand side and a message saying something similar to this: &#8216;Import has been successfully finished, 162 queries executed.&#8217; You&#8217;re done and deserve another coffee.</p>
<div id="attachment_557" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.revolution-media.net/wp-content/uploads/2009/07/step3c.png"><img class="size-medium wp-image-557" title="step3c" src="http://www.revolution-media.net/wp-content/uploads/2009/07/step3c-300x225.png" alt="Step 3c (click to enlarge)" width="300" height="225" /></a><p class="wp-caption-text">Step 3c (click to enlarge)</p></div>
<h2>Step 4 &#8211; Upload Wordpress Files</h2>
<p>In this step you should use your favourite FTP client to upload all files to your destination server. If you created a brand new website than you can upload everything including <em>index.php</em> file. If you upgrading an existing website then you have to make sure that it will work until you launch your WP website. DON&#8217;T DELETE ANY FILES that belongs to your existing website. Make sure your Wordpress website works first, then you&#8217;re safe to delete the old files.</p>
<p>To make your website work you should update <em>wp-config.php</em> file with your database details: database name, database server address, database user and password. Once done, you should be able to see your new website at http://www.yoursite.com/</p>
<p>Now, you have to test if you can login to the administration panel. So type in http://www.yoursite.com/wp-admin/ to find out. If you can see WP admin login screen you&#8217;re half way there. Type in your login details and login. If you&#8217;re successfull you should see WP Dashboard.</p>
<p>That&#8217;s it. You&#8217;re done.</p>
<h2>Step 5 &#8211; Fine Tuning your Wordpress website</h2>
<p>Few other thing you should take care of:</p>
<ul>
<li>Make sure that you can upload any new images or documents. If you can&#8217;t it means that you have to change files/folders permissions and give Wordpress read/write right for necessary folders.</li>
<li>Check if your permalink structure works. Amend if necessary.</li>
<li>Make sure you&#8217;re running the latest version of Wordpress and upgrade automatically to the newest one where possible.</li>
<li>Check if you have installed latest versions of any plugins that you&#8217;re using. Be careful though! Some plugins require PHP5 to work properly or require additional libraries to be enabled. Check this prior to any upgrades.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.revolution-media.net/index.php/2009/07/how-to-move-wordpress-website-from-localhost-to-the-destination-server/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>How to add individual icons to Wordpress generated menu?</title>
		<link>http://www.revolution-media.net/index.php/2009/06/how-to-add-individual-icons-to-wordpress-generated-menu/</link>
		<comments>http://www.revolution-media.net/index.php/2009/06/how-to-add-individual-icons-to-wordpress-generated-menu/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 09:42:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.revolution-media.net/?p=463</guid>
		<description><![CDATA[This short tutorial hopefully will be a begining of the series.

I was redesigning Unified Communications website and my goal was to make it similar to CDSoft website. CDsoft&#8217;s website is based on Wordpress engine but it is using templates extensivelly to make Flash Tab Menu work properly (I know, it could be done better). Anyway, [...]]]></description>
			<content:encoded><![CDATA[<p>This short tutorial hopefully will be a begining of the series.</p>
<p><img class="aligncenter size-full wp-image-494" title="uc-menu" src="http://www.revolution-media.net/wp-content/uploads/2009/06/uc-menu.jpg" alt="uc-menu" width="630" height="170" /></p>
<p>I was redesigning <a title="Unified Communications" href="http://www.unifiedcommunications.ie" target="_blank">Unified Communications</a> website and my goal was to make it similar to <a title="CDSoft" href="http://www.cdsoft.ie/" target="_blank">CDSoft</a> website. CDsoft&#8217;s website is based on Wordpress engine but it is using templates extensivelly to make Flash Tab Menu work properly (I know, it could be done better). Anyway, I didn&#8217;t want to create another flash menu for the UC website and wanted to make it look consistent at the same time.</p>
<p><span id="more-463"></span></p>
<p>UC website is based on Wordpress but it has less content and it&#8217;s focused only on one solution CDSoft provides, the Unified Communications from Microsoft.</p>
<p>Let&#8217;s start then. First, I&#8217;ve placed my main menu into <em>header.php</em> and this is how it looks:</p>
<pre class="brush: php; collapse: false;">
&amp;lt;div id=&amp;quot;main-nav&amp;quot;&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;?php wp_list_pages('title_li=&amp;amp;depth=1'); ?&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;
</pre>
<p>So, let&#8217;s have a look on how generated HTML code looks like:</p>
<pre class="brush: php; collapse: false;">
&amp;lt;div id=&amp;quot;main-nav&amp;quot;&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;li class=&amp;quot;page_item page-item-6&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://localhost/unified/index.php/about-uc/&amp;quot; title=&amp;quot;About UC&amp;quot;&amp;gt;About UC&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
[...]
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;
</pre>
<p>I need my menu items to be highlighted on HOVER and to be highlighted same way when a section is selected. This highlight is that subtle gradient. Also I want each menu item to have a different icon. I decided that highlight will be done through a:HOVER and icons will be done through a span. So I need to have &lt;span&gt;&lt;/span&gt; added around menu name. With Wordpress you can do it easily by using wp_list_pages() options. Here&#8217;s how it looks now.</p>
<pre class="brush: php; collapse: false;">
&amp;lt;div id=&amp;quot;main-nav&amp;quot;&amp;gt;
&amp;lt;ul&amp;gt;
&amp;lt;?php wp_list_pages('title_li=&amp;amp;link_before=&amp;lt;span&amp;gt;&amp;amp;link_after=&amp;lt;/span&amp;gt;&amp;amp;depth=1'); ?&amp;gt;
&amp;lt;/ul&amp;gt;
&amp;lt;/div&amp;gt;
</pre>
<p>OK, so by default, without any styling our menu looks like this:</p>
<div id="attachment_497" class="wp-caption aligncenter" style="width: 260px"><img class="size-full wp-image-497" title="uc-menu-no-styling" src="http://www.revolution-media.net/wp-content/uploads/2009/06/uc-menu-no-styling.jpg" alt="uc-menu-no-styling" width="250" height="230" /><p class="wp-caption-text">Menu without styling</p></div>
<p style="text-align: left;">So, we need to add some styling now and here it goes:</p>
<pre class="brush: php; collapse: false;">
#main-nav {
width: 920px;
height: 161px;
margin: 0 20px;
overflow: hidden;
background: url(&amp;quot;img/bgnd-main-nav.gif&amp;quot;) bottom repeat-x;
}
#main-nav ul {
margin: 0 0 0 26px;
}
#main-nav ul li {
list-style: none;
display: inline;
}
#main-nav ul li a {
display: block;
float: left;
width: 120px;
height: 128px;
margin: 0 2px;
color: #333;
text-decoration: none;
}
#main-nav ul li a:HOVER {
background: url(&amp;quot;img/bgnd-menu-item-hover.gif&amp;quot;) repeat-x;
}
#main-nav ul li.current_page_item a,
#main-nav ul li.current_page_parent a {
background: url(&amp;quot;img/bgnd-menu-item.gif&amp;quot;) repeat-x;
}
</pre>
<p>This styling produces menu that looks like this:</p>
<p><img class="aligncenter size-full wp-image-508" title="uc-menu-no-span" src="http://www.revolution-media.net/wp-content/uploads/2009/06/uc-menu-no-span.jpg" alt="uc-menu-no-span" width="630" height="170" /></p>
<p>Now, I have to style that &lt;span&gt; element and add classes for icons. Complete CSS code looks like this:</p>
<pre class="brush: php; collapse: false;">
#main-nav {
width: 920px;
height: 161px;
margin: 0 20px;
overflow: hidden;
background: url(&amp;quot;img/bgnd-main-nav.gif&amp;quot;) bottom repeat-x;
}
#main-nav ul {
margin: 0 0 0 26px;
}
#main-nav ul li {
list-style: none;
display: inline;
}
#main-nav ul li a {
display: block;
float: left;
width: 120px;
height: 128px;
margin: 0 2px;
color: #333;
text-decoration: none;
}
#main-nav ul li a:HOVER {
background: url(&amp;quot;img/bgnd-menu-item-hover.gif&amp;quot;) repeat-x;
}
#main-nav ul li.current_page_item a,
#main-nav ul li.current_page_parent a {
background: url(&amp;quot;img/bgnd-menu-item.gif&amp;quot;) repeat-x;
}
#main-nav ul li a span {
width: 120px;
height: 18px;
overflow: hidden;
padding: 110px 0 0 0;
display: block;
}
#main-nav .about-uc {
background: url(&amp;quot;img/menu/microsoft-uc.png&amp;quot;) top center no-repeat;
}
#main-nav .products {
background: url(&amp;quot;img/menu/round-table.png&amp;quot;) top center no-repeat;
}
#main-nav .accessories {
background: url(&amp;quot;img/menu/plantronics.png&amp;quot;) top center no-repeat;
}
#main-nav .ip-phones {
background: url(&amp;quot;img/menu/uc-phone.png&amp;quot;) top center no-repeat;
}
#main-nav .faq {
background: url(&amp;quot;img/menu/faq.png&amp;quot;) top center no-repeat;
}
#main-nav .blog {
background: url(&amp;quot;img/menu/blog.png&amp;quot;) top center no-repeat;
}
#main-nav .about-cdsoft {
background: url(&amp;quot;img/menu/about-cdsoft.png&amp;quot;) top center no-repeat;
}
</pre>
<p>Menu with added &lt;span&gt; styling looks like this (note that no icons are displayed yet):</p>
<p><img class="aligncenter size-full wp-image-506" title="uc-menu-no-icons" src="http://www.revolution-media.net/wp-content/uploads/2009/06/uc-menu-no-icons.jpg" alt="uc-menu-no-icons" width="630" height="170" /></p>
<p>Styling of &lt;span&gt; element moved the page title to the bottom leaving space for menu icons. Now it&#8217;s time to add these colorful icons to the menu. We&#8217;ll use simple jQuery function that can be placed in <em>header.php</em> file. Here&#8217;s the code:</p>
<pre class="brush: php; collapse: false;">
&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
$(document).ready(function() {
equalHeight($(&amp;quot;.column&amp;quot;));

var menus = new Array(&amp;quot;about-uc&amp;quot;, &amp;quot;products&amp;quot;, &amp;quot;accessories&amp;quot;, &amp;quot;ip-phones&amp;quot;, &amp;quot;faq&amp;quot;, &amp;quot;blog&amp;quot;, &amp;quot;about-cdsoft&amp;quot;);
for (j=0; j &amp;lt; menus.length; j++){
//$(&amp;quot;#main-nav li:eq(&amp;quot;+j+&amp;quot;) a span&amp;quot;).addClass(menus[j]);
}
});
&amp;lt;/script&amp;gt;
</pre>
<p>And this is how our menu looks like now:<br />
<img class="aligncenter size-full wp-image-494" title="uc-menu" src="http://www.revolution-media.net/wp-content/uploads/2009/06/uc-menu.jpg" alt="uc-menu" width="630" height="170" /></p>
<p>Visit <a title="Visit Unified Communications website" href="http://www.unifiedcommunications.ie" target="_blank">Unified Communications</a> website for more detailed look on how this works.</p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.revolution-media.net/index.php/2009/06/how-to-add-individual-icons-to-wordpress-generated-menu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
