Hello, I would like to insert a module after second paragraph to article with override, if I put this code in file default.php puts the module after the first paragraph, please let you modify this code to put the form after the second paragraph?
//*******
jimport( 'joomla.application.module.helper' );
$module = JModuleHelper::getModule( 'mod_custom' , 'Name Module' );
$len = strlen($this->item->text);
$pos = strpos($this->item->text, "</p>");
$first = substr($this->item->text, 0, $pos);
$NameModule = $module->content;
$end = substr($this->item->text, $pos, $len);
$this->item->text = $first.$NameModule.$end;
//********