Please upgrade here. These earlier versions are no longer being updated and have security issues.

Automatic discussion creation based on wordpress posts.

edited November 2010 in Vanilla 2.0 - 2.3
Is there any way to make Vanilla create a Thread/discussion for each post created on a wp-blog linked to it with proxyconnect? if possible is there any way to create that threads on the same categories of the wp post?

Comments

  • RaizeRaize vancouver ✭✭
    you can use the rss feed plugin for a temporary fix, but the comments made on the vanilla forum won't be imported back into the wordpress side. so technically you could turn comments off on the wordpress install and it would get the job done
  • LincLinc Director of Development Detroit Vanilla Staff
    edited November 2010
    I can give you a technical explanation of how this might be accomplished, but it's pretty heavy-duty coding. Not for the feint of heart (or short of time).
    1. Add a DiscussionID column to the wp_posts table
    2. Write a Wordpress plugin that hooks in at publish_post and checks if the post has a discussion ID. If not, create a discussion and insert its ID in the post table.
    3. The same Wordpress plugin should also hook at comment_post and copy the comment made to the discussion.
    4. Lastly, the Wordpress plugin should have a function that gets Vanilla comments by DiscussionID. You call this in the Wordpress template (functions.php) and then in the comments.php template file you loop thru these comments instead of Wordpress's.
    Simple, right? :D Probably not the answer you were looking for, but there's no easily-install solution for this presently.
Sign In or Register to comment.