Last post doesnt always work (RC1)
Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=18889
Printed Date: 12 April 2026 at 10:15pm Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: Last post doesnt always work (RC1)
Posted By: rowdyvdveen
Subject: Last post doesnt always work (RC1)
Date Posted: 23 March 2006 at 10:26am
If you go to this page: http://www.starbase74.nl/forum80/forum_topics.asp?FID=2
and then click on the 'last post' icon of the topic:
'Gaat dit forum ook al dood?
1 2 3 4 5 6 7 8'
(I mean clicking on the arrow-icon to the right), you end up on page 4 instead of page 8.
I'm also looking in to this, trying to find what's causing this.
|
Replies:
Posted By: WebWiz-Bruce
Date Posted: 23 March 2006 at 11:43am
A few other users have reported this problem, and it would be in the code that calculates the page the post is on within the 'forum_posts.asp' page.
The problem is that at the moment I have been unable to replicate the problem so that I can find a solution.
Could you please tell me your forum setup of how many posts and topics you have set it to display per page as this may help workout where the page calculation code is going astray as hopefully I can then replicate the error.
|
Posted By: WebWiz-Bruce
Date Posted: 23 March 2006 at 11:48am
I had a look at your forum and it seems it only happening on the one topic because for some reason it has the last post data incorrect on the forum index page.
This may have happened in the update process, to fix this, put a new post in the topic, then delete it, this should reset the 'Last Post' data for that topic.
|
Posted By: rowdyvdveen
Date Posted: 23 March 2006 at 6:52pm
Thanks for your quick response.
I've had reports from other users as well, I will ask them which topics have these problems besides this one. (if any, it is possible they all mean this topic)
|
Posted By: WebWiz-Bruce
Date Posted: 24 March 2006 at 12:36pm
I have found the issue, it was in the calculation for working out which page.
I have fixed it for the next version by using the VbScript built in function 'FIX' when doing the calculation so that the correct page is always returned.
|
Posted By: rowdyvdveen
Date Posted: 27 March 2006 at 9:59am
Okay, thanks!
Wonder what else we can fix with the FIX instruction... Sounds very useful to me ;-)
|
Posted By: WebWiz-Bruce
Date Posted: 27 March 2006 at 11:16am
I wish 'FIX' was a universal 'FIX' solution but it's not.
It is used to return the whole integer number when doing a calculation.
|
|