Index du Forum » » Le coin des codeurs

Auteur

modifier article.php pour inclure un texte entre hometext et bodytext
gilbau
486      

  Posté : 03-07-2007 09:20

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

http://www.npds.org/viewtopic.php?topic=22451&forum=5