|
|
View previous topic - View next topic |
Author |
Message |
Bjorn Demon Hunter
Joined: 29 May 2002 Posts: 1425 Location: Germany
|
Posted: Fri Sep 19, 2003 7:17 pm Post subject: New new posts identification |
[quote] |
|
Today I've been working on quite a bit of forum hacking, changing the way new posts are identified.
Traditionally, phpbb2 takes your last visit and displays any posts after that date as new, using cookies to stop displaying posts you have read that session as new. This is nice and convenient, but annoying when you don't have time to read all new posts and you want to continue reading the new ones at another time. Also, if something goes wrong with logging in, the second time you try the last visit date might have been reset already and the new post identifications are gone. Last but not least, when I would make 1 login for both RPGDX and the forums, a short visit to RPGDX would remove the new posts identification from the forums.
This is why I've implemented a different method. I've made the forum use another table to store at which time any of you has read each thread, and it uses that data to determine if it should display a post as new. The new posts identification is done on different pages and in different ways, and each needed to be adapted. Also, the 'mark all threads as read' and 'mark all forums as read' links had to be updated.
I don't expect everything to be working straight away, but the systems needs some testing. If you come upon any strange behaviour, or if you are annoyed by some aspect of the new system, I urge you tell me about it.
|
|
Back to top |
|
|
Nexinarus Slightly Deformed Faerie Princess
Joined: 25 Oct 2002 Posts: 32 Location: In the distance
|
Posted: Fri Sep 19, 2003 8:24 pm Post subject: |
[quote] |
|
Yeah its very slick and organised. I like. _________________ Anorexia is phat!
|
|
Back to top |
|
|
Bjorn Demon Hunter
Joined: 29 May 2002 Posts: 1425 Location: Germany
|
Posted: Sat Sep 20, 2003 12:57 pm Post subject: |
[quote] |
|
Ok, thanks, but I guess you must be talking about the forum layout instead of this new posts identification. :-)
Anyway, been making a slight optimization today. The size of the table with read-times was O(users*threads), which has the potential to grow quite big. With this optimization, the expected size is actually 0, assuming everybody reads all new posts before leaving.
|
|
Back to top |
|
|
|
Page 1 of 1 |
All times are GMT
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|