Visualizzazione dei risultati da 1 a 10 su 10
  1. #1
    Utente di HTML.it
    Registrato dal
    Sep 2003
    Messaggi
    162

    newsletter come installarlo

    SCUSATE, sto installando ZWS newsletter, purtroppo non ho idea di come muovermi con php

    So che devo modificare una parte di una pagina esattamente questo
    -----------------------
    $tid = "0";
    $text = make_it_text($body);
    }
    $getemail = mysql_query("SELECT email, header FROM sub_mail") or die(mysql_error());
    while($data=mysql_fetch_array($getemail)) {
    $type=$data["header"];
    $email=$data["email"];
    if($type == "H") {
    ---------------------------
    IL FILE README DICE QUESTO
    Open admin.php and go to lines 630 and 637. Edit the unsubscribe message for your site. Do not delete any "\n" line breaks and be sure to use backslashes before quotes.




    Mi dite perfavore come?
    Se me lo scrivete con le modifiche mi fate un gran favore

  2. #2
    che io sappia in quelle linee non cè niente da modificare controlla che siano quelle le linee da modificare.

    Posta il codice anche con il num di riga (almenno dalla 620 alla 640)

    e poi vediamo che si può fare
    3/6/2003 è morto l'angelo della mia vita..
    www.markwebinformatica.net
    My BLOG

  3. #3
    Utente di HTML.it
    Registrato dal
    Sep 2003
    Messaggi
    162
    grazie mille, 620 alla 640

    // SEND NEWSLETTER
    //
    function send_newsletter() {
    global $id, $return_email, $tid;
    news_admin();
    $dbcnx = dbopen();
    $getnewsletter = mysql_query("SELECT title, news_body FROM news_letter WHERE id='$id'") or die(mysql_error());
    while($d=mysql_fetch_array($getnewsletter)) {
    $body=$d["news_body"];
    $title=$d["title"];
    $tid = "0";
    $text = make_it_text($body);
    }
    $getemail = mysql_query("SELECT email, header FROM sub_mail") or die(mysql_error());
    while($data=mysql_fetch_array($getemail)) {
    $type=$data["header"];
    $email=$data["email"];
    if($type == "H") {
    $header = "From: $return_email\nReply-To: $return_email\nContent-Type: text/html; charset=iso-8859-1";
    //
    // Edit unsubscribe message and url path for your site

  4. #4
    bhè non mi sembra ci sia nulla da editare
    The Happyest Times
    Are The Ones
    That Are Shared

  5. #5
    Utente di HTML.it
    Registrato dal
    Sep 2003
    Messaggi
    162
    quando lancio install.php
    vi viene
    Unable to connect to the Database

    Un database dal mio pannello di controllo l'ho creato, ma come faccio a settare le pagine php in modo che riconoscano il database? Penso che da qualche parte devo scrivere una user, passw e nome del database ... mi confermate che dovrei fare questo?

  6. #6
    Utente di HTML.it
    Registrato dal
    Sep 2003
    Messaggi
    162
    si scusate, sono proprio un pirla
    1. Extract zws_newsletter.zip and open the newsletter folder. Open config.news.php and edit your db host, db username, db password and db name. You MUST have your db created prior to installation. Edit your Replyto: e-mail ($reply_email), your Return e-mail ($return_email), your newsletter name ($newsletter_name) and the number of subscriber e-mails displayed per page ($limit) for the admin subscriber list.
    ORA PROVO

  7. #7
    ovvio che devi fare quello, ma non è in quelle righe...

    cerca una parte simile a questa:
    codice:
    <?
    $dbhost = '';
    $dbusername = '';
    $dbpasswd = '';
    $database_name = '';
    $connection = mysql_connect("$dbhost","$dbusername","$dbpasswd")
    	or die ("Impossibile connettersi al db.");
    $db = mysql_select_db("$database_name", $connection)
    	or die("Impossibile selezionare il db.");
    ?>
    Dentro gli apici devi metterci i dati.
    The Happyest Times
    Are The Ones
    That Are Shared

  8. #8
    Utente di HTML.it
    Registrato dal
    Sep 2003
    Messaggi
    162
    Si lo fatto, incredibile sono riuscito a installare un file php ... per voi è pane quotidiano per me no VVoVe: GRAZIE per l'aiuto e per l'immediatezza in cui mi avete risposto

  9. #9
    ma è ovvio che sicuramente ci sarà una pagina chiamata con_db .php o roba simile

    Il file .php per la connessione è questo

    Codice PHP:
    <?php 
            $user
    ='....'// user database
        
    $psw='...';  // password database
        
    $host='127.0.0.1';  // indirizzo database

        
    $conmysql_connect($host,$user,$psw)or
            die (
    "Non riesco a connettermi al server ...  ");
        
            
    mysql_select_db('test'$con)or 
            die (
    " Non trovo il database ...");
                
    ?>
    Trova un filr fatto più o meno cosi e modificalo..
    3/6/2003 è morto l'angelo della mia vita..
    www.markwebinformatica.net
    My BLOG

  10. #10
    se prendi questa strada lo diventerà anche per te....
    3/6/2003 è morto l'angelo della mia vita..
    www.markwebinformatica.net
    My BLOG

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.