当前没有人在线
如何从 bbPress 迁移到 Asgaros?
https://asgaros.com/support/topic/import-from-bbpress/
Asgaros 开发者说:“目前我无法开发导入脚本。外面有成千上万的其他论坛系统,每一个或多或少都很复杂。我愿意在其他社区成员希望分享他们自己开发的脚本时提供导入脚本。但是,如果我自己开发这些脚本并作为固定的论坛功能提供,我就必须确保它们在我的论坛插件和第三方论坛插件的每个版本中始终可用。
这工作量太大,我无法独自确保或维护。”
之前有一位 Asgaros 论坛插件用户创建了一个 bbPress 导入脚本,但不确定它现在是否还能运行。
你可以在这里找到他的帖子:https://github.com/Asgaros/asgaros-forum/issues/124#issuecomment-300655630
https://asgaros.com/support/topic/import-from-bbpress/
Asgaros 开发者说:“目前我无法开发导入脚本。外面有成千上万的其他论坛系统,每一个或多或少都很复杂。我愿意在其他社区成员希望分享他们自己开发的脚本时提供导入脚本。但是,如果我自己开发这些脚本并作为固定的论坛功能提供,我就必须确保它们在我的论坛插件和第三方论坛插件的每个版本中始终可用。
这工作量太大,我无法独自确保或维护。”
之前有一位 Asgaros 论坛插件用户创建了一个 bbPress 导入脚本,但不确定它现在是否还能运行。
你可以在这里找到他的帖子:https://github.com/Asgaros/asgaros-forum/issues/124#issuecomment-300655630
另一个脚本 (inspired by inspired by this post bbpress to phpbb)
当你第一次在 Asgaros 论坛中创建一个类别并获取了 ID 后,进入你的 phpMyAdmin,在你的表中执行此 SQL。
别忘了将 ‘wp_’ 替换为你自己的前缀。在 Asgaros 中,可以按你喜欢的顺序移动分类,这样是可以的。
/* 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) SELECTf.id /* Forum ID */,f.post_title /* name */,f.post_content /* Description */,137 /* ID of your category that you have create */,f.post_name /*slug */FROMwp_posts AS fWHEREf.post_type = 'forum';/* Transfer the topics */INSERT INTOwp_forum_topics (id,name,slug,parent_id)SELECTt.id /* Topic ID */,t.post_title /* Topic title */,t.post_name /* slug */,t.post_parent /* Forum ID */FROMwp_posts AS tWHEREt.post_type = 'topic';/* Transfer replies */INSERT INTOwp_forum_posts (id,text,parent_id,forum_id,date,author_id)SELECTp.id /* ID */,p.post_content /* text */,t.id /* Topic ID */,f.id /* Forum ID */,p.post_date /* Date */,p.post_author /* author_id */FROMwp_posts AS pINNER JOINwp_users AS u ON p.post_author = u.idINNER JOINwp_posts AS t ON p.post_parent = t.id OR p.id = t.idINNER JOINwp_posts AS f ON t.post_parent = f.idWHEREp.post_type in ('reply','topic')ANDt.post_type = 'topic'ANDf.post_type = 'forum';
另一个脚本 (inspired by inspired by this post bbpress to phpbb)
当你第一次在 Asgaros 论坛中创建一个类别并获取了 ID 后,进入你的 phpMyAdmin,在你的表中执行此 SQL。
别忘了将 ‘wp_’ 替换为你自己的前缀。在 Asgaros 中,可以按你喜欢的顺序移动分类,这样是可以的。
/* 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) SELECTf.id /* Forum ID */,f.post_title /* name */,f.post_content /* Description */,137 /* ID of your category that you have create */,f.post_name /*slug */FROMwp_posts AS fWHEREf.post_type = 'forum';/* Transfer the topics */INSERT INTOwp_forum_topics (id,name,slug,parent_id)SELECTt.id /* Topic ID */,t.post_title /* Topic title */,t.post_name /* slug */,t.post_parent /* Forum ID */FROMwp_posts AS tWHEREt.post_type = 'topic';/* Transfer replies */INSERT INTOwp_forum_posts (id,text,parent_id,forum_id,date,author_id)SELECTp.id /* ID */,p.post_content /* text */,t.id /* Topic ID */,f.id /* Forum ID */,p.post_date /* Date */,p.post_author /* author_id */FROMwp_posts AS pINNER JOINwp_users AS u ON p.post_author = u.idINNER JOINwp_posts AS t ON p.post_parent = t.id OR p.id = t.idINNER JOINwp_posts AS f ON t.post_parent = f.idWHEREp.post_type in ('reply','topic')ANDt.post_type = 'topic'ANDf.post_type = 'forum';
要彻底清理,请通过您的 WordPress 管理后台卸载 BBPress 和其他 BBPress 自定义插件,并在 phpMyAdmin 中完成操作。
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%' ;
要彻底清理,请通过您的 WordPress 管理后台卸载 BBPress 和其他 BBPress 自定义插件,并在 phpMyAdmin 中完成操作。
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%' ;
