- Posts: 6
- Thank you received: 0
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
This is for users to help other users, to discuss topics that relate to migrating from other web-based forums and converting the data into a form that will operate with Kunena.
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.
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.
Question [Solved] Migration phpbb3 to Kunena 5.0.14
7 years 8 months ago - 7 years 7 months ago #204175
by Le_Seb
[Solved] Migration phpbb3 to Kunena 5.0.14 was created by Le_Seb
Hi,
I am trying to update a site by Joomla and the forum is based on phpBB3. I would like to use Kunena to be directly integrated with Joomla, but despite many searches on the internet and on this forum, I do not manage.
I would like to migrate the database from phpBB3 to Kunena 5.0.14 (or less if necessary) and when I find the script that needs to be used and I throw it in toad, I have huge errors that appear.
I also tried to install Kunena 2.0 but once installed it does not work.
I also read that Kunena imported phpBB easily. Is that true? Did I miss a simpler program?
Do you know a solution?
Thank you in advance.
I am trying to update a site by Joomla and the forum is based on phpBB3. I would like to use Kunena to be directly integrated with Joomla, but despite many searches on the internet and on this forum, I do not manage.
I would like to migrate the database from phpBB3 to Kunena 5.0.14 (or less if necessary) and when I find the script that needs to be used and I throw it in toad, I have huge errors that appear.
I also tried to install Kunena 2.0 but once installed it does not work.
I also read that Kunena imported phpBB easily. Is that true? Did I miss a simpler program?
Do you know a solution?
Thank you in advance.
Last edit: 7 years 7 months ago by Le_Seb.
Please Log in or Create an account to join the conversation.
7 years 8 months ago #204191
by Slacker
Replied by Slacker on topic Migration phpbb3 to Kunena 5.0.14
I have converted phpBB 3.0.14 to Kunena 6 months ago. The problem for me was that I had JFusion as bridge and it changes the userid, so I had to make my own scripts to adjust for it.
I used this conversion script: github.com/mixerp/phpbb-to-kunena
I modified this script to add some smilies corrections. With this script userids for Joomla will change to phpBB userid.
I used this conversion script: github.com/mixerp/phpbb-to-kunena
I modified this script to add some smilies corrections. With this script userids for Joomla will change to phpBB userid.
Please Log in or Create an account to join the conversation.
7 years 8 months ago - 7 years 8 months ago #204193
by Le_Seb
Replied by Le_Seb on topic Migration phpbb3 to Kunena 5.0.14
My phpBB file is in 3.2.2. I used this script to test the conversion.
From the first line, I get errors. I also have smiley errors but I don't think this is the most important.
How I proceed:
1-I downloaded the database from phpBB.
2-I installed a new Joomla with Kunena 5.1 with its language pack
3-I install and I open toad
4-I edit the script with the recommendations :
4-I connect to my phpBB database
5-I open script and this is a copy of my mistakes (in red) :
I cut a lot of passage and errors and I did not put any errors that appear otherwise there would be several pages. Sorry if that didn't understand.
It's normal to have too many errors.
Yet even working locally, I should not have so many mistakes.
Should I also import the old Joomla? Yet Joomla EET phpBB was not bridged.
Is there a tutorial to correct errors?
For smileys, I change the names, the path, the abbreviations but I always have errors...
I do not see what to change because I am a novice in this area...
From the first line, I get errors. I also have smiley errors but I don't think this is the most important.
How I proceed:
1-I downloaded the database from phpBB.
2-I installed a new Joomla with Kunena 5.1 with its language pack
3-I install and I open toad
4-I edit the script with the recommendations :
- Find and replace the token "phpbb_database_name" according to your setup. (the old phpbb)
- Find and replace the token "joomla_database_name" according to your setup. (the new joomla)
- Find and replace the token "jos_" to whatever prefix you have in your joomla installation. (the new extension of the new joomla)
4-I connect to my phpBB database
5-I open script and this is a copy of my mistakes (in red) :
Warning: Spoiler!
SET @@SESSION.sql_mode='ALLOW_INVALID_DATES';
...
...
SET alias = REPLACE(REPLACE(LCASE(REPLACE(CONVERT(TRIM(str) USING ascii), '?', '')),' ','-'), '&','and');
...
...
...
#quotation mark
IF INSTR( x , '"' )
THEN SET TextString = REPLACE(TextString, '"','"') ;
END IF ;
#period
IF INSTR( x , '.' )
THEN SET TextString = REPLACE(TextString, '.','.') ;
END IF ;
...
...
...
IF(p_id <> 0) THEN
SELECT
concat(alias, '-', teamno10forum.get_alias(teamno10forum.HTML_UnEncode(forum_name)))
...
...
...
BEGIN
DECLARE str text;
set str = message;
set str = replace(str, '<a class="postlink" href="', '[url=');
set str = replace(str, '">', ']');
set str = replace(str, '</a>', '[/url]');
...
...
SET tag_pos = INSTR(str, CONCAT('', tag_name));
SET pos = LOCATE(']', str, tag_pos);
SET str = REPLACE(str, pattern, CONCAT(pattern, ' post="', post_id, '"'));
...
...
...
IF(msg LIKE '%<a%>%</a>%') THEN
SET msg = teamno10forum.fix_url(msg);
END IF;
IF(msg LIKE '%[code%') THEN
SET msg = teamno10forum.fix_tag(msg, 'code');
END IF;
IF(msg LIKE '%[b%') THEN
SET msg = teamno10forum.fix_tag(msg, 'b');
END IF;
IF(msg LIKE '%[img%') THEN
SET msg = teamno10forum.fix_tag(msg, 'img');
END IF;
IF(msg LIKE '%[quote%') THEN
SET msg = teamno10forum.fix_tag(msg, 'quote');
END IF;
SET @sql = concat('ALTER TABLE ', schemaname, '.', tablename, ' ADD ', columnname, ' ', datatype, ';');
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
...
...
...
CALL teamno10forum.create_missing_columns('teamno10forum', 'phpbb_users', 'user_from', 'varchar(256)');
...
...
...
DELETE FROM test_kunena.qb9ug_kunena_messages_text;
DELETE FROM test_kunena.qb9ug_kunena_messages;
DELETE FROM test_kunena.qb9ug_kunena_topics;
DELETE FROM test_kunena.qb9ug_kunena_aliases;
DELETE FROM test_kunena.qb9ug_kunena_categories;
DELETE FROM test_kunena.qb9ug_kunena_attachments;
DELETE FROM test_kunena.qb9ug_kunena_users;
DELETE FROM test_kunena.qb9ug_kunena_ranks;
DELETE FROM test_kunena.qb9ug_user_usergroup_map;
DELETE FROM test_kunena.qb9ug_users;
INSERT INTO test_kunena.qb9ug_users(name, username,password,params) VALUES ('Admin', 'mixerp','d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');
INSERT INTO test_kunena.qb9ug_user_usergroup_map(user_id, group_id) VALUES (LAST_INSERT_ID(),'8');
...
...
SELECT
forum_id,
parent_id,
REPLACE(forum_name, '&', '&'),
teamno10forum.get_forum_alias(forum_id) AS alias,
1 AS icon_id,
0 AS locked,
'test_kunena.level' AS accesstype,
1 AS access,
1 AS pub_access,
1 AS pub_recurse,
8 AS admin_access,
1 AS admin_recurse,
left_id AS ordering,
1 AS published,
0 AS checked_out,
'0000-00-00 00:00:00' AS checked_out_time,
0 AS review,
0 AS allow_anonymous,
0 AS post_anonymous,
0 AS hits,
forum_desc,
'' AS headerdesc,
'' AS class_sfx,
1 AS allow_polls,
'lastpost' AS topic_ordering,
forum_topics AS forum_topics,
forum_posts AS forum_posts,
teamno10forum.get_topic_id(forum_last_post_id) AS last_topic_id,
forum_last_post_id,
forum_last_post_time,
'{}' AS params
FROM teamno10forum.phpbb_forums
ORDER BY forum_id;
INSERT INTO test_kunena.qb9ug_kunena_aliases(alias, type, item, state)
SELECT alias, 'catid', id, 0
FROM test_kunena.qb9ug_kunena_categories;
...
...
...
SELECT
attach_id AS id,
post_msg_id AS mesid,
poster_id AS userid,
md5(physical_filename) AS hash,
filesize AS size,
'media/kunena/attachments/migrated' AS folder,
mimetype AS filetype,
CONCAT(physical_filename, '.jpg') AS filename
FROM teamno10forum.phpbb_attachments;
/*
The user_id->1 means "Anonymous" user in default phpBB installation.
Kunena, on the other hand, wants user_id->0 for Guest posts.
*/
UPDATE test_kunena.qb9ug_kunena_messages SET userid=0 WHERE userid=1;
UPDATE test_kunena.qb9ug_kunena_messages
INNER JOIN teamno10forum.phpbb_posts
ON teamno10forum.phpbb_posts.post_id = test_kunena.qb9ug_kunena_messages.id
SET test_kunena.qb9ug_kunena_messages.name = teamno10forum.phpbb_posts.post_username;
/*********************************************
Data migration is complete.
**********************************************/
UPDATE test_kunena.qb9ug_kunena_categories
SET numTopics = test_kunena.count_topics(id);
UPDATE test_kunena.qb9ug_kunena_categories
SET numPosts = test_kunena.count_category_posts(id);
UPDATE test_kunena.qb9ug_kunena_topics
SET test_kunena.qb9ug_kunena_topics.posts = test_kunena.count_posts(id);
/*********************************************
Statistics recounted.
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- m -->', '');
/*********************************************
Convert Emoticons to Kunena
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="
" title="Smile" /><!-- s:-) -->', '
');
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt="
" title="Smile" /><!-- s:-) -->', '
');
...
...
...
...
...
SET alias = REPLACE(REPLACE(LCASE(REPLACE(CONVERT(TRIM(str) USING ascii), '?', '')),' ','-'), '&','and');
...
...
...
#quotation mark
IF INSTR( x , '"' )
THEN SET TextString = REPLACE(TextString, '"','"') ;
END IF ;
#period
IF INSTR( x , '.' )
THEN SET TextString = REPLACE(TextString, '.','.') ;
END IF ;
...
...
...
IF(p_id <> 0) THEN
SELECT
concat(alias, '-', teamno10forum.get_alias(teamno10forum.HTML_UnEncode(forum_name)))
...
...
...
BEGIN
DECLARE str text;
set str = message;
set str = replace(str, '<a class="postlink" href="', '[url=');
set str = replace(str, '">', ']');
set str = replace(str, '</a>', '[/url]');
...
...
SET tag_pos = INSTR(str, CONCAT('', tag_name));
SET pos = LOCATE(']', str, tag_pos);
SET str = REPLACE(str, pattern, CONCAT(pattern, ' post="', post_id, '"'));
...
...
...
IF(msg LIKE '%<a%>%</a>%') THEN
SET msg = teamno10forum.fix_url(msg);
END IF;
IF(msg LIKE '%[code%') THEN
SET msg = teamno10forum.fix_tag(msg, 'code');
END IF;
IF(msg LIKE '%[b%') THEN
SET msg = teamno10forum.fix_tag(msg, 'b');
END IF;
IF(msg LIKE '%[img%') THEN
SET msg = teamno10forum.fix_tag(msg, 'img');
END IF;
IF(msg LIKE '%[quote%') THEN
SET msg = teamno10forum.fix_tag(msg, 'quote');
END IF;
SET @sql = concat('ALTER TABLE ', schemaname, '.', tablename, ' ADD ', columnname, ' ', datatype, ';');
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
...
...
...
CALL teamno10forum.create_missing_columns('teamno10forum', 'phpbb_users', 'user_from', 'varchar(256)');
...
...
...
DELETE FROM test_kunena.qb9ug_kunena_messages_text;
DELETE FROM test_kunena.qb9ug_kunena_messages;
DELETE FROM test_kunena.qb9ug_kunena_topics;
DELETE FROM test_kunena.qb9ug_kunena_aliases;
DELETE FROM test_kunena.qb9ug_kunena_categories;
DELETE FROM test_kunena.qb9ug_kunena_attachments;
DELETE FROM test_kunena.qb9ug_kunena_users;
DELETE FROM test_kunena.qb9ug_kunena_ranks;
DELETE FROM test_kunena.qb9ug_user_usergroup_map;
DELETE FROM test_kunena.qb9ug_users;
INSERT INTO test_kunena.qb9ug_users(name, username,password,params) VALUES ('Admin', 'mixerp','d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199', '');
INSERT INTO test_kunena.qb9ug_user_usergroup_map(user_id, group_id) VALUES (LAST_INSERT_ID(),'8');
...
...
SELECT
forum_id,
parent_id,
REPLACE(forum_name, '&', '&'),
teamno10forum.get_forum_alias(forum_id) AS alias,
1 AS icon_id,
0 AS locked,
'test_kunena.level' AS accesstype,
1 AS access,
1 AS pub_access,
1 AS pub_recurse,
8 AS admin_access,
1 AS admin_recurse,
left_id AS ordering,
1 AS published,
0 AS checked_out,
'0000-00-00 00:00:00' AS checked_out_time,
0 AS review,
0 AS allow_anonymous,
0 AS post_anonymous,
0 AS hits,
forum_desc,
'' AS headerdesc,
'' AS class_sfx,
1 AS allow_polls,
'lastpost' AS topic_ordering,
forum_topics AS forum_topics,
forum_posts AS forum_posts,
teamno10forum.get_topic_id(forum_last_post_id) AS last_topic_id,
forum_last_post_id,
forum_last_post_time,
'{}' AS params
FROM teamno10forum.phpbb_forums
ORDER BY forum_id;
INSERT INTO test_kunena.qb9ug_kunena_aliases(alias, type, item, state)
SELECT alias, 'catid', id, 0
FROM test_kunena.qb9ug_kunena_categories;
...
...
...
SELECT
attach_id AS id,
post_msg_id AS mesid,
poster_id AS userid,
md5(physical_filename) AS hash,
filesize AS size,
'media/kunena/attachments/migrated' AS folder,
mimetype AS filetype,
CONCAT(physical_filename, '.jpg') AS filename
FROM teamno10forum.phpbb_attachments;
/*
The user_id->1 means "Anonymous" user in default phpBB installation.
Kunena, on the other hand, wants user_id->0 for Guest posts.
*/
UPDATE test_kunena.qb9ug_kunena_messages SET userid=0 WHERE userid=1;
UPDATE test_kunena.qb9ug_kunena_messages
INNER JOIN teamno10forum.phpbb_posts
ON teamno10forum.phpbb_posts.post_id = test_kunena.qb9ug_kunena_messages.id
SET test_kunena.qb9ug_kunena_messages.name = teamno10forum.phpbb_posts.post_username;
/*********************************************
Data migration is complete.
**********************************************/
UPDATE test_kunena.qb9ug_kunena_categories
SET numTopics = test_kunena.count_topics(id);
UPDATE test_kunena.qb9ug_kunena_categories
SET numPosts = test_kunena.count_category_posts(id);
UPDATE test_kunena.qb9ug_kunena_topics
SET test_kunena.qb9ug_kunena_topics.posts = test_kunena.count_posts(id);
/*********************************************
Statistics recounted.
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- m -->', '');
/*********************************************
Convert Emoticons to Kunena
**********************************************/
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="
UPDATE
test_kunena.qb9ug_kunena_messages_text
SET message = replace(message, '<!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt="
...
...
...
I cut a lot of passage and errors and I did not put any errors that appear otherwise there would be several pages. Sorry if that didn't understand.
It's normal to have too many errors.
Yet even working locally, I should not have so many mistakes.
Should I also import the old Joomla? Yet Joomla EET phpBB was not bridged.
Is there a tutorial to correct errors?
For smileys, I change the names, the path, the abbreviations but I always have errors...
I do not see what to change because I am a novice in this area...
Last edit: 7 years 8 months ago by Le_Seb.
Please Log in or Create an account to join the conversation.
7 years 8 months ago #204204
by Slacker
Replied by Slacker on topic Migration phpbb3 to Kunena 5.0.14
Have you checked the phpBB databastables with phpMyAdmin so they are OK. You can both check and also optimize prior to conversion. I did not get any error messages, but I have not tested 3.2 but 3 ,0.14 and 3.1. Both was rather easy to convert. There is a forum for the conversion script that you can check:
mixerp.org/forums/category/phpbb-to-kunena-migration-forum
mixerp.org/forums/category/phpbb-to-kunena-migration-forum
Please Log in or Create an account to join the conversation.
7 years 8 months ago #204212
by Le_Seb
Replied by Le_Seb on topic Migration phpbb3 to Kunena 5.0.14
Thanks for you answers. I will try to migrate a fresh datastables to test script.
I think that my database is corrupted...
I think that my database is corrupted...
Please Log in or Create an account to join the conversation.
7 years 8 months ago #204227
by Slacker
Replied by Slacker on topic Migration phpbb3 to Kunena 5.0.14
It is possible to repair database tables with phpMyAdmin. Here is a guide:
www.a2hosting.com/kb/cpanel/cpanel-datab...ases-with-phpmyadmin
www.a2hosting.com/kb/cpanel/cpanel-datab...ases-with-phpmyadmin
Please Log in or Create an account to join the conversation.
Time to create page: 0.251 seconds