Finding new posts

Technical information will be posted here, use it to ask questions too.
NevilleB

Finding new posts

Post by NevilleB » Fri Jun 13, 2008 6:06 pm

One thing that has been puzzling me for some time.

I like to see the most recent posts at the top of the lists. If I am logged in, there is a link for this called
"New posts" which gives a page worth of recent posts

If I am not logged in, this link does not exists, but if I type in the URL from above (http://forum.bcfservices.org.uk/search. ... d=newposts), I get seven pages worth of recent posts.

Why is this different. Is it under the Administrator's control?

Regards

Neville B

User avatar
John Upham
Posts: 7179
Joined: Wed Apr 04, 2007 10:29 am
Location: Cove, Hampshire, England.

Re: Finding new posts

Post by John Upham » Fri Jun 13, 2008 6:10 pm

This is trivial.

Click Board Index then

View new posts

Easy peasy. :wink:
British Chess News : britishchessnews.com
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess :D

User avatar
Carl Hibbard
Posts: 6028
Joined: Fri Dec 08, 2006 8:05 pm
Location: Evesham

Re: Finding new posts

Post by Carl Hibbard » Fri Jun 13, 2008 6:21 pm

NevilleB wrote:One thing that has been puzzling me for some time.

I like to see the most recent posts at the top of the lists. If I am logged in, there is a link for this called
"New posts" which gives a page worth of recent posts

If I am not logged in, this link does not exists, but if I type in the URL from above (http://forum.bcfservices.org.uk/search. ... d=newposts), I get seven pages worth of recent posts.

Why is this different. Is it under the Administrator's control?

Regards

Neville B
No control no Neville and to be honest I would have to look at the source code to check

I did always "think" it was new posts relevant to your login session but perhaps it isn't?
Cheers
Carl Hibbard

NevilleB

Re: Finding new posts

Post by NevilleB » Fri Jun 13, 2008 7:17 pm

John - Thanks for the suggestion, but as there is no New Posts link when I am not logged in, it does not really help answer the question.

Carl - Your answer was what I expected. Something even more strange. I sent the message from my office, and when I was logged in there, I could see about a dozen posts. Now I am logged on at home I can only see three.

Regards

Neville B

User avatar
John Upham
Posts: 7179
Joined: Wed Apr 04, 2007 10:29 am
Location: Cove, Hampshire, England.

Re: Finding new posts

Post by John Upham » Fri Jun 13, 2008 7:23 pm

OK, I suspect the underlying code compares the timestamp of posts with your most recent login timestamp.

This is stored in the MySQL database which sits behind phpBB.

The code will conclude that posts with more recent timestamps than your last login are ones that you haven't read : quite reasonable.

It has no way of making this comparison if you do not authenticate yourself to the server.
British Chess News : britishchessnews.com
Twitter: @BritishChess
Facebook: facebook.com/groups/britishchess :D

User avatar
Carl Hibbard
Posts: 6028
Joined: Fri Dec 08, 2006 8:05 pm
Location: Evesham

Re: Finding new posts

Post by Carl Hibbard » Sat Jun 14, 2008 8:07 am

John Upham wrote:OK, I suspect the underlying code compares the timestamp of posts with your most recent login timestamp.

This is stored in the MySQL database which sits behind phpBB.

The code will conclude that posts with more recent timestamps than your last login are ones that you haven't read : quite reasonable.

It has no way of making this comparison if you do not authenticate yourself to the server.
Yes that is the case after a quick check

WHERE t.topic_last_post_time > ' . $user->data['user_lastvisit'] . '
Cheers
Carl Hibbard