Advertisement:

Author Topic: 用SMF做的一个中文论坛,欢迎&  (Read 24324 times)

Offline wushuang.tk

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

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

 :D

Offline wushuang.tk

  • Newbie
  • *
  • Posts: 4
  • www.wushuang.tk
    • wushuang.tk
Re: 用SMF做的一个中文论坛,欢
« Reply #1 on: November 18, 2004, 08:50:36 AM »
我发现用中文发帖子的时候,主题里面只能显示很少的字符,有没有老大知道为什么?还有怎么增加主题里的字符数?谢谢!!!

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: 用SMF做的一个中文论坛,欢
« Reply #2 on: November 18, 2004, 01:28:01 PM »
你說的字符是什麼?

Offline wushuang.tk

  • Newbie
  • *
  • Posts: 4
  • www.wushuang.tk
    • wushuang.tk
Re: 用SMF做的一个中文论坛,欢
« Reply #3 on: November 18, 2004, 01:55:02 PM »
就是汉字,像这个帖子的主题,就只能显示一部分

Offline Alrescha

  • Newbie
  • *
  • Posts: 6
Re: 用SMF做的一个中文论坛,欢
« Reply #4 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?

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: 用SMF做的一个中文论坛,欢
« Reply #5 on: November 18, 2004, 07:09:01 PM »
剛測試了一下, 主題只允許33個中文字, 80個英文字.
我記的很像在哪有看到教你怎麼關掉這個限制的.....

看一下這篇, http://www.simplemachines.org/community/index.php?topic=19572.0
unknown有解釋怎麼關掉這個限制
« Last Edit: November 18, 2004, 07:16:34 PM by CapriSkye »

Offline exeye

  • Newbie
  • *
  • Posts: 1
Re: 用SMF做的一个中文论坛,欢
« Reply #6 on: November 19, 2004, 03:36:06 AM »
unknown有解釋怎麼關掉這個限制

在Sources/Post.php里找
Code: [Select]
// 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 (包括注释的话是三行)


或者
Quote
in 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);
« Last Edit: November 19, 2004, 03:53:04 AM by exeye »

Offline happytutor

  • Newbie
  • *
  • Posts: 8
    • Free Reseller Hosting Program
Re: 用SMF做的一个中文论坛,欢迎&
« Reply #7 on: March 21, 2005, 07:14:44 PM »
请问如何激活SMF的语言档案的?
hxxp:www.resellerspanel.biz/ [nonactive]

Offline CapriSkye

  • Full Member
  • ***
  • Posts: 574
    • Open
Re: 用SMF做的一个中文论坛,欢迎&
« Reply #8 on: March 21, 2005, 10:00:19 PM »
激活? 使用嗎? 下載中文檔案,上傳到論壇根目錄然後解壓縮就可以了。
然後到管理裡面選中文語系。

Offline [Unknown]

  • SMF Friend
  • SMF Master
  • *
  • Posts: 36,102
  • Gender: Male
Re: 用SMF做的一个中文论坛,欢
« Reply #9 on: March 21, 2005, 10:08:53 PM »
Quote
in 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]

Offline liinaazzw

  • Newbie
  • *
  • Posts: 5
Re: 用SMF做的一个中文论坛,欢迎&
« Reply #10 on: March 26, 2005, 05:00:08 AM »
打不开
挂掉了吧
hxxp:souhu.uni.cc [nonactive]
偶新装的