CONNEXION
  • RetourJeux
    • Sorties
    • Hit Parade
    • Les + populaires
    • Les + attendus
    • Soluces
    • Tous les Jeux
    • Gaming
  • RetourActu Gaming
    • News
    • Astuces
    • Tests
    • Previews
    • Toute l'actu gaming
  • RetourBons plans
    • Bons plans
    • Bons plans Smartphone
    • Bons plans Hardware
    • Bons plans Image et Son
    • Bons plans Amazon
    • Bons plans Cdiscount
    • Bons plans Decathlon
    • Bons plans Fnac
    • Tous les Bons plans
  • RetourJVTech
    • Actus High-Tech
    • Intelligence Artificielle
    • Smartphones
    • Mobilité urbaine
    • Hardware
    • Image et son
    • Tutoriels
    • Tests produits High-Tech
    • Guides d'achat High-Tech
    • JVTech
  • RetourCulture
    • Actus Culture
    • Culture
  • RetourVidéos
    • A la une
    • Gaming Live
    • Vidéos Tests
    • Vidéos Previews
    • Gameplay
    • Trailers
    • Chroniques
    • Replay Web TV
    • Toutes les vidéos
  • RetourForums
    • Hardware PC
    • PS5
    • Switch 2
    • Xbox Series
    • Switch
    • Pokemon pocket
    • FC 25 Ultimate Team
    • League of Legends
    • Tous les Forums
  • PC
  • PS5
  • Xbox Series
  • Switch 2
  • PS4
  • One
  • Switch
  • iOS
  • Android
  • MMO
  • RPG
  • FPS
En ce moment Genshin Impact Valhalla Breath of the wild Animal Crossing GTA 5 Red dead 2
Liste des sujets

[Programation PHP] MyNewsletter_0.8beta5

domus_le_grand
domus_le_grand
Niveau 7
26 janvier 2009 à 15:07:30

Bonjour a tous!

J'aimerai intégrer une newsletter a mon site. J'ai donc trouver ce script, il m'a l'air tres bien, seulement je n'arrive pas à l'intégrer a une de mes pages et ca commence serieusement a me...

Alor je sais que je doit prendre form.php seulement je ne sait pas si je peut l'intégrer sur une page html (avec Nvu, je fait insertion/code php) et je ne comprend pas se que je doit modifier dans form.php.

Voici la fameuse form.php

[quote]<?php
// you can include this form in any page of
// your website as follow:
//
// in this file, provide correct values for:
// $path_to_pmnl
// $list_id newsletter id
// then in your page (need to be a php page)
// add this line :
// include("path/to/this/page/form.php");
// NOTA: your page need to use UTF8 encoding
// put
// <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
// in your html header

//path to phpMyNewsletter base directory

$path_to_pmnl="http://inter.egcouest.free.fr/inter
.egcouest/pages/Actualite/Newsletter/";

// newsletter id, leave this empty if you want to list available
// newsletter.

//$list_id = 1;
$list_id = "";

//display archive link (true or false) ?
$display_archive=true;

////////////////////// DO NOT MODIFY /////////////////////

if(file_exists("./".$path_to_pmnl."include/config.
php")){

include("./".$path_to_pmnl."include/config.php");

include("./".$path_to_pmnl."include/db/db_".$db_ty
pe.".inc.php");
}

include("./".$path_to_pmnl."include/lib/libconfig.
php");

include("./".$path_to_pmnl."include/interface.php"
);

include("./".$path_to_pmnl."include/lib/libnewslet
ter.php");

include("./".$path_to_pmnl."admin/include/function
.php");

if(file_exists("./".$path_to_pmnl."include/config.
php")){
print newsletter_list($list_id, true, $display_archive);
} else {
include "./".$path_to_pmnl."include/lang/english.php";
echo error_msg(translate("NEWSLETTER_NOT_YET"));
}

?>
[/quote]

Si je suis un cas désepérer et que je n'arriverai a rien connaissez vous un autre script pour ma newsletter?

Merci beaucoup!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Sous forums
  • Aide à l'achat Mac
  • Création de sites web
  • Création de Jeux
  • Linux
  • Programmation
  • Internet
  • Steam Deck
  • Macintosh
  • Hardware
La vidéo du moment