Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 jump to last point, decimal in page numbers
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 February 2007 :  16:28:25  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
I've been working with 3.4.06 in updating my site to that, It's a fresh install, no mods, just layout changes so far... I've noticed that when I click the jump to last post from the default.asp page, I end up with decimals in the URL:
http://www.coastergaming.com/forum/topic.asp?whichpage=21.8666666666667&TOPIC_ID=11748#153803
like so, btw that page isn't accessible beause it is pwd protected.
I checked it out on toppics witgh like 4-5 pages but those go out fine, I don't have any topics currently that I know of between 5-21 pages to see where it starts going off. I mean I am not getting any problems, at first IE started opening up tons of tabs on it's own, I thought it was related to this decimal problem so I tried again and got no problems but just seems out of the ordinary for it to do that when I click the arrow to just to the last post.

coaster crazy

HuwR
Forum Admin

United Kingdom
20600 Posts

Posted - 15 February 2007 :  18:10:56  Show Profile  Visit HuwR's Homepage
this is not the cause of any problems you may have with ie, it is just that the whichpage value is not getting rounded before appending to the url
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 15 February 2007 :  19:49:20  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok, so I should not worry about it being a decimal value then? I only noticed it in 3.4.06 and not of the older versions.

coaster crazy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 February 2007 :  04:39:59  Show Profile
Find the following on line 231 of topic.asp:

intPageNumber = ((iReply+1)/strPageSize)

And the following on line 237:

intPageNumber = ((iReplyCount+1)/strPageSize)

And try changing the / to a \ on both those lines.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 16 February 2007 :  13:20:57  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
Thanks Shaggy! That fixed it.

coaster crazy
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 19 February 2007 :  05:10:11  Show Profile
Keep a close eye on it for a couple of days to make sure it still returns the correct page numbers especially when replies start to reach the end of one page or have just started on to a new one.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07