/*
* Created on Mar 12, 2007
*
* To change the template for this generated file go to
* Window – Preferences – PHPeclipse – PHP – Code Templates
*/
//error_reporting(E_ERROR & ~ E_NOTICE);
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, “http://courses.jimgroom.net/engl101_f06/wiki/index.php?title=Bliki_Experiment”);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$page = curl_exec($curl); // sucks the mediawiki page in
curl_close($curl);
$page = str_replace(‘ ’, ‘ ‘, $page); //kills the nbsp entitiy–make sure visual editor doesn’t clobber it’
$wppageDOM = domxml_open_mem($page); //puts the mwpage into a form for manipulation
$divs = $wppageDOM->get_elements_by_tagname(‘div’);
foreach ($divs as $div) {
if ($div->get_attribute(‘id’) == ‘column-content’) { //grab only the body of the mw page
$contentDiv = $div;
}
if ($div->get_attribute(‘id’) == ‘jump-to-nav’) { //kill navigation div
$parent = $div->parent_node();
$parent->remove_child($div);
}
$div->remove_attribute(‘class’); //clear off classes to avoid style collisions. might need to do the same if style attributes are present
}
$h3s = $contentDiv->get_elements_by_tagname(‘h3′);
foreach ($h3s as $h3) {
if ($h3->get_attribute(‘id’) == ’siteSub’) { //kill the reference to original mw page
$parent = $h3->parent_node();
$parent->remove_child($h3);
}
}
echo $wppageDOM->dump_node($contentDiv); //spit it out!
?>



We have built a platform – Cylive (http://www.cylive.com) – which features “collaborative” content creation, sharing and publishing in a (content-owner-assigned) rights-based environment.
This is sort of a boring question, I suppose, but I’m wondering how this blog/wiki mashup affects the feed out of the blog. When posts are updated via the wiki, does the feed reflect those changes? Does this change the way we approach/consume feeds from this kind of space?
One feature that would be nice to add is a way to get back to the blog from the wiki once you make and publish an edit. Maybe it can be as simple as creating a link back as part of the wiki post, but I imagine something more grand, like a floating “Take Me Back To the Blog” button, or something like that.
Can you plug this into a page tab on the blog? I could see there being some really cool class administration uses of a one page wiki, like a class calendar or announcements page, or some sort of group writing exercise.
I wonder about spam here too…
But this is a really great idea and great work so far! You guys are rocking.