joomlify {we} make stuff joomla..

Migrating from jd-wp to com_mojo (mojoBlog).

by Thorsten Riess (tcriess)

Tools, Utilities you'll need:

  • Access to your joomla database.
  • phpMyAdmin or similar db utility
  • text editor (your choice)
  • ftp tool (transmit/mac or ftpro/win)
  • webbrowser (ff, ie, safari, etc.,)

Important: Before you UNINSTALL jd-wp

Back up - most importantly, back up the folder "uploads" in "/components/com_jd-wp/wp-content"
and the folder "smilies" in "/components/com_jd-wp/wp-includes/images".

Also back up all the data base entries that start with "jos_wp_"
(if necessary replace "jos" with the prefix you chose upon installing Joomla, the standard prefix is "jos").

Prep for uninstall of jd-wp

Make sure you can cleanly uninstall JD-WP, that is, replace the text "option=com_jd-wiki" by "option=com_jd-wp" in the file "/administrator/components/com_jd-wp/jd-wp.xml".

Uninstall JD-WP via the Joomla backend.

Install mojoBlog

Install mojo via the Joomla backend.

Merge older jd-wp posts and comments with mojo

Empty the database that starts with "jos_wp". Then insert the data from the JD-WP-backup into the database tables. You might want to skip the database "jos_wp_options" in this process. If you did not skip it, then you have to edit the entries in "jos_wp_options" by hand (change the values of "siteurl" and "home" (and possibly some more) such that every occurence of "com_jd-wp" is replaces by "com_mojo").

Run the following SQL queries to adjust the uploaded files in your old posts to their new location:

UPDATE `jos_wp_posts` SET post_content = REPLACE( post_content, 'com_jd-wp', 'com_mojo')
UPDATE `jos_wp_posts` SET guid = REPLACE( guid, 'com_jd-wp', 'com_mojo' ) WHERE post_status='attachment';
UPDATE `jos_wp_postmeta` SET meta_value = REPLACE( meta_value, 'com_jd-wp', 'com_mojo') WHERE meta_key='_wp_attached_file';
UPDATE `jos_wp_postmeta` SET meta_value = REPLACE( meta_value, 'com_jd-wp', 'com_mojo/') WHERE meta_key='_wp_attachment_metadata';

The SQL statements ensure that the images in your JD-WP posts are correctly displayed and that you can still access them if you edit one of the JD-WP posts.

Copy the backup folder "uploads" to "components/com_mojo/wp-content". It is also a good idea to clear the cache folder while you are there. Copy the "smilies" folder to "components/com_mojo/wp-includes/images" (create this directory if it is not there).

That's it. Create a new menu entry and enjoy mojo!

bookmark this article:
Digg
Delicious
Spurl
Mister.Wong
Technorati

mojo "spring08" © 2008mojotheme. All rights reserved. | icons courtesy iconbuffet.com bandwidth by site5 hosting