- 文章: 1031
- 活躍值: 21
- 謝謝您收到: 166
letterman 1.2.3繁簡中文UTF-8
- 羽城君拉
-
Topic Author
- Offline
- 管理員
-
Less
More
2006-07-21 05:54 #3294
來自 羽城君拉
...
This message has attachments files.
羽城君拉 created the topic: letterman 1.2.3繁簡中文UTF-8
這個版本似乎有加入和購物車元件的整合程式碼,但不知要怎麼用。
如附件,內有繁體和簡體中文語言檔,安裝時會自動安裝上去。
這個有修改letterman.class.php檔案,約432行。加入以下信件轉碼的程式碼:
if($mosConfig_lang=="traditional_chinese"){ [code]if($mosConfig_lang=="traditional_chinese"){
如附件,內有繁體和簡體中文語言檔,安裝時會自動安裝上去。
這個有修改letterman.class.php檔案,約432行。加入以下信件轉碼的程式碼:
if($mosConfig_lang=="traditional_chinese"){ [code]if($mosConfig_lang=="traditional_chinese"){
...
This message has attachments files.
Please log in or register to see it.
Please 登入 to join the conversation.
- halicacabum
-
- Offline
- 新手上路
-
Less
More
- 文章: 8
- 謝謝您收到: 0
2006-08-10 17:28 #3688
來自 halicacabum
會有以上的錯誤說,我功力太淺,不知道發生什麼樣的問題,還請大家幫忙解決
Joomla! 1.0.10 Stable
PHP 架設在:
halicacabum replied the topic: letterman 1.2.3繁簡中文UTF-8
Fatal error: Call to undefined function: mb_convert_encoding() in e:\appserv\www\joomla\components\com_letterman\letterman.class.php on line 434
會有以上的錯誤說,我功力太淺,不知道發生什麼樣的問題,還請大家幫忙解決
Joomla! 1.0.10 Stable
PHP 架設在:
Please 登入 to join the conversation.
- 羽城君拉
-
Topic Author
- Offline
- 管理員
-
Less
More
- 文章: 1031
- 活躍值: 21
- 謝謝您收到: 166
- Sunming
-
- 訪客
-
- Eddy
-
- Offline
- 管理員
-
- adaigo
-
- Offline
- 中級會員
-
2007-01-14 18:38 #5609
來自 adaigo
我試過三種,都一樣有Sunming所說的現象。
試著寄送電子報,只收到標題與附加圖檔,沒有內容。不知是怎麼回事?
joomla1.0.11, letterman 1.2.3
adaigo replied the topic: letterman 1.2.3繁簡中文UTF-8
admin 寫了道:: 應該是smtp(郵件伺服器)沒設好造成的,如果你是用windows架站的話,有時候設不起來(防火牆、xxx等等造成)。
雖然joomla支援三種郵件伺服器設法,php的mail(要到php.ini裡設定)、smtp、sendmail,但是還是建議直接設smtp會比較好。
Eddy
我試過三種,都一樣有Sunming所說的現象。
試著寄送電子報,只收到標題與附加圖檔,沒有內容。不知是怎麼回事?
joomla1.0.11, letterman 1.2.3
Please 登入 to join the conversation.
- renafool
-
- 訪客
-
2007-01-29 14:10 - 2007-01-29 15:50 #5718
來自 renafool
renafool replied the topic: letterman 1.2.3繁簡中文UTF-8
感谢eddy大大所做的工作。
小弟在使用过程中,发现,若用户提交的名称+Email中,名称为中文,则可能在收信时收信人名会有乱码。另外,亦因为是UTF-8版本的缘故,回复至(用户),若在整站配置中为中文,亦可能无法正常显示。
另外,附件文件名若为中文,亦可能会无法成功附加。
因此,首先,建议作如下修正。
/components/com_letterman/letterman.class.php中,将如下一段,用户名亦需转码
//add by Eddy 20060720
if($mosConfig_lang=="traditional_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "BIG5","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"BIG5","UTF-8");
}else if($mosConfig_lang=="simplified_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "GB2312","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"GB2312","UTF-8");
}
//end add
变为
//add by Eddy 20060720
if($mosConfig_lang=="traditional_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "BIG5","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"BIG5","UTF-8");
$row->name=mb_convert_encoding($row->name,"BIG5","UTF-8");
$mosConfig_fromname=mb_convert_encoding($mosConfig_fromname,"BIG5","UTF-8");
}else if($mosConfig_lang=="simplified_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "GB2312","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"GB2312","UTF-8");
$row->name=mb_convert_encoding($row->name,"GB2312","UTF-8");
$mosConfig_fromname=mb_convert_encoding($mosConfig_fromname,"GB2312","UTF-8");
}
//line 339
$mymail->AddReplyTo( $replyto, $mosConfig_fromname );
//end add
注意已将负责处理回复至用户昵称的line 339复制至此处
另外,在/includes/phpmailer/class.phpmailer.php文件中,有一AddAttachment方法用于处理附件附加。疑其存在文件名编码兼容问题,哪位大大能够指导如何测试修正?
在letterman.class.php中,对应的为line 349
在网上找了一下,解决方案在此:
http://www.fwolf.com/blog/post/176
但未有时间做进一步测试。
小弟在使用过程中,发现,若用户提交的名称+Email中,名称为中文,则可能在收信时收信人名会有乱码。另外,亦因为是UTF-8版本的缘故,回复至(用户),若在整站配置中为中文,亦可能无法正常显示。
另外,附件文件名若为中文,亦可能会无法成功附加。
因此,首先,建议作如下修正。
/components/com_letterman/letterman.class.php中,将如下一段,用户名亦需转码
//add by Eddy 20060720
if($mosConfig_lang=="traditional_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "BIG5","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"BIG5","UTF-8");
}else if($mosConfig_lang=="simplified_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "GB2312","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"GB2312","UTF-8");
}
//end add
变为
//add by Eddy 20060720
if($mosConfig_lang=="traditional_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "BIG5","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"BIG5","UTF-8");
$row->name=mb_convert_encoding($row->name,"BIG5","UTF-8");
$mosConfig_fromname=mb_convert_encoding($mosConfig_fromname,"BIG5","UTF-8");
}else if($mosConfig_lang=="simplified_chinese"){
$mymail->Body=mb_convert_encoding($mymail->Body, "GB2312","UTF-8");
$mymail->AltBody=mb_convert_encoding($mymail->AltBody,"GB2312","UTF-8");
$row->name=mb_convert_encoding($row->name,"GB2312","UTF-8");
$mosConfig_fromname=mb_convert_encoding($mosConfig_fromname,"GB2312","UTF-8");
}
//line 339
$mymail->AddReplyTo( $replyto, $mosConfig_fromname );
//end add
注意已将负责处理回复至用户昵称的line 339复制至此处
另外,在/includes/phpmailer/class.phpmailer.php文件中,有一AddAttachment方法用于处理附件附加。疑其存在文件名编码兼容问题,哪位大大能够指导如何测试修正?
在letterman.class.php中,对应的为line 349
在网上找了一下,解决方案在此:
http://www.fwolf.com/blog/post/176
但未有时间做进一步测试。
最後修改原因: 2007-01-29 15:50 來自 renafool.
Please 登入 to join the conversation.
- andyso
-
- 訪客
-
- 白忘機
-
- 訪客
-
- poni
-
- Offline
- 專家會員
-
2009-05-15 13:24 #13812
來自 poni
1.5應該是不能用的,如果有誤請更正
在1.0.X裡面,其實先裝誰都沒有關係。如果你會在意的話,可以先從com_的這個檔案開始裝,然後是mod_ .... 再來是 mambot_
另外,我在1.0.15裡裝的是OK的哦 `~
別問我問題,我只是路過
[url=http://www.ecisoft.com:3gmf21eg]寶瑞[/url]
poni replied the topic: letterman 1.2.3繁簡中文UTF-8
白忘機 寫了道:: 請問 jommla v1.5版能裝嗎?
有三個檔案.....
那個要先裝呀 :embs:
有沒有人能教一下呢???
1.5應該是不能用的,如果有誤請更正
在1.0.X裡面,其實先裝誰都沒有關係。如果你會在意的話,可以先從com_的這個檔案開始裝,然後是mod_ .... 再來是 mambot_
另外,我在1.0.15裡裝的是OK的哦 `~
別問我問題,我只是路過
[url=http://www.ecisoft.com:3gmf21eg]寶瑞[/url]
Please 登入 to join the conversation.
- 夯男
-
- 訪客
-
2009-10-07 10:42 #15944
來自 夯男
夯男 replied the topic: letterman 1.2.3繁簡中文UTF-8
請問一下,當我安裝完後,它怎麼會出現兩行?
Warning: include_once(..\www\xxx\administrator\components\com_xmap\language\traditional_chinese.php) [function.include-once]: failed to open stream: No such file or directory in ..\www\xxx\administrator\components\com_xmap\install.xmap.php on line 22
Warning: include_once() [function.include]: Failed opening ..\www\xxx\administrator\components\com_xmap\language\traditional_chinese.php' for inclusion (include_path='.;C:\php5\pear') in ..\www\xxx\administrator\components\com_xmap\install.xmap.php on line 22
第二個問題,當我要發出電子報時...它出現
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in ..\www\xxx\ja_edenite\components\com_letterman\letterman.class.php on line 540
Warning: Invalid argument supplied for foreach() in ..\www\xxx\ja_edenite\libraries\joomla\html\html\select.php on line 68
joomla版本是 1.5.14
letterman 1.2.3
Warning: include_once(..\www\xxx\administrator\components\com_xmap\language\traditional_chinese.php) [function.include-once]: failed to open stream: No such file or directory in ..\www\xxx\administrator\components\com_xmap\install.xmap.php on line 22
Warning: include_once() [function.include]: Failed opening ..\www\xxx\administrator\components\com_xmap\language\traditional_chinese.php' for inclusion (include_path='.;C:\php5\pear') in ..\www\xxx\administrator\components\com_xmap\install.xmap.php on line 22
第二個問題,當我要發出電子報時...它出現
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in ..\www\xxx\ja_edenite\components\com_letterman\letterman.class.php on line 540
Warning: Invalid argument supplied for foreach() in ..\www\xxx\ja_edenite\libraries\joomla\html\html\select.php on line 68
joomla版本是 1.5.14
letterman 1.2.3
poni 寫了道::
白忘機 寫了道:: 請問 jommla v1.5版能裝嗎?
有三個檔案.....
那個要先裝呀 :embs:
有沒有人能教一下呢???
1.5應該是不能用的,如果有誤請更正
在1.0.X裡面,其實先裝誰都沒有關係。如果你會在意的話,可以先從com_的這個檔案開始裝,然後是mod_ .... 再來是 mambot_
另外,我在1.0.15裡裝的是OK的哦 `~
Please 登入 to join the conversation.