I know that Stephen Rider is coming out with an update soon, but I needed another feature that I felt was useful enough to release publicly.  I was using the Exec-PHP plugin to embed a call to the print_virtual_sites_list() function in a post on my root site (http://DPotter.net/), like this:

<ul><?php print_virtual_sites_list(); ?></ul>

This worked great, displaying the list of virtual sites.  However, on that site my user has the visual editor enabled, so whenever I would edit that post the editor would convert that line to this:

<ul><!--p print_virtual_sites_list();--></ul>

Not good!  The solution to this is to use keywords like I’ve seen in other plugins.  This also required some changes to the functions provided in the mb-functions.php file.

Here are the keywords that are implemented in the DRP-Multi-Blog Keywords plugin:

The result of these changes is that I can now specify the following line in my post:

<ul>

  • DPotter.net
  • David's Technical Blog
  • David's Personal Blog
  • Bethany's Blog
  • Daniel's Blog
  • Michael's Blog
  • Michelle's Blog
  • Erik's Blog
  • Grumpy's Hotspot Internet
  • CatalystDrama.org
  • CatalystDrama.org Members Area
  • STAR Production Site
  • Generations Landing Site
  • Generations Production Site 2009
  • Pacific Coast Leasing
  • Smmee Now
  • My Smmee
  • Standard Outsourcing
  • Super Simple Budget
  • </ul>

    By the way, I previously released my last version as MultiBlog2.  That wasn’t a very nice thing to do as I don’t own the name, and when I read that Stephen was going to be releasing v2 of his solution I immediately felt bad.  In fact, the more I thought about it, I really should have named my solution something different so that I could version it independently.  As a result, I have renamed my solution as DRP-Multi-Blogging.  The previous release is now called DRP-Multi-Blogging v1.0 and this one is called DRP-Multi-Blogging v1.1.  My apologies, Stephen.  Hopefully there won’t be too much confusion out there.

    Resources