- Posts: 4
- Thank you received: 5
Kunena 5.2 Beta 1 Released (24 Sep 2020)
The Kunena team is thrilled to announce the first public beta release of Kunena 5.2, a native Joomla extension for Joomla 3.9. This is a development release and should be only be used for testing; this version is not recommended for live websites at this stage.
The purpose of this release is to encourage testing by downloading, installing and identifying any problems or shortcomings that people may discover. K 5.2.0 B1 is stable and we are aware that people will discover defects. We encourage you to use the forum to report defects, as soon as they are discovered, so that the development team can work through the problems before the release of K 5.1 as a stable product. Reporting defects does not mean that the problems can or will be fixed. The Kunena team is looking forward to hearing your feedback on how well we have achieved our design goals.
It is important to note that the Kunena team does not have a standard, recommended or supported protocol for these ideas and that posting questions in this category may not receive advice from team members.
Solved EasyDiscuss to Kunena
These are the SQL queries I ran to get as far as I am now, if anyone has any suggestions that would be awesome.
*Edited See below
DO THIS AT YOUR OWN RISK! I AM NOT A SQL EXPERT, I DID A TON OF GOOGLING! ALWAYS BACKUP YOUR DATABASE BEFORE MAKING ANY CHANGES!
(Remember to replace xx with your DB prefix)
First we truncated all the tables in Kunena we wanted to migrate data into.
(NOTE: This removes everything from these tables!)
TRUNCATE TABLE 'xx_kunena_categories' TRUNCATE TABLE 'xx_kunena_messages' TRUNCATE TABLE 'xx_kunena_messages_text' TRUNCATE TABLE 'xx_kunena_topics' TRUNCATE TABLE 'xx_kunena_user_topics'
Now I had to change the way the TimeStamps were in Kunena to except EasyDiscuss TimeStamp
(There probably is an easier way but this is how I did it)
I went into phpMyAdmin and found the following tables
and modified these columns: first_post_time, last_post_time, time
INT Default 0
datetime Default 0000-00-00 00:00:00
Now we are ready to migrate Categories, Topics and Replies into Kunena
INSERT INTO xx_kunena_categories (id,name,description,alias,published,parent_id) SELECT id,title,description,alias,published,parent_id FROM xx_discuss_category
Parent Post into Topics table
INSERT INTO xx_kunena_topics (id,first_post_id,subject,first_post_time,first_post_message,ordering,hits,locked,first_post_userid,first_post_guest_name,category_id) SELECT id,id,title,created,content,ordering,hits,islock,user_id,poster_name,category_id FROM xx_discuss_posts WHERE parent_id = 0
Posts into Messages table
INSERT INTO xx_kunena_messages (id,subject,time,ordering,hits,locked,userid,parent,name,email,catid,ip) SELECT id,title,created,ordering,hits,islock,user_id,parent_id,poster_name,poster_email,category_id,ip FROM xx_discuss_posts
Set Replies to the right Thread
UPDATE xx_kunena_messages AS msg SET msg.thread = msg.parent
Set the Parent to the right Thread
UPDATE xx_kunena_messages AS msg SET msg.thread = msg.id WHERE msg.parent = 0
Import the Post Content into the msg_txt table
INSERT INTO xx_kunena_messages_text (mesid,message) SELECT id,content FROM xx_discuss_posts
Now this is where I went into Joomla's backend -> Kunena Forum -> Forum Tools -> Recount Statistics
Doing this you will notice all your Counts are off however it updates the last_post_time table for us so we can continue
Now remember when we modified the TimeStamp method for Kunena? This is where we change it back and convert EasyDiscuss Time to Kunena Time.
ALTER TABLE xx_kunena_topics ADD new_first_post_time int NOT NULL DEFAULT 0
UPDATE xx_kunena_topics SET new_first_post_time = UNIX_TIMESTAMP(first_post_time)
ALTER TABLE xx_kunena_topics DROP COLUMN first_post_time
ALTER TABLE xx_kunena_topics CHANGE new_first_post_time first_post_time INT( 11 ) NOT NULL DEFAULT '0'
ALTER TABLE xx_kunena_topics ADD new_last_post_time int NOT NULL DEFAULT 0
UPDATE xx_kunena_topics SET new_last_post_time = UNIX_TIMESTAMP(last_post_time)
ALTER TABLE xx_kunena_topics DROP COLUMN last_post_time
ALTER TABLE xx_kunena_topics CHANGE new_last_post_time last_post_time INT( 11 ) NOT NULL DEFAULT '0'
ALTER TABLE xx_kunena_messages ADD new_time int NOT NULL DEFAULT 0
UPDATE xx_kunena_messages SET new_time = UNIX_TIMESTAMP(time)
ALTER TABLE xx_kunena_messages DROP COLUMN time
ALTER TABLE xx_kunena_messages CHANGE new_time time INT( 11 ) NOT NULL DEFAULT '0'
Then I went back into the Backend and do another Recount Statistics and BAM! everything works great. Like I said above, I'm not a SQL Expert so do this at your own risk, however this worked great for us.
We unfortunately migrated to EasyDicuss from our old Kunena forum around 6 months ago for a hoped better UX ... but has been horrible to work with and we want to get ourselves back on Kunena. Kunena just works and I wish we'd stayed with it and just done a heap of optimisations ... so now we have to get back where the grass is greener.
Look forward to your reply ... and experiences anyone else has had with this method ... or other transfer methods from EasyDiscuss to Kunena.
** Also, if anyone provides services for an EasyDiscuss to Kunena transfer (and possibly ongoing assistance) please reach out and make contact.
Thank you so much for sharing your fantastic work here!
Today, I just performed a EasyDiscuss 3.2.9463 conversion to Kunena 3.0.6 per your detailed instructions and everything went flawlessly.
I would add just a few clarifications for those of us who like to cut & paste the queries:
1) Add the missing end-of-query semicolon to the truncation queries -
TRUNCATE TABLE xx_kunena_categories;
TRUNCATE TABLE xx_kunena_messages;
TRUNCATE TABLE xx_kunena_messages_text;
TRUNCATE TABLE xx_kunena_topics;
TRUNCATE TABLE xx_kunena_user_topics;
2) Add the queries for DATETIME conversions -
ALTER TABLE xx_kunena_topics MODIFY COLUMN first_post_time DATETIME NOT
NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE xx_kunena_topics MODIFY COLUMN last_post_time DATETIME NOT
NULL DEFAULT '0000-00-00 00:00:00';
ALTER TABLE xx_kunena_messages MODIFY COLUMN time DATETIME NOT
NULL DEFAULT '0000-00-00 00:00:00';
You made a difficult task easy. Thank you for sharing it all. -- Rik
PS: By the way, I started with vBulletin 4.x and converted to EasyDiscuss (which has a good converter) about 4 months ago before ending up at Kunena via this conversion method.
Since no one replied on my question, i started myself to convert from easy discuss > Kunena.
Thx to the posters above i was verry suprised all went well. Considering i never ever did queries in databases before (i even did not know what is was) thats a huge compliment to the posters above.
Excellent work and thaks a lot Rik and Ubelmort !
Just one note:
I had just 4 categories in Easy Discuss. After migrating they become sections wich turned to be in "no published categories" message in Kunena.
So if you like to see all the migrated posts in Kunena > Just make a new section and make the categories from easy discuss (wich become sections in Kunena) childs from the new section you created.
- Not Allowed: to create new topic.
- Not Allowed: to reply.
- Not Allowed: to edit your message.