AccueilAideRechercherIdentifiez-vousInscrivez-vous

Bienvenue, Invité. Veuillez vous connecter ou vous inscrire.
Avez-vous perdu votre courriel d'activation?
23 Mai 2012 à 03:45:17

Connexion avec identifiant, mot de passe et durée de la session
Rechercher
    avancée

News

Stats
8763 Messages dans 1087 Fils de discussion par 1002 Membres
Dernier membre: emilie
+  PHP Astux
|-+  NewsletTux v. 2
| |-+  NewsletTux 2 fr (fin du support)
| | |-+  [Réglé] Un peu de mal pour les newsletter en HTML
Pages: [1] 2   Bas de page
Imprimer
Auteur Fil de discussion: [Réglé] Un peu de mal pour les newsletter en HTML  (Lu 8888 fois)
Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« le: 08 Novembre 2007 à 09:31:05 »

Bonjour,

Pour ce premier message, j'en profite pour dire mon admiration pour ce logiciel libre d'une qualité largement pro. Enfin que du bonheur.... Sourire

Je suis donc entrain de convertir mes pauvres newsletters envoyées par outlook sur Newlettux, mais là j'ai un petit soucis car je fais mes lettres avec word (j'ai pas mal de tableaux avec des chiffres et des données, une mise en page avec des colonnes et des liens donc bonjour les alignements si c'est fait à la main... Pleurs). Je n'arrive pas à mettre mes NL en place, je n'ai que le code html, je copie toute la partie entre les balise <body> pourtant. Donc je pense me planter quelque part. (j'ai lu le sujet http://www.php-astux.info/forum/index.php?topic=511.0 mais cela ne m'a pas aidé).

Merci de votre aide.

Cordialement
« Dernière édition: 20 Novembre 2007 à 11:47:11 par Matthieu » Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #1 le: 08 Novembre 2007 à 09:42:59 »

Salut, et merci pour les remarques.

Peux-tu fournir un exemplaire du code HTML reçu ?
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #2 le: 08 Novembre 2007 à 10:44:28 »

Voila le code comme il est dans la newsletter sans les étoiles
[*url=]<body>
<div style="font-family: Verdana;" class="Section1">
<p class="MsoNormal" style="text-align: center;"
 align="center"><b style=""><span
 style="font-size: 14pt; line-height: 115%;"></span></b><big
 style="font-weight: bold;"><big><big><big><big>NEWSLETTER
n&deg; 1</big></big></big></big></big></p>
<table style="text-align: left; height: 231px; width: 847px;"
 border="0" cellpadding="2" cellspacing="2">
  <tbody>
    <tr>
      <td style="height: 227px; width: 208px;">
      <p class="MsoNormal" style="text-align: center;"
 align="center"><b style=""><span
 style="font-size: 14pt; line-height: 115%;">Editorial<o:p></o:p></span></b></p>
Bla-bla bla-bla
bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla
bla-bla
bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla&nbsp;<br>
      </td>
      <td style="height: 227px; width: 624px;"><b
 style=""><span style="font-size: 16pt; line-height: 115%;">Informations
Chiffr&eacute;es<o:p></o:p></span></b>
      <table class="MsoTableMediumShading2Accent2"
 style="border: medium none ; border-collapse: collapse; width: 605px; height: 137px;"
 border="1" cellpadding="0" cellspacing="0">
        <tbody>
          <tr style="">
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 62.4pt;"
 valign="top" width="83">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Ligne 1<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.25pt;"
 valign="top" width="56">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 1<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 2<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 3<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 4<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 5<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: solid none; border-color: windowtext -moz-use-text-color; border-width: 2.25pt medium; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Col 6<o:p></o:p></span></b></p>
            </td>
          </tr>
          <tr style="">
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 62.4pt;"
 valign="top" width="83">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Ligne 2<o:p></o:p></span></b></p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.25pt;"
 valign="top" width="56">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">100</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">200</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">300</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">400</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">500</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">600</p>
            </td>
          </tr>
          <tr style="">
            <td
 style="border: medium none ; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 62.4pt;"
 valign="top" width="83">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Ligne 3<o:p></o:p></span></b></p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.25pt;"
 valign="top" width="56">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">1 000</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">2 000</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">3 000</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">4 000</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">5 000</p>
            </td>
            <td
 style="border: medium none ; padding: 0cm 5.4pt; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">6 000</p>
            </td>
          </tr>
          <tr style="">
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(192, 80, 77) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 62.4pt;"
 valign="top" width="83">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;"><b><span
 style="color: white;">Ligne 4<o:p></o:p></span></b></p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.25pt;"
 valign="top" width="56">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">10 000</p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">20 000</p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">30 000</p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">40 000</p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.55pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">50 000</p>
            </td>
            <td
 style="border-style: none none solid; border-color: -moz-use-text-color -moz-use-text-color windowtext; border-width: medium medium 2.25pt; padding: 0cm 5.4pt; background: rgb(216, 216, 216) none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial; width: 42.5pt;"
 valign="top" width="57">
            <p class="MsoNormal"
 style="margin-bottom: 0.0001pt; line-height: normal;">60 000</p>
            </td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>
  </tbody>
</table>
<o:p></o:p></div>
<div style="text-align: center; font-family: Verdana; width: 830px;"><b
 style=""><span style="font-size: 20pt; line-height: 115%;">Fin
de la lettre<o:p></o:p></span></b></div>
<p style="font-family: Verdana; width: 842px;"
 class="MsoNormal">Bla-bla bla-bla bla-bla bla-bla bla-bla
