Pragmatism in Code

Michael Percy AKA DeeEmm - Waxing lyrical about life the universe and everything software related...

Subscribe to feed Viewing entries tagged Migrate

Migrating from Geeklog to Joomla

Posted by DeeEmm
DeeEmm
DeeEmm AKA Michael Percy is an industrial software engineer specialising in lang
User is currently offline
on Thursday, 06 January 2011
in General

[UPDATED!]

Now that the New Year is under way, I've turned my focus back to the Joomla project that i have been working on. This is the migration of an existing Geeklog site over to the Joomla (JomSocial) platform. The basic site design and functionality has now been finalised, and the next stage is to start migrating the existing data across.

The migration away from Geeklog is due to the lack of development on both the Geeklog and GLFusion platforms. Although there have been releases in recent times, these have been little more than security updates. GLFusion promised to take Geeklog into the current Web 2 age, but after over a year, it has failed to really pick up any momentum, plus, with many features missing from the core and requiring non-existant third party plugins, the decision was made to migrate away from Geeklog, to the better supported Joomla.

Unfortunately, it does not appear that many (any) have trodden this path before, and so i was not able to turn up any suitable info from the usual Google, search. This meant a bit of DIY hacking to get the data migrated. I did manage to find enough info on user authentication to be able to figure out how to migrate the users across without needing to get users to change passwords, which is a boon for a site like this one, which has some 1600 odd members.

I've now completed the migration process, and decided to document what I have done, to assist those who may want to do the same. I will release this in several tutorials, each dealing with a separate aspect of the migration, which is basically how I have tackled the job.

User migration (Geeklog to Joomla / JomSocial)

Forums migration (Geeklog to Kunena)

Gallery migration (MediaGallery to JomSocial)

Blog migration (GL Journal to MyBlog)

Stories migration (Geeklog to Joomla)

The Geeklog site is version 1.5.2, but I believe the process will work the same for the current 1.7 version and also the spin off GLFusion port. The Geeklog set up uses the MediaGallery plugin (MG), which is now an integrated part of GLFusion. We had previously migrated from 4Images to MediaGallery, so the same upgrade path is available for those wishing to migrate image info. Other plugins that we are running are GL Journal, a blogging plugin, and the standard GL forums, which have been migrated to Kunena.

First tutorial, is migration of the user data. Once performed, your users will be able to log into the Joomla / JomSocial site with their existing Geeklog credentials. You can find the article in the tutorials section or by clicking the following link

http://www.deeemm.com/resources/tutorials/53-joomla-how-tos/201-joomla--jomsocial-import-users-from-geeklog--glfusion.html

Second tutorial is migration of the Geeklog forums into Kunena.

http://www.deeemm.com/resources/tutorials/53-joomla-how-tos/203-joomla--jomsocial-import-forum-from-geeklog--glfusion-into-kunena.html

Third tutorial is migration of media gallery

http://www.deeemm.com/resources/tutorials/53-joomla-how-tos/204-joomla--jomsocial-import-user-galleries-from-geeklog--glfusion-media-gallery-mg.html

The final tutorial covers how to convert Geeklog stories into Joomla articles

http://www.deeemm.com/resources/tutorials/53-joomla-how-tos/205-joomla--jomsocial-import-stories-from-geeklog--glfusion.html

Hits: 1631 0 Comments Continue reading
Rate this blog entry
0 votes

Dolphin Tag Converter

Posted by DeeEmm
DeeEmm
DeeEmm AKA Michael Percy is an industrial software engineer specialising in lang
User is currently offline
on Thursday, 10 June 2010
in Dolphin 7.0.x Modifications

If like me, you used the migration tool to transfer your Dolphin 6 based site over to Dolphin 7, you will notice that there are some things that need a little tweaking. One of these things for me was the tags.

On D6 tags could use a space as a delimiter, but on Dolphin 7 the space is ignored, this is to allow multi word tags. What this effectively does is create massive long 'tag words' out of those tags that were entered without using a comma as a delimiter in D6.

The following code reads the tags and splits them up if more than one word is detected. it then deletes the original entry and creates a new entry for each word detected using the original data. Single word tags are ignored

$sql_query = mysql_query("SELECT * FROM `sys_tags`");

while($sql_result = mysql_fetch_array($sql_query))

{

$sTag = $sql_result['Tag'];

$sObjID = $sql_result['ObjID'];

$sType = $sql_result['Type'];

$aTag = explode(" ", $sTag);

if (count($aTag) > 1){

mysql_query("DELETE FROM `sys_tags` WHERE `Tag` = '{$sql_result['Tag']}'");

foreach($aTag as $sNewTag) {

mysql_query("INSERT INTO `sys_tags` (`Tag`, `ObjID`, `Type`, `Date`) VALUES ('$sNewTag', '$sObjID', '$sType', '{$sql_result['Date']}') ") or die(mysql_error());

echo 'new tag ' . $sNewTag . ' created
';

}

}

}

You will need to decide how you deploy the code - I downloaded the sys_tags table from my site and created a test database on my local test server with it, then I simply added a database connection to the above code it and ran it locally. I then uploaded the resultant table back to my sites database.

Please make sure you make a backup before running this script, as once the values have been modified there is no way to go back.

/DM

 

 

Recent comment in this post Show all comments
  • DeeEmm
    DeeEmm says #
    This also available as a downloadable MOD from our store - [url]http://www.deeemm.com/store.html?page=shop.product_details&flypage...
Hits: 1316 1 Comment Continue reading
Rate this blog entry
0 votes