Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - "New Posts" Icon Behaviour
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"New Posts" Icon Behaviour

 Post Reply Post Reply Page  12>
Author
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Topic: "New Posts" Icon Behaviour
    Posted: 12 July 2006 at 6:05am
boRg,
 
Can you explain a little about how Web Wiz determines if there are new posts in a topic?  I'm seeing some unpredictable behaviour.
 
The default.asp page uses:
 
ElseIf CDate(dtmLastVisitDate) < dtmLastEntryDate Then
 
...whereas forum_topics.asp uses:
 
ElseIf blnNewPost = True Then
 
If a user goes via the homepage to read a topic in which there are new posts, then goes back to the homepage, that forum still has a new topic icon.  On the forum_topics page however, immediately all the posts are read the icons change.
 
Is it possible to have the homepage behave in the same way?
 
By-the-way I'm also changing unread topic title links to bold just to make them a little easier to spot.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2006 at 9:36am
This has been discussed to death in some length, please do a search.
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 12 July 2006 at 6:21pm
Originally posted by -boRg- -boRg- wrote:

This has been discussed to death in some length, please do a search.
Perhaps you would be so kind as to suggest what to search for?
 
'new posts icon' has found 3 results (none relevant)
'new posts' has found 131 results  (none relevant)
'CDate(dtmLastVisitDate)' has found 1 result (this post)
 
A link to a thread maybe?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2006 at 9:29am
OK, lookjs like I'll have to go through it all again.

The actual feature is 'new posts since last visit' rather than just new posts, which is how most forums work.

Within a forum when you look at a new post a cookie is stored so it can be checked if the post has been viewed, which is quite easy and simple and doesn't course a performance issue.

However, on the forums main page the date of the users last visit is checked against the date of the last post, if the date of the last post is newer a new post icon is displayed.

Now, you  could go through a check if each of the new posts in that forum has been viewed, but this would require getting and reading in the date for each new post in that forum and checking against the cookie if it has been read.

This would require allot of database hits to do this processing, this would then mean, instead of 1 database hit for the data for that page and a processing time of 0.04 seconds you would be seeing upwards of 100 database hits on a forum like this and a processing time of 3 to 5 seconds. This would also lead to problems with server resources being used up for this very resource hungry procedure.

This means that for performance reasons on the forums mains page the feature needs to be 'New Posts Since Last Vist'.

As a type of solution to this the main forum page also includes a link at the bottom to 'Mark all posts as read'


Edited by -boRg- - 13 July 2006 at 9:31am
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 13 July 2006 at 7:17pm

boRg, thank you, that's most helpful.

Regarding the main page behaviour (and of the forum in general), what determines when a user visit has ended and when they've re-entered?  Is it a cookie or server session?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 14 July 2006 at 8:28am
The forum session for a user is stored in the web servers memory, or in the database if you have edited the forum to store session data in the database.

This session data is stored for 15 minutes after the user was last active in the forum, after this time the session data is cleared for that user.
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 15 July 2006 at 2:34am
Thank you.  Out of interest I supposed that could be changed in IIS?  I think 15 minutes strikes just about the right balance anyway.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2006 at 11:39am
I've just checked and it is actually 20 minuets and as web wiz forums uses it's own more secure session tracking system you would need to edit the file functions/functions_session_data.asp on the following line to change the session timeout time:-

If CDate(sarySessionData(2, intSessionArrayPass)) < DateAdd("n", -20, Now()) Then
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.