bla-bla bla-bla
bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla
bla-bla
bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla
bla-bla
bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla bla-bla
bla-bla
bla-bla bla-bla&nbsp;</p>
</body>
[*/url]
Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #3 le: 08 Novembre 2007 à 13:10:28 »

pourquoi un url ?
tu mets tout ce code dans des balises url sur le message de la newsletter ?
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #4 le: 08 Novembre 2007 à 14:37:47 »

J'ai essayé avec ou non le code entre balise [*url] . Je ne sais pas faire Embarrass&eacute; tout simplement
Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #5 le: 08 Novembre 2007 à 15:39:27 »

en fait ce que je disais dans le sujet cité plus haut, c'est de mettre tout ça par défaut dans le template... puis à la fin, de mettre le marqueur --NEWSLETTUX-- pour que le message de la newsletter (message fictif, une phrase suffit) soit inséré.
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #6 le: 08 Novembre 2007 à 15:59:42 »

Malheursement je peux pas, j'ai des tableaux, et là cela change. Je n'ai pas uniquement du texte qui change. J'aimerai juste savoir si je n'y arrive pas parsque :
1 je ne suis pas doué (perso j'ai pas de doute)
2 ce n'est pas une fonction de newslettux
3 c'est un bug en cours de résolution (si oui, quand  Embarrass&eacute;)
« Dernière édition: 08 Novembre 2007 à 16:01:44 par Onlyforme » Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #7 le: 08 Novembre 2007 à 16:13:18 »

j'ajouterais une 4ème option :
- parce que moi, matthieu, me suis mal exprimé  Huh

Dans l'idée, il est possible de préparer la newsletter en HTML sous un éditeur (il vaut mieux, et de loin, éviter Word ...) et l'enregistrer au format HTML.

tout en bas (juste avant </body>) dans le code source du fichier HTML généré, mettre seul sur une ligne le marqueur --NEWSLETTUX--
Puis enregistrer sous (par exemple) newsletter_novembre_2007.htm

Aller ensuite dans les templates, et télécharger en tant que nouveau template ce fichier précédemment créé.
Ouvrir ensuite "Ecrire un message aux abonnés" et choisir le template "tpl_newsletter_novembre_2007.htm". Renseigner l'objet de message, puis le corps du message (mettre seulement une phrase, ou un point, histoire de ne pas laisser le champ vide).

ATTENTION, ceci ne marchera qu'avec les abonnés en format HTML. (puisqu'il n'y a pas de template dans le format TEXTE)
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #8 le: 10 Novembre 2007 à 15:34:08 »

Je suis vraiment pas douer : J'ai donc suivis voconseils et j'utilise NVU pour faire ma newsletter (pas aussi facile mais enfin).
et là j'ai plein d'erreur quand je fais la prévisualisation Huh

Warning: fopen(../newslettux_upload/templates/tpl_essai - Copie.html) [function.fopen]: failed to open stream: No such file or directory in /home.46/m/n/a/mnaconseg/www/newslettux/lib/functions.php on line 310

Warning: filesize() [function.filesize]: Stat failed for ../newslettux_upload/templates/tpl_essai - Copie.html (errno=2 - No such file or directory) in /home.46/m/n/a/mnaconseg/www/newslettux/lib/functions.php on line 311

Warning: fread(): supplied argument is not a valid stream resource in /home.46/m/n/a/mnaconseg/www/newslettux/lib/functions.php on line 311

Warning: fclose(): supplied argument is not a valid stream resource in /home.46/m/n/a/mnaconseg/www/newslettux/lib/functions.php on line 312

voila voila  Choqu&eacute;
Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #9 le: 10 Novembre 2007 à 15:57:02 »

est-ce que le template a bien été téléchargé ?
Ouvrir Lettres d'information > Gestion des templates pour vois s'il l'est.
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #10 le: 11 Novembre 2007 à 09:08:20 »

Oui, oui, j'ai bien télécharger le template, il y a la croix devant pour l'effacer...
Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #11 le: 11 Novembre 2007 à 09:53:29 »

L'erreur doit être là dedans :
Citation
Warning: fopen(../newslettux_upload/templates/tpl_essai - Copie.html) [function.fopen]: failed to open stream: No such file or directory in /home.46/m/n/a/mnaconseg/www/newslettux/lib/functions.php on line 310
Le dossier d'upload, s'appelle-t-il upload/ ou newslettux_upload ?
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #12 le: 11 Novembre 2007 à 11:59:11 »

son nom c'est www/newlettux_upload mais le répertoire est vide
Mais avec filezila je vois le fichier sur www/newslettux/upload/template/xxx.html
Journalisée
Matthieu
Administrateur
Membre Héroïque
*
Sexe: Homme
Messages: 3461


Unreal Power...


WWW
« Répondre #13 le: 11 Novembre 2007 à 12:04:14 »

ah bin c'est pour ça ...
Il faut changer dans la base de données le nom du répertoire alors, ou renommer l'actuel upload/
Journalisée

Onlyforme
Néophyte
*
Sexe: Homme
Messages: 45


« Répondre #14 le: 11 Novembre 2007 à 13:28:31 »

je comprends pas dans le champ      SITE_UPLOADDIR j'ai bien newslettux_upload/
Journalisée
Pages: [1] 2   Haut de page
Imprimer
Aller à:  

Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
Amber design by Bloc | XHTML | CSS