vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Report a Bug :: Board "new" does not update properly - View Topic
Topic Rating: *****
Printable View
webmaren
New Member
*

[Avatar]
"Don't try to be original, just try to be good." - Paul Rand

Posts: 34
Status: Offline
Gender: Male
Location: Maryland, USA
Age: 33
Joined:  
Reputation: 0%  


pmwwwtwittermsnaimvForum
Board "new" does not update properly (28th Apr 10 at 8:41pm UTC)
If you access the only "new" thread in a board through the "Last Post" link on the main page instead of viewing the thread listing first, the "new" status of the board does not update. Thus, the board appears to have new posts in it when there are in fact no new posts.

Not sure that any of this would be relevant, but:
Browser: Opera 10 Linux
OS: Ubuntu 10.04 Beta

Image

Image
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Board "new" does not update properly (28th Apr 10 at 11:08pm UTC)
I am aware of this issue but am yet to come up with a suitable fix.

It is annoying though so I'll leave this here to remind me to take another look at it.

Image
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Board "new" does not update properly (3rd May 10 at 3:25am UTC)
I had a thought, not sure how you decide if a board is unread or not, but surely you could check if there are "new" posts in that board? :/ Ie. Times of viewing the threads within etc...
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Board "new" does not update properly (3rd May 10 at 3:29pm UTC)
 
I had a thought, not sure how you decide if a board is unread or not, but surely you could check if there are "new" posts in that board? :/ Ie. Times of viewing the threads within etc...


Something along those lines. The idea is to get/store that information without overloading the server with queries. With the number of pageviews we get across the system we don't want to be requesting unnecessary information all of the time, especially not when it has to query large sets of data (think of the kinds of queries that would have to run on the homepage of a large forum [say 3000 topics across 20 different boards] which gets 1000 views a day). I think it needs to somehow check if the parent board should be marked as "read" or not whenever you view a recent topic within it - that way the query only gets run for members who are viewing an unread topic and would only be done for one board at a time. I've just got to workout the specifics of how best to do it {Smile}

Image
webmaren
New Member
*

[Avatar]
"Don't try to be original, just try to be good." - Paul Rand

Posts: 34
Status: Offline
Gender: Male
Location: Maryland, USA
Age: 33
Joined:  
Reputation: 0%  


pmwwwtwittermsnaimvForum
Re: Board "new" does not update properly (3rd May 10 at 8:06pm UTC)
if ($POST["via"] == "recentpost") {
boards[$GET["board_id"]].markRead();
}



Obviously I'm just making the stuff up, and it's been a long time since I used PHP, so forgive my syntax.

Image

Image
Nick
Very Senior Member
*****

[Avatar]

Posts: 3,013
Status: Offline
Gender: Male
Location: vForums
Age: 35
Joined:  
Reputation: 62%  


pmwww
Re: Board "new" does not update properly (3rd May 10 at 8:53pm UTC)
Every forum host I have seen/used it's been like this. I also did point this out 2 years ago on this forum, but I cannot remember what was said. {Tongue Out}
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Board "new" does not update properly (3rd May 10 at 11:04pm UTC)
 
if ($POST["via"] == "recentpost") {
boards[$GET["board_id"]].markRead();
}



Obviously I'm just making the stuff up, and it's been a long time since I used PHP, so forgive my syntax.


I had a little more of an in-depth look at it tonight and there are several challenges to overcome.

Method 1. We could check if the post you are viewing is the current "Most Recent" one. However, there could still be other (slightly older) unseen/unread topics in the board so marking it as read would be wrong.

Method 2. We could check if there are topics in the board which you have not read, but that's not to say you haven't seen them (by "Seen" I mean seen them listed inside the board but not read them - we just don't store that information)

So what we really need to do is check the time you viewed each board (so that information needs to get stored somewhere) and check if there are any posts created after that time which you haven't yet read. Sounds simple but that requires information which is not currently stored. It'll require a rework of several systems to become feasible (including the homepage, view board, view topic, mark as read and bump topic systems off the top of my head). Hopefully we'll be able to make it happen (I can see several related features which could be added) but it'll require longer to do {Smile}


Image
webmaren
New Member
*

[Avatar]
"Don't try to be original, just try to be good." - Paul Rand

Posts: 34
Status: Offline
Gender: Male
Location: Maryland, USA
Age: 33
Joined:  
Reputation: 0%  


pmwwwtwittermsnaimvForum
Re: Board "new" does not update properly (3rd May 10 at 11:36pm UTC)
Actually, all you need is the last access time for the board and the time that the most recent post/bump was made. Mark as read should also update the last access time. You don't really need to see if there are multiple new posts after the last access.

Image

Image
Ross
Administrator
*****

[Avatar]

Posts: 3,709
Status: Offline
Gender: Male
Age: 9 14
Joined:  

Additional Groups:
Support Team
***


Reputation: 45%  


pmwwwtwittergtalkvForum
Re: Board "new" does not update properly (1st Jun 10 at 11:41pm UTC)
I've been doing some testing on this and, so far, things appear to be going quite well. It turns out that in some places I had been quite sensible with the original system - making it easier to update. It's still very early tests but I should be able to include a fix to this in the next batch of bug fixes {Smile}

Image
 Printable View

All times are GMT+0 :: The current time is 7:59am
Page generated in 0.2919 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums