茫茫網海中的冷日 - 對這文章發表回應
茫茫網海中的冷日
         
茫茫網海中的冷日
發生過的事,不可能遺忘,只是想不起來而已!
 恭喜您是本站第 1729107 位訪客!  登入  | 註冊
主選單

Google 自訂搜尋

Goole 廣告

隨機相片
IMG_00096.jpg

授權條款

使用者登入
使用者名稱:

密碼:


忘了密碼?

現在就註冊!

對這文章發表回應

發表限制: 非會員 可以發表

發表者: 冷日 發表時間: 2010/4/9 15:21:42

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;
  }
*/


原文出處:phplist電子報寄送系統,安裝與架設。PART 1 @ 認真打雜好青年日誌 :: 痞客邦 PIXNET ::
內容圖示
url email imgsrc image code quote
樣本
bold italic underline linethrough   












 [詳情...]
validation picture

注意事項:
預覽不需輸入認證碼,僅真正發送文章時才會檢查驗證碼。
認證碼有效期10分鐘,若輸入資料超過10分鐘,請您備份內容後,重新整理本頁並貼回您的內容,再輸入驗證碼送出。

選項

Powered by XOOPS 2.0 © 2001-2008 The XOOPS Project|