Simple Machines Community Forum

SMF Support => Language Specific Support => 中文 (Chinese) => Topic started by: wushuang.tk on November 18, 2004, 08:49:16 AM

Title: 用SMF做的一个中文论坛,欢迎&
Post by: wushuang.tk on November 18, 2004, 08:49:16 AM
用SMF做的一个中文论坛,欢迎大家来灌水:)我用的是最新的英文版论坛,又注册了一个免费域名,就是现在的这个,空间也是免费的,上面的注册用户都是我的一些朋友,不过欢迎大家来讨论做论坛,网页,以及免费空间,免费域名的话题呀!

address:
http://www.wushuang.tk

:D
Title: Re: 用SMF做的一个中文论坛,欢
Post by: wushuang.tk on November 18, 2004, 08:50:36 AM
我发现用中文发帖子的时候,主题里面只能显示很少的字符,有没有老大知道为什么?还有怎么增加主题里的字符数?谢谢!!!
Title: Re: 用SMF做的一个中文论坛,欢
Post by: CapriSkye on November 18, 2004, 01:28:01 PM
你說的字符是什麼?
Title: Re: 用SMF做的一个中文论坛,欢
Post by: wushuang.tk on November 18, 2004, 01:55:02 PM
就是汉字,像这个帖子的主题,就只能显示一部分
Title: Re: 用SMF做的一个中文论坛,欢
Post by: Alrescha on November 18, 2004, 05:48:49 PM
For the DEVs: this thread started out introducing a new Chinese (Simplified Chinese) SMF, then wandered off to discuss why it only allows for very limited number of Chinese characters in the topic subject.

Maybe it's because the forum's still using ISO-8859-1?
Title: Re: 用SMF做的一个中文论坛,欢
Post by: CapriSkye on November 18, 2004, 07:09:01 PM
剛測試了一下, 主題只允許33個中文字, 80個英文字.
我記的很像在哪有看到教你怎麼關掉這個限制的.....

看一下這篇, http://www.simplemachines.org/community/index.php?topic=19572.0
unknown有解釋怎麼關掉這個限制
Title: Re: 用SMF做的一个中文论坛,欢
Post by: exeye on November 19, 2004, 03:36:06 AM
Quote from: CapriSkye on November 18, 2004, 07:09:01 PM
unknown有解釋怎麼關掉這個限制

在Sources/Post.php里找
// Make sure the subject isn't too long.
// At this point, we want to make sure the subject isn't too long.  Stripslashes first to avoid a trailing slash.

删除下面的两行code (包括注释的话是三行)


或者
Quotein Sources/Post.php:

Look for:
$form_subject = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $form_subject);

Replace:
$form_subject = preg_replace('~&#(\d{1,5});~', '&#$1;', $form_subject);

$_POST['subject'] = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $_POST['subject']);

Replace:
$_POST['subject'] = preg_replace('~&#(\d{1,5});~', '&#$1;', $_POST['subject']);

$quote_mozilla = strtr(preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', htmlspecialchars($quote)), array('"' => '"'));

$quote_mozilla = strtr(preg_replace('~&#(\d{1,5});~', '&#$1;', htmlspecialchars($quote)), array('"' => '"'));

And in Subs-Post.php:

$message = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $message);

$message = preg_replace('~&#(\d{1,5});~', '&#$1;', $message);
Title: Re: 用SMF做的一个中文论坛,欢迎&
Post by: happytutor on March 21, 2005, 07:14:44 PM
请问如何激活SMF的语言档案的?
Title: Re: 用SMF做的一个中文论坛,欢迎&
Post by: CapriSkye on March 21, 2005, 10:00:19 PM
激活? 使用嗎? 下載中文檔案,上傳到論壇根目錄然後解壓縮就可以了。
然後到管理裡面選中文語系。
Title: Re: 用SMF做的一个中文论坛,欢
Post by: [Unknown] on March 21, 2005, 10:08:53 PM
Quote from: exeye on November 19, 2004, 03:36:06 AM
Quotein Sources/Post.php:

Look for:
$form_subject = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $form_subject);

Replace:
$form_subject = preg_replace('~&#(\d{1,5});~', '&#$1;', $form_subject);

$_POST['subject'] = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $_POST['subject']);

Replace:
$_POST['subject'] = preg_replace('~&#(\d{1,5});~', '&#$1;', $_POST['subject']);

$quote_mozilla = strtr(preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', htmlspecialchars($quote)), array('"' => '"'));

$quote_mozilla = strtr(preg_replace('~&#(\d{1,5});~', '&#$1;', htmlspecialchars($quote)), array('"' => '"'));

And in Subs-Post.php:

$message = preg_replace('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $message);

$message = preg_replace('~&#(\d{1,5});~', '&#$1;', $message);

Again, that represents a security hole.  I said a half dozen times when I posted it that is was a bad solution, but he or she demanded it.

-[Unknown]
Title: Re: 用SMF做的一个中文论坛,欢迎&
Post by: Carol Barker on March 26, 2005, 05:00:08 AM
打不开
挂掉了吧
http://souhu.uni.cc
偶新装的