website logo
Auteur
avatar
gilbau

Forum » » Le coin des codeurs » » modifier article.php pour inclure un texte entre hometext et bodytext


Posté : 3 juil. 2007 à 09:20 icone du post

je voudrais mettre un !include! dnas le code du fichier article.php :


   if ($bodytext == "") {
         $bodytext = meta_lang("$hometext<br /><br />$notes");
      } else {
         $bodytext = meta_lang("$hometext<br /><br />$bodytext<br /><br />$notes");
      }


qui serait un truc du genre :


   if ($bodytext == "") {
         $bodytext = meta_lang("$hometext<br /><br />$notes");
      } else {
         $bodytext = meta_lang("$hometext<br /><br />");
         !include! "static/googleadsense_parainage_milieu_article.html");
         meta_lang("$bodytext<br /><br />$notes");
      }



Mais ça coince, si quelqu'un pouvait corriger ce code ?

Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=22451&forum=5