Ok, je confirme, tout fonctionne,
la ligne print_r($array_newsletter['html']['body']); n'affiche que l'aperçu du message.
Voici quelques modifications que j'ai effectué pour la saisie de la lettre, j'ai besoin également de
l'alignement justifié.
Dans
lib/admin_functions_bbcode.php /* Text alignment */
$text = str_replace('[left]','</p><p style="text-align:left;">',$text);
$text = str_replace('[/left]','</p><p>',$text);
$text = str_replace('[center]','</p><p style="text-align:center;">',$text);
$text = str_replace('[/center]','</p><p>',$text);
$text = str_replace('[right]','</p><p style="text-align:right;">',$text);
$text = str_replace('[/right]','</p><p>',$text);
$text = str_replace('[justify]','</p><p style="text-align:justify;">',$text); // ligne rajoutée
$text = str_replace('[/justify]','</p><p>',$text); // ligne rajoutée
$text = str_replace('[hr]','<hr>',$text);
/* Alignement */
$text = str_replace('[left]','',$text);
$text = str_replace('[/left]','',$text);
$text = str_replace('[center]','',$text);
$text = str_replace('[/center]','',$text);
$text = str_replace('[right]','',$text);
$text = str_replace('[/right]','',$text);
$text = str_replace('[justify]','',$text); // ligne rajoutée
$text = str_replace('[/justify]','',$text); // ligne rajoutée
$text = str_replace('[hr]', CR.'----------------------------------------------------------------------'.CR,$text);
$array_bbcode[$i]['start'] = '[right]';
$array_bbcode[$i]['end'] = '[/right]';
$array_bbcode[$i]['pict'] = 'right.png';
$array_bbcode[$i]['title'] = $ntux2['bbcode_right'];
$i++;
$array_bbcode[$i]['start'] = '[justify]'; //ligne rajoutée
$array_bbcode[$i]['end'] = '[/justify]'; //ligne rajoutée
$array_bbcode[$i]['pict'] = 'justify.png'; //ligne rajoutée
$array_bbcode[$i]['title'] = $ntux2['bbcode_justify']; //ligne rajoutée
$i++; //ligne rajoutée
$array_bbcode[$i]['start'] = '[url=http://]';
$array_bbcode[$i]['end'] = '[/url]';
$array_bbcode[$i]['pict'] = 'link.png';
$array_bbcode[$i]['title'] = $ntux2['bbcode_link'];
$i++;
Dans img/bbcode, il faut rajouter les 2 images
bbcode_justify.gif

justify.png