|
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 ?
|  Profil www
|
|
Tito 7758
| |
gilbau 486
| Posté : 03-07-2007 23:43
Merci tito, mais ça coince encore un peu
voir mon essai à http://www.vivrenu.com/article2.php?sid=758
Ca met 2 zones hometext et pub
au lieu de hometext + pub texte bleu (comparateur de vols) + bodytext
J'ai essayé de triturer ton code dans tous les sens, je n'y arrive pas |  Profil www
|
|
Tito 7758
| Posté : 04-07-2007 00:43
Effectivement!
if ($bodytext == "") {
$bodytext = meta_lang("$hometext<br /><br />$notes");
} else {
$bodytext = meta_lang("$hometext<br /><br />").file_get_contents("static/googleadsense_parainage_milieu_article.html") .meta_lang("$bodytext<br /><br />$notes");
}
Ca devrait aller comme ça |  Profil E-mail www
|
|
gilbau 486
| Posté : 04-07-2007 07:24
Merci, ça marche impeccable |  Profil www
|
|