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

  New Posts New Posts RSS Feed - Last post problem on main page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Last post problem on main page

 Post Reply Post Reply
Author
fx5500 View Drop Down
Groupie
Groupie
Avatar

Joined: 30 July 2005
Location: Turkey
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote fx5500 Quote  Post ReplyReply Direct Link To This Post Topic: Last post problem on main page
    Posted: 02 May 2006 at 1:34pm
Hello.
I am using MSSQL version.
There are always writing, the last post from administrator.There are a lot of members and they are writing a lot of posts but it isnt change. Alway "last post... administrator". What should I do?
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: 02 May 2006 at 1:41pm
You may have a corrupted file, try reuploading the files again.
Back to Top
Jer26 View Drop Down
Newbie
Newbie


Joined: 19 May 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jer26 Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2006 at 7:59pm
Hello,

I'm having the same problem here. The Last Post information always shows Today, the current time, and the Administrator Account ID.

added: Not sure if it matters, but I'm using MySQL.

Which files should be reuploaded to check for corruption?

Thanks!


Edited by Jer26 - 19 May 2006 at 8:04pm
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: 20 May 2006 at 9:24am
Reupload all files again as it could be any of them that are coursing the problem.

Once you do this only new posts will update the data
Back to Top
Jer26 View Drop Down
Newbie
Newbie


Joined: 19 May 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jer26 Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2006 at 4:22pm
A completely new upload (no customization) of v8.01 did the same thing.

After digging in further, I discovered that the issue happened when the logic hit an empty sub forum. This also explains why the issue only cropped up periodically because it would only affect a small percentage of WWF users (those with an empty sub forum).

Anyway, here's the fix:

At the end of line 545, change Now() to CDate("2001-01-01 00:00:00") so the line reads:

If isDate(sarryForums(10,intCurrentRecord)) Then dtmLastSubEntryDate = CDate(sarryForums(10,intCurrentRecord)) Else dtmLastSubEntryDate = CDate("2001-01-01 00:00:00")

This matches the logic used by the Forum comparison and makes everything work great. Big smile
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: 22 May 2006 at 6:31pm
Thanks Jer26, that looks like it would have been a hard one to track down.
Back to Top
Jer26 View Drop Down
Newbie
Newbie


Joined: 19 May 2006
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jer26 Quote  Post ReplyReply Direct Link To This Post Posted: 22 May 2006 at 9:44pm
Whoops not quite there yet. The above fix will take care of the issue that arises from having empty sub forums, but the date is still wrong if the most recent post is in a sub forum. The sub forum logic also needs to be updated to use intTempRecord or else it just uses the values from the main forum.

Here's the complete fix:

Lines 543, 544 and 545: Change "intCurrentRecord" to "intTempRecord"

strLastSubEntryUser = sarryForums(8,intTempRecord)

If isNumeric(sarryForums(9,intTempRecord)) Then lngLastSubEntryUserID = CLng(sarryForums(9,intTempRecord)) Else lngLastEntryUserID = 0

If isDate(sarryForums(10,intTempRecord)) Then dtmLastSubEntryDate = CDate(sarryForums(10,intTempRecord)) Else dtmLastSubEntryDate = CDate("2001-01-01 00:00:00")


Edited by Jer26 - 22 May 2006 at 10:39pm
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: 23 May 2006 at 8:45am
Thanks Jer26, I found this problem a few weeks ago and have updated as well as adding a few new bits to the default.asp page.
Back to Top
 Post Reply Post Reply

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.