Vanilla Forums COO [GitHub, Twitter, About.me]
Seems he would want the blog posts converted to discussions and the blog comments converted to comments on those discussions.
I assume wordpress.com has a data freedom policy?
$StoryTitle = $Item['title'];....if(array_key_exists('content',$Item) && array_key_exists('encoded',$Item['content'])){ $StoryBody =$Item['content']['encoded'];}else{ $StoryBody =$Item['description']; }$StoryBody = preg_replace("/(\<[^\>]*)\n/i",'$1 ',$StoryBody );$StoryBody = preg_replace("/[\n][\n]+/i","\n",$StoryBody);$StoryBody = preg_replace("/>[\s]+<",$StoryBody);...$Tags=array();if($Item['category#']>1){ for($c=2;$c<=$Item['category#'];$c++){ if(!empty($Item['category#'.$c])){ $Tags[]=str_replace(' ','-',$Item['category#'.$c]); } }}....$InsertID=Gdn::SQL()->Insert('Discussion',$DiscussionData);If($InsertID!=null){@$this->InsertTags($DiscussionModel,$InsertID,$Tags);}
grep is your friend.
Answers
Vanilla Forums COO [GitHub, Twitter, About.me]
I assume wordpress.com has a data freedom policy?
Vanilla Forums COO [GitHub, Twitter, About.me]
You can also adapt it. For example you don't need excepts, or you can specify you own. and also import the comment an tag (categories in rss) .
That is basically what I did.
Examples: I did have to change the magpie feed code a bit to get tags to work I believe. Anyway you are going to have to give it a go yourself.
grep is your friend.
grep is your friend.
Vanilla Forums COO [GitHub, Twitter, About.me]