In Joomla 1.7 (and I assume Joomla 1.6) you can very easily execute content plugins on a string.
$text = JHTML::_('content.prepare', $text );
This is much simpler than the previous method in Joomla 1.5:
$Item = JTable::getInstance('content');
$dispatcher = JDispatcher::getInstance();
$params = new JParameter('');
JPluginHelper::importPlugin('content');
$Item->parameters = new JParameter('');
$Item->id = "";
$Item->state = "";
$Item->catid = "";
$Item->sectionid "";
$Item->title "";
$Item->text = "Your text with {content plugin code}";
// Apply content plugins to custom text
$results = $dispatcher->trigger('onPrepareContent', array (&$Item, &$params, 0));
Rosa, 06. September, 2011 | #
Rosa, 06. September, 2011 | #
Dave Horsfall, 29. August, 2011 | #
OppfinnarJocke, 29. August, 2011 | #