搜索

论坛日常站务以及建议或咨询
回复
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

搜索

#1

帖子 eexpress » 2007-07-03 20:01

搜索。显示按照文章。搜索自己的帖子。不能翻页,无内容。就第一页有哦。
● 鸣学
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2007-07-03 20:11

可以啊.
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2007-07-04 9:07

测试很多次了。15个一页。我什么都没动。这是第2页。

就第1页有内容。急
附件
screenshot-2007-07-04-09-10-33.png
● 鸣学
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

#4

帖子 zhuqin_83 » 2007-07-04 9:13

google
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
laborer
帖子: 1016
注册时间: 2005-10-25 11:15
联系:

#5

帖子 laborer » 2007-07-04 9:16

知道灌水过多的恶果了吧。
hreiser@oakland:~$ killall -9 wife
police@oakland:~$ sudo find / -user hreiser
court@oakland:~$ sudo mv /home/hreiser /jail/
court@oakland:~$ sudo usermod -d /jail/hreiser -s "/usr/sbin/chroot /jail/" hreiser
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#6

帖子 oneleaf » 2007-07-04 11:46

好了,由于限制了mysql的 max_allowed_packet = 1M 现在修改为 5M ,测试搜索 eexpress 已经没有问题了。

不过由于返回的数据量太大,因此phpbb没有保存此数据到 SEARCH_TABLE 表,从而导致翻页提示没有数据,建议使用关键字和用户联合查询,降低返回的记录数。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#7

帖子 eexpress » 2007-07-04 19:15

还是一样的哦。有1087页。晕了。数据多了。

不搜索了。oneleaf,我想要4月5月6月,每天早上我第一个帖子的时间(或者登录时间)。你帮忙索引一次,出个数据算了(90个数据左右)。我没办法了。 :lol:
● 鸣学
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#8

帖子 oneleaf » 2007-07-04 20:37

由于phpbb采用的时间不同于mysql的默认处理时间,所以需要手工处理。
具体算法为当前时间-1970-1-1的日期天数*24*3600 + 当天的秒数

一句话就是当前时间到1970-1-1 00:00的秒数。
附件
a.out.tar.gz
(103.42 KiB) 已下载 72 次
头像
mason105
帖子: 170
注册时间: 2007-04-30 23:56
来自: NJ

#9

帖子 mason105 » 2007-07-04 21:09

e极水王
Ctrl the life,Shift your future
把握生活,创造未来
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#10

帖子 eexpress » 2007-07-04 21:22

post_time 是个艰难的换算过程 | post_id 是什么啊。对应不上http://forum.ubuntu.org.cn/viewtopic.php?t=xxxxx这样的参数哦。
要是有“时间: 2007-7-04 周三, 下午9:09” 和 帖子地址就好了。
● 鸣学
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#11

帖子 oneleaf » 2007-07-05 23:17

加了主题ID
附件
a.out.tar.gz
(147.98 KiB) 已下载 70 次
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#12

帖子 eexpress » 2007-07-06 9:49

select date(post_time),...........
这样的函数没有吗? oneleaf
● 鸣学
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#13

帖子 oneleaf » 2007-07-06 20:29

因为包存在数据库中的是int类型无法使用任何 mysql 自带的 format_date 函数。
回复