Import from BBpress
Quote from Yeye on October 11, 2018, 4:57 pmHello,
Nice forum.
I would know if it possible to import messages from bbpress or better from kunena (joomla) ?
Actualy i have imported messages on bbpress from kunena but i don’t like bbpress.
Have a nice trip !!!
Best regards
Hello,
Nice forum.
I would know if it possible to import messages from bbpress or better from kunena (joomla) ?
Actualy i have imported messages on bbpress from kunena but i don’t like bbpress.
Have a nice trip !!!
Best regards
Quote from Asgaros on October 17, 2018, 12:12 pmHello @yeye
Import scripts are impossible for me to develop at the moment. There are thousands of other forum systems out there. Each of them are more or less complex. I am willing to provide import-scripts when other community-members want to share their own developed scripts. But if I develop them by my own and provide them as a fixed forum-feature I am enforced to ensure that they are working all the time with every version of my forum-plugin and the third-party forum-plugin.
This is way too much work and I can’t ensure or maintain this alone.
I saw that one user created a bbPress import script last year but I am not sure if its working anymore. You can find his post here:
https://github.com/Asgaros/asgaros-forum/issues/124#issuecomment-300655630
Hello @yeye
Import scripts are impossible for me to develop at the moment. There are thousands of other forum systems out there. Each of them are more or less complex. I am willing to provide import-scripts when other community-members want to share their own developed scripts. But if I develop them by my own and provide them as a fixed forum-feature I am enforced to ensure that they are working all the time with every version of my forum-plugin and the third-party forum-plugin.
This is way too much work and I can’t ensure or maintain this alone.
I saw that one user created a bbPress import script last year but I am not sure if its working anymore. You can find his post here:
https://github.com/Asgaros/asgaros-forum/issues/124#issuecomment-300655630
Quote from Yeye on February 1, 2019, 9:12 pmHello,
I try another way wich works (inspired by inspired by this post bbpress to phpbb)
As you, first created a category in your Asgaros forum and took the ID.
Go into your phpmyadmin, on your table and execute this sql.Don’t forget to replace ‘wp_’ with your own prefix.
/* Clear tables and reset IDs */ TRUNCATE TABLE wp_forum_forums; TRUNCATE TABLE wp_forum_topics; TRUNCATE TABLE wp_forum_posts; /* Transfer forums */ INSERT INTO wp_forum_forums ( id, name, description, parent_id, slug ) SELECT f.id /* Forum ID */, f.post_title /* name */, f.post_content /* Description */, 137 /* ID of your category that you have create */, f.post_name /*slug */ FROM wp_posts AS f WHERE f.post_type = 'forum'; /* Transfer the topics */ INSERT INTO wp_forum_topics ( id, name, slug, parent_id ) SELECT t.id /* Topic ID */, t.post_title /* Topic title */, t.post_name /* slug */, t.post_parent /* Forum ID */ FROM wp_posts AS t WHERE t.post_type = 'topic'; /* Transfer replies */ INSERT INTO wp_forum_posts ( id, text, parent_id, forum_id, date, author_id ) SELECT p.id /* ID */, p.post_content /* text */, t.id /* Topic ID */, f.id /* Forum ID */, p.post_date /* Date */, p.post_author /* author_id */ FROM wp_posts AS p INNER JOIN wp_users AS u ON p.post_author = u.id INNER JOIN wp_posts AS t ON p.post_parent = t.id OR p.id = t.id INNER JOIN wp_posts AS f ON t.post_parent = f.id WHERE p.post_type in ('reply','topic') AND t.post_type = 'topic' AND f.post_type = 'forum';Now, in Asgaros, move the categories in order as you like and it’s ok.
If you don’t do it, i think nothing appears.
Hello,
I try another way wich works (inspired by inspired by this post bbpress to phpbb)
As you, first created a category in your Asgaros forum and took the ID.
Go into your phpmyadmin, on your table and execute this sql.
Don’t forget to replace ‘wp_’ with your own prefix.
/* Clear tables and reset IDs */
TRUNCATE TABLE wp_forum_forums;
TRUNCATE TABLE wp_forum_topics;
TRUNCATE TABLE wp_forum_posts;
/* Transfer forums */
INSERT INTO wp_forum_forums (
id,
name,
description,
parent_id,
slug
) SELECT
f.id /* Forum ID */,
f.post_title /* name */,
f.post_content /* Description */,
137 /* ID of your category that you have create */,
f.post_name /*slug */
FROM
wp_posts AS f
WHERE
f.post_type = 'forum';
/* Transfer the topics */
INSERT INTO
wp_forum_topics (
id,
name,
slug,
parent_id
)
SELECT
t.id /* Topic ID */,
t.post_title /* Topic title */,
t.post_name /* slug */,
t.post_parent /* Forum ID */
FROM
wp_posts AS t
WHERE
t.post_type = 'topic';
/* Transfer replies */
INSERT INTO
wp_forum_posts (
id,
text,
parent_id,
forum_id,
date,
author_id
)
SELECT
p.id /* ID */,
p.post_content /* text */,
t.id /* Topic ID */,
f.id /* Forum ID */,
p.post_date /* Date */,
p.post_author /* author_id */
FROM
wp_posts AS p
INNER JOIN
wp_users AS u ON p.post_author = u.id
INNER JOIN
wp_posts AS t ON p.post_parent = t.id OR p.id = t.id
INNER JOIN
wp_posts AS f ON t.post_parent = f.id
WHERE
p.post_type in ('reply','topic')
AND
t.post_type = 'topic'
AND
f.post_type = 'forum';
Now, in Asgaros, move the categories in order as you like and it’s ok.
If you don’t do it, i think nothing appears.
Quote from Yeye on February 2, 2019, 10:03 amTo be clean, Uninstall BBPress and other BBpress custom plugin via your admin Wordpress
and finish in phpmyadmin with
DELETE FROM wp_posts WHERE post_type='reply' ; DELETE FROM wp_posts WHERE post_type='topic' ; DELETE FROM wp_posts WHERE post_type='forum' ; DELETE FROM wp_postmeta WHERE meta_key LIKE '%bbp%' ; DELETE FROM wp_usermeta WHERE meta_key LIKE '%bbp%' ; DELETE FROM wp_posts WHERE post_content LIKE '%bbp%' ; DELETE FROM wp_options WHERE option_name LIKE '%bbp%' ;
To be clean, Uninstall BBPress and other BBpress custom plugin via your admin Wordpress
and finish in phpmyadmin with
DELETE FROM wp_posts WHERE post_type='reply' ; DELETE FROM wp_posts WHERE post_type='topic' ; DELETE FROM wp_posts WHERE post_type='forum' ; DELETE FROM wp_postmeta WHERE meta_key LIKE '%bbp%' ; DELETE FROM wp_usermeta WHERE meta_key LIKE '%bbp%' ; DELETE FROM wp_posts WHERE post_content LIKE '%bbp%' ; DELETE FROM wp_options WHERE option_name LIKE '%bbp%' ;
