Yo tengo ahora de código
<?php
defined('_JEXEC') or die('Restricted access');
$user =& JFactory::getUser();
$inv = $params->get( 'inv' );
if ($user->id == 0 || $inv != 1) {
$html = $params->get( 'fwd_frahtml');
preg_match("/<script(.*)>(.*)<\/script>/", $html, $matches);
if ($matches) {
foreach ($matches as $match) {
$clean_js = preg_replace('/<br \/>/', '', $match);
$html = str_replace($match, $clean_js, $html);
}
}
preg_match("/<style(.*)>(.*)<\/style>/", $html, $matches);
if ($matches) {
foreach ($matches as $match) {
$clean_js = preg_replace('/<br \/>/', '', $match);
$html = str_replace($match, $clean_js, $html);
}
}
$html = str_replace('<br>', '<br />', $html);
preg_match_all('({modulo:([^}]+)})', $html, $out);
if (count($out)) {
$options = array();
$document =& JFactory::getDocument();
$renderer = $document->loadRenderer('modules');
for ($i=0;$i<count($out);$i++)
$html = str_replace($out[0][$i], $renderer->render($out[1][$i], $options), $html);
}
echo $html;
}
El caso es que no sé la sintáxis, porque si pongo {modulo:left} ¿dónde se especifica el módulo que quieres poner a la izquierda? Un ejemplo porfi
Es interesante esta opción más la que añadí de que puedas ponerle estilo, es mucho más completo ahora