开发者

New post / threads on forums [closed]

开发者 https://www.devze.com 2023-04-10 10:36 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_如何学JAVA Closed 11 years ago.

I'm currently working on my own basic forum, for my website.

The question is, what is the best way, to check new post / threads on forum for each other user AND guest? I think , cookies are the option in this case.

But I need some ideas on how to do that.

Maybe there are any ready to use PHP classes?

Thank you in advance,

Kind Regards,

Lucas.


Yes you can encode the last visit date/time of a particular visitor and store it in a cookie. Now you just have to compare that date with the forum posts dates and format the posts newer than the last visited date in a different manner (e.g. make those posts title bold). Further you may even encode and store which posts have have been viewed by the user and show posts not viewed till now as fresh/current.

0

精彩评论

暂无评论...
验证码 换一张
取 消