Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Jute Powerful Forum  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 Jute是怎么判断新的帖子被阅读过了?
luaoun





发贴: 84
积分: 20
于 2003-10-23 10:47 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我的理解是:用户登录后和上次的登录时间比较然后再和每个论坛的帖子发帖时间比较,这样就能在不加任何记录表的情况下判断出新的帖子了!但是如果用户点击了某一新帖子后这个帖子应该被认为不是新帖了,而其余未看的帖子对于用户来说是新的,刷新某一论坛板块的页面后应该就刚才点击查看过的帖子不被标注是新的,其余未看的还是应该标注新帖,这该怎么判断呢?


作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-10-23 11:02 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
用一个大的数据结构来记录所有点过的帖子的ID。这占用资源比较大啊,所以一般不实现。



作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
luaoun





发贴: 84
积分: 20
于 2003-10-23 13:54 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
我也知道这样子会占用和大的资源,有什么好的方法实现吗?用数据库来记录点过的记录似乎行不通,数据量太庞大了,不知有其它变通的方法?


作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
rainman

阿熊

元老


发贴: 5644
积分: 454
于 2003-10-23 13:56 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
你知道了告诉我好了



作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
luaoun





发贴: 84
积分: 20
于 2003-10-23 15:04 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
好的!Light Bulb


作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
floater

Java Jedi

总版主


发贴: 3233
积分: 421
于 2003-10-24 23:18 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
browsers do that for you, right?


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler, Refactoring - Improving the Design of Existing Code
作者 Re:Jute是怎么判断新的帖子被阅读过了? [Re:luaoun]
epubis



发贴: 0
积分: 0
于 2003-11-05 01:20 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那么多帖子,记录每个阅读过的不实际



flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923