﻿<?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>Ladysign Dev Blog &#187; Joomla to Wordpress</title>
	<atom:link href="http://www.ladysign-apps.com/blog/tag/joomla-to-wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 01 Feb 2010 09:44:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Migrating from Joomla to Wordpress</title>
		<link>http://www.ladysign-apps.com/blog/code/sql/migrating-from-joomla-to-wordpress/</link>
		<comments>http://www.ladysign-apps.com/blog/code/sql/migrating-from-joomla-to-wordpress/#comments</comments>
		<pubDate>Sun, 03 May 2009 09:09:29 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[joomla]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Joomla to Wordpress]]></category>
		<category><![CDATA[Mambo]]></category>
		<category><![CDATA[Mambo to Joomla]]></category>
		<category><![CDATA[MD5]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[password encryption]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[Porting]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=664</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>One of my websites is build on the CMS Joomla. These days I&#8217;m much more comfortable with Wordpress.<br />
Today I will gu[......]</p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 2 out of 5 stars</p>
<p>One of my websites is build on the CMS Joomla. These days I&#8217;m much more comfortable with Wordpress.<br />
Today I will guide you, how to easy migrate from Joomla/Mambo to Wordpress.</p>
<p><strong>Migrating Articles from Mambo/Joomla to Wordpress</strong><br />
With <a href="http://www.blevins.nl/missiontech/">this wizzard from Rodney Blevins </a>you can migrate Mambo/Joomla articles and links very easy to Wordpress.<br />
Unfortunately migrating the links didn&#8217;t really work for my Wordpress 2.7.</p>
<p><em>Notice that for this wizzard, both installations of Mambo/Joomla and Wordpress need to be on the same webserver installed.</em></p>
<ol>
<li>Download the wizzard from the above link.</li>
<li>Create a new folder &#8220;export&#8221; in the root of your Wordpress installation.</li>
<li>Edit the config.php file, with the database name, username, password of Mambo/Joomla and Wordpress database settings.</li>
<li>Incase you have Joomla installed, or you changed the database prefix; you&#8217;ll have to edit the var: &#8220;$dbprefix&#8221; to your prefix. For example: &#8220;mos_&#8221; to: &#8220;jos_&#8221;.</li>
<li>Incase the database prefix for the Wordpress DB is different then &#8220;wp_&#8221;; open up the index.php file, and search / replace all: &#8220;wp_&#8221; and change it manually to your prefix. For example: &#8220;wp_&#8221; to &#8220;lee_&#8221;.</li>
<li>Now save and upload the index.php and config.php files to the export folder</li>
<li>Surf to http://your-wp-installation/export and follow the steps to import your articles or links into Wordpress.</li>
</ol>
<p><strong>Removing Mambo/Joomla tags from Wordpress posts</strong><br />
Now when your done, it could be that your Wordpress post message contain Joomla tags in the post.<br />
Tags like: &#8220;{mosimage}&#8221; or plugin based tags like: &#8220;{rokaccess}&#8221;.<br />
You can easily remove these tags from all your post with some database queries.<br />
Open phpMyAdmin and within your Wordpress database, press the SQL tab.</p>
<p>To see how many post I have with Mambo/Joomla tags, I used this query:</p>
<pre class="brush: sql;">
SELECT * FROM wp_posts WHERE post_content LIKE &amp;quot;%{%&amp;quot;
</pre>
<p>I noticed by the retrieved list, that some of my posts contain the {mosimage} tag.<br />
To remove (replace to empty string) these tags and update my posts, I used the following query:</p>
<pre class="brush: sql;">
UPDATE wp_posts SET post_content = replace(post_content, &amp;quot;{mosimage}&amp;quot;, &amp;quot;&amp;quot;);
</pre>
<p>Just another check, to see if 0 posts return, if I search in my Wordpress database for the {mosimage} tag:</p>
<pre class="brush: sql;">
SELECT * FROM wp_posts WHERE post_content LIKE &amp;quot;{mosimage}&amp;quot;
</pre>
<p><strong>Migrating users</strong><br />
The next important thing to migrate, will be the user database.<br />
Let&#8217;s compare both XML exports from phpMyAdmin, to see the table structures:</p>
<p>Joomla Export:</p>
<pre class="brush: xml;">
&amp;lt;jos_users&amp;gt;
    &amp;lt;id&amp;gt;64&amp;lt;/id&amp;gt;
    &amp;lt;name&amp;gt;Lee&amp;lt;/name&amp;gt;
    &amp;lt;username&amp;gt;Lee&amp;lt;/username&amp;gt;
    &amp;lt;email&amp;gt;my@email.nl&amp;lt;/email&amp;gt;
    &amp;lt;password&amp;gt;###&amp;lt;/password&amp;gt;
    &amp;lt;usertype&amp;gt;Super Administrator&amp;lt;/usertype&amp;gt;
    &amp;lt;block&amp;gt;0&amp;lt;/block&amp;gt;
    &amp;lt;sendEmail&amp;gt;0&amp;lt;/sendEmail&amp;gt;
    &amp;lt;gid&amp;gt;25&amp;lt;/gid&amp;gt;
    &amp;lt;registerDate&amp;gt;2007-07-25 21:57:51&amp;lt;/registerDate&amp;gt;
    &amp;lt;lastvisitDate&amp;gt;2009-05-01 18:01:52&amp;lt;/lastvisitDate&amp;gt;
    &amp;lt;activation&amp;gt;&amp;lt;/activation&amp;gt;
    &amp;lt;params&amp;gt;editor=none&amp;lt;/params&amp;gt;
&amp;lt;/jos_users&amp;gt;
</pre>
<p>Same Export in Wordpress would be:</p>
<pre class="brush: xml;">
&amp;lt;wp_users&amp;gt;
    &amp;lt;user_login&amp;gt;Lee&amp;lt;/user_login&amp;gt;
    &amp;lt;user_pass&amp;gt;&amp;lt;/user_pass&amp;gt;
    &amp;lt;user_nicename&amp;gt;Lee&amp;lt;/user_nicename&amp;gt;
    &amp;lt;user_email&amp;gt;my@email.nl&amp;lt;/user_email&amp;gt;
    &amp;lt;user_url&amp;gt;http://www.ladysign.nl&amp;lt;/user_url&amp;gt;
    &amp;lt;user_registered&amp;gt;2007-07-25 21:57:51&amp;lt;&amp;lt;/user_registered&amp;gt;
    &amp;lt;user_activation_key&amp;gt;&amp;lt;/user_activation_key&amp;gt;
    &amp;lt;user_status&amp;gt;0&amp;lt;/user_status&amp;gt;
    &amp;lt;display_name&amp;gt;Lee&amp;lt;/display_name&amp;gt;
&amp;lt;/wp_users&amp;gt;
</pre>
<p>Be replacing the table names in the export, or writing a nice script which creates a INSERT INTO query,<br />
you can prefill the Wordpress database with the users from the Mambo/Joomla user table.<br />
However, there will be one problem.</p>
<p><strong>Password encryption</strong><br />
And that problem is setting over the passwords.<br />
Joomla! 1.5 uses MD5 to hash the passwords.  When the passwords are created, they are hashed with a 32 character salt that is appended to the end of the password string.<br />
The password is stored as {TOTAL HASH}:{ORIGINAL SALT}.<br />
That&#8217;s diffrent then the MD5 encryption of Wordpress.<br />
For now I&#8217;ll solve this, by removing all the Wordpress passwords, and let the user recreate a new one via &#8216;lost password&#8217;.<br />
This is ofcourse not a nice solution. Does anyone has an idea?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/sql/migrating-from-joomla-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
