Ok, this has taken me forever to get to…
A while back I copied all my articles that included comments over to the forum as forum posts. ( https://simple-press.com/support-forum/sp5-plugin-topics/understanding-blog-linking/ )
Now, I’d like to move the comments that are on those articles over to the forum, so I have posts and comments on the forum.
I’m thinking I need to do something along these lines, but I’m not fluent enough in php/mysql to write it myself (probably could, but it would take me another three months!).
————————–
grab row from wp_comments
//hold that info in array as a var
//pull out comment_post_ID as a var
from table wp_sflinks get forum_id and topic_id where post_id = comment_post_ID
//hold forum_id as a var
insert into wp_sfposts
post_id //needs to increment from previous existing
post_content // comment_content from wp_comments
post_date //comment_date from wp_comments
topic_id // topic_id from wp_sflinks
user_id //user_id from wp_comments
forum_id //forum_id from wp_sflinks
guest_name //comment_author from wp_comments
guest_email //
post_status //
post_pinned //
post_index //hmmm, need to increment from the previous with the same topic_id, maybe make this whole thing a while statement (while comment_post_ID loop through rows and increment this?)
post_edit //
poster_ip //
comment_id //
source //
//need to put a limit on the script so it doesn’t crash server trying to move 5000+ comments.
Is there anyone available to write this? Not sure I have all the working parts in place, so it will have to be thought out to make sure.