Forgot password
 Register account
View 227|Reply 7

引用太少

[Copy link]

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-29 17:52 |Read mode
hbghlyj 发表于 2022-10-26 19:28
/template/default/forum/post.htm Line 69

似乎是截取帖子的前30个字符
相信不是这里。
实际上显然不止30个字符。

就本帖的引用而言,光是“/template/default/forum/post.htm Line 69”就40个字符了。

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:13
11111111112222222222333333333344444444445555555555666666666677777777778888888888999999999900000000001111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:14
kuing 发表于 2022-10-30 01:13
1111111111222222222233333333334444444444555555555566666666667777777777888888888899999999990000000000 ...
楼上200个数字,看看能引用到哪里

刚好100

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:28
kuing 发表于 2022-10-30 01:14
楼上200个数字,看看能引用到哪里

刚好100
根据 100 这个数字,以及 cutstr 这样的字眼去找,发现在
/source/include/post/post_newreply.php
第 206 行有这么一句:
  1. $message = messagecutstr($message, 100);
Copy the Code
而且后面第 221 行还看到
  1. [quote][size=2][url=......
Copy the Code
等的一串,正是被引用作者的格式,极有可能就是这里了。

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:36
一一一一一一一一一一二二二二二二二二二二三三三三三三三三三三四四四四四四四四四四五五五五五五五五五五六六六六六六六六六六七七七七七七七七七七八八八八八八八八八八九九九九九九九九九九十十十十十十十十十十一一一一一一一一一一二二二二二二二二二二三三三三三三三三三三四四四四四四四四四四五五五五五五五五五五六六六六六六六六六六七七七七七七七七七七八八八八八八八八八八九九九九九九九九九九十十十十十十十十十十

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:37
kuing 发表于 2022-10-30 01:36
一一一一一一一一一一二二二二二二二二二二三三三三三三三三三三四四四四四四四四四四五五五五五五五五五五 ...
中文引用,50 个字,也就是 messagecutstr 是一个汉字按两个字符算的。

奇怪,昨天弄大 tag 字数的时候,明明一个汉字算三个字符

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:48
1
2
3
4
5

673

Threads

110K

Posts

218

Reputation

Show all posts

kuing posted 2022-10-30 01:49
第 207 行
  1. $message = implode("\n", array_slice(explode("\n", $message), 0, 3));
Copy the Code
猜测是最多只能引用三行,看一下引用楼上是不是这样。

果然是!

又限字数又限行数,难怪平时引用时总感觉那么短……

其目的只是不想让引用太占地方?
那不如将引用的框重新设计一下,限制高度,下面加个“点击展开”按钮之类的?

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | Register account

$\LaTeX$ formula tutorial

Mobile version

2025-7-21 05:40 GMT+8

Powered by Discuz!

Processed in 0.012009 seconds, 25 queries