The Haiku plugin will allow you to show a random Haiku anywhere in your template pages of pLog. The plugin needs an additional table in the database but the plugin itself will take care of creating it upon the first run. The plugin will also add some default haikus to the blog t, so that we do not start with an empty list of haikus. The plugin has been authored by Darren Greer.
When clicking the "configure" link, the plugin offers the possibility to search for a haiku or add a new 5 or 7 syllable haiku. After looking for haiku, we will also be allowd to either edit or delete it if we don't like it. Different blogs can have its own set of haikus as well as the global ones, meaning that every time a haiku is added, it will also be used when generating a haiku for that blog and for no other blog.
In order to enable the haiku plugin in our pages, we need to add the following code to wherever we wish to show a haiku:{$haiku->getHaiku()}If we want to show the number of permutations available in the database, then we should add the following:
{$haiku->getPermutations()}