News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

用SMF做的一个中文论坛,欢迎&

Started by wushuang.tk, November 18, 2004, 08:49:16 AM

Previous topic - Next topic

wushuang.tk

用SMF做的一个中文论坛,欢迎大家来灌水:)我用的是最新的英文版论坛,又注册了一个免费域名,就是现在的这个,空间也是免费的,上面的注册用户都是我的一些朋友,不过欢迎大家来讨论做论坛,网页,以及免费空间,免费域名的话题呀!

address:
hxxp:www.wushuang.tk [nonactive]

:D

wushuang.tk

我发现用中文发帖子的时候,主题里面只能显示很少的字符,有没有老大知道为什么?还有怎么增加主题里的字符数?谢谢!!!

CapriSkye


wushuang.tk

就是汉字,像这个帖子的主题,就只能显示一部分

Alrescha

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?

CapriSkye

#5
剛測試了一下, 主題只允許33個中文字, 80個英文字.
我記的很像在哪有看到教你怎麼關掉這個限制的.....

看一下這篇, http://www.simplemachines.org/community/index.php?topic=19572.0
unknown有解釋怎麼關掉這個限制

exeye

#6
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);

happytutor

请问如何激活SMF的语言档案的?
hxxp:www.resellerspanel.biz/ [nonactive]

CapriSkye

激活? 使用嗎? 下載中文檔案,上傳到論壇根目錄然後解壓縮就可以了。
然後到管理裡面選中文語系。

[Unknown]

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]

Carol Barker

打不开
挂掉了吧
hxxp:souhu.uni.cc [nonactive]
偶新装的

Advertisement: