Archives for the Text Replace category

March 14, 2008

sniplets

Sniplets is a generic text insertion plugin with support for an extensible processing framework. At it’s simplest this means you can dynamically replace text in your posts with text that may be defined elsewhere, or created by some other module. For example, you can use Sniplets to perform syntax highlighting of files, execute custom PHP code, insert data from a database, and perform all manner of other useful tasks within a standard interface. On top of this, Sniplets can be automatically inserted at key points on a page.

  • Replace tags in a post with pre-defined text
  • Customizable placement points and templates
  • Apply processing modules to the pre-defined text to perform additional functionality
  • Automatically insert Sniplets in key points of a page (before post, after post, more tag, header, footer, comment form, sidebar, and initialization)
  • Apply pre-defined templates to Sniplets
  • Includes a Sidebar Widget to allow Sniplets in the sidebar
  • Custom modules can be written by the user
  • Fully localized

Exec PHP plugin

The Exec-PHP plugin executes <?php ?> code in your posts, pages and text widgets.

Back in 2005, there was no plugin available that allowed to write PHP code the way a php programmer was used to. For example some plugins required the PHP code to be encapsulated in XHTML tags like <phpcode> </phpcode>. This differed from the usual way you write PHP code where you only use <?php ?>. Some of the plugins evaluated the code after WordPress applied some filters like texturize. So it also texturized the PHP code and the plugins had to undo the texturize just for the code part. For more complex code this can not be done correctly and often led into parsing errors even if the code was syntactically correct.