2013-07-08, 03:33 AM
Hi All,
As part of the WP plugin I am writing I am going to write a forum posts as comments.
I want to keep the databases apart, and I do not want direct querying the forum database, I just can't see this as overall valuable.
The ways I am considering doing this are
1 - When a new reply is made, if there is a link in the wp_link table for that thread, an XML file is generated with the new post data with all posts etc (using the feedgenerator class)
2 - Have a task that runs every 30 minutes or so that goes and generates an XML or HTML file with all the comments
I am thinking the best way is the on reply method and have these stored as XML files in a specific location and then pull them into WP. We could do the same with HTML files I guess. This way the database is only touched when it needs to be and the wordpress site will only pull in the comments straight from an XML file location rather than having to make a connection and request into the mybb system.
I actually think this could be somewhat useful in general.
What are your thoughts on doing things this way?
Dan
As part of the WP plugin I am writing I am going to write a forum posts as comments.
I want to keep the databases apart, and I do not want direct querying the forum database, I just can't see this as overall valuable.
The ways I am considering doing this are
1 - When a new reply is made, if there is a link in the wp_link table for that thread, an XML file is generated with the new post data with all posts etc (using the feedgenerator class)
2 - Have a task that runs every 30 minutes or so that goes and generates an XML or HTML file with all the comments
I am thinking the best way is the on reply method and have these stored as XML files in a specific location and then pull them into WP. We could do the same with HTML files I guess. This way the database is only touched when it needs to be and the wordpress site will only pull in the comments straight from an XML file location rather than having to make a connection and request into the mybb system.
I actually think this could be somewhat useful in general.
What are your thoughts on doing things this way?
Dan