close

[轉貼自]http://kennyp.pixnet.net/blog/post/23689977


 


phplist電子報寄送系統,安裝與架設。PART 1


首先至http://www.phplist.com/下載最新版的phplist,這邊安裝的版本是phplist 2.10.9。安裝在CENT OS 5.3。



解壓縮後,首先編輯lists/config/config.php這個檔案。


設定如下


1.連結mysql的相關設定修改


$language_module = "tchinese.inc"; //正體中文語系

$database_host = "localhost";  //資料庫位址與主機同一部就設localhost

$database_name = "YYY"; //資料庫名稱

$database_user = "ZZZ"; //資料庫使用者名稱

$database_password ="PASSWORD ''; //密碼




2.資料庫的字型預設值為unicode_general_ci的設定時,記得修改/lists/admin/structure.php


的line 69


     "email" => array("varchar(255) not null unique","Email"),


修改為


     "email" => array("varchar(233) not null unique","Email"),


原因參照


http://mantis.phplist.com/view.php?id=8583




另外在lists/admin/mysql.inc


找到:


return $db;

在上面加一行:


@mysql_query('SET NAMES utf8');


讓phplists寫入資料庫時為utf編碼,在phpmyadmin底下中文就不會顯示一堆亂碼




3.lists/admin/info 複製 en ,改名為 zh-tw


   lists/admin/help複製 en ,改名為 zh-tw


   解決大量匯入使用者無法出現選項的問題,如果有需求再針對裡面的文字翻成中文,否則還是以英文顯示。




4.用瀏覽器連接至/lists/admin,點選初始化資料庫開始安裝




5. 移除寄信時附加的 phplist logo
 

/lists/admin/sendemaillib.php

# Logo mark $text["signature"] = "\n\n--\nPowered by PHPlist, www.phplist.com --\n\n";     //文字註解

/* Logo mark
  if (!EMAILTEXTCREDITS) {
    $html["signature"] = $PoweredByImage;#'<div align="center" id="signature"><a href="http://www.phplist.com"><img src="p
owerphplist.png" width=88 height=31 title="Powered by PHPlist" alt=""Powered" by PHPlist" border="0"></a></div>';
    # oops, accidentally became spyware, never intended that, so take it out again :-)
    $html["signature"] = preg_replace('/src=".*power-phplist.png"/','src="powerphplist.png"',$html["signature"]);
  } else {
    $html["signature"] = $PoweredByText;
  }
*/
arrow
arrow
    全站熱搜

    chyuanyiin 發表在 痞客邦 留言(0) 人氣()