A Bliki -what’s a Bliki?

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!

?>

This entry was posted in WordPress and tagged , , , . Bookmark the permalink.

11 Responses to A Bliki -what’s a Bliki?

  1. jimgroom says:

    I encourage everyone to change the text of this post using the edit buttons to see how seamless the editing process is!

  2. Pingback: Open, Connected, and Social » Blog Archive » A Bliki -what’s a Bliki?

  3. well, hey now! How’d you embed the wiki in the blog post?

  4. Hey! This is fantastic! But, will each edit be automatically reflected? Or, does it pass through any editorial filter?

    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.

  5. jimgroom says:

    @D’Arcy: We’ll be releasing this very simple (but very beta) 15 lines of PHP code shortly so that we can open it up for others to tweak and maybe create a plugin from. Right now, it sorta works with WordPress and Drupal, but not without many bugs and styling issues. Also, it seems to choke for some MediaWiki installs. Long way to go, but I think the concept is sound enough. It even works with WP-o-Matic, I tested this post being fed into the open social and connected blog (here), and it worked without a hitch -cool! More details to come…

  6. jimgroom says:

    @Kiran: Thanks for the comment. We’d hate to get anyone’s hopes up too high. This is really just a proof of concept for the idea of blurring the lines between wikis & blogs. We have no formal filtering system in place, nor is it in the form of a WP plugin. We will be releasing the simple PHP code, and maybe some folks will take pity on us and make it sparkle:)

  7. Martha says:

    Jim,

    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?

  8. jimgroom says:

    Good question Martha. Right now, this code doesn’t update a feed every time you change the MediaWiki article. That may be something we consider testing out. What it may allow for, which really wasn’t possible before, is giving MediaWiki articles a feed by way of the blog. This may be a solution to this shortcoming of MediaWiki, but it might also create an unnecessary amount of noise for subscribers. I know I’m constantly re-editing my blogs after the fact because I am so quick to publish -I’m not sure if I would want people notified of every change. What might be really cool would be the possibility of turning on, or renewing the feed with the click of a button, when significant changes have been made to the blog/wiki post/article. So, yeah it might change the way we consume feeds in that we may have more control over the feeds for WordPress, as well as creating feeds where they weren’t before in MediaWiki.

  9. Jerry says:

    This is really cool.

    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.

  10. Pingback: Empeños » Blog Archive » Wiki + Blogs + Videos

  11. Pingback: DigiZen: Un blogfesor aprendiendo » El bliki: un híbrido de la web 2.0

Leave a Reply to Martha Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.