PDA

View Full Version : [fixed] strange "next page" with sticky threads


boatdesignnet
Wed 9th Jan '02, 1:08am
Take a look at this forum
http://boatdesign.net/forums/forumdisplay.php?forumid=4

And click "Next Page" or page 2 and tell me what you think?

It feels very strange since on page 2 you get the same 24 of the 26 threads on page 1???

I think everything is fine in the nav bar (I didn't change any of the variables) and the other forums work as expected. I think it's because of the two poll threads at the top of Page 1 which are marked as sticky. But it seems like a glitch.

Floris
Wed 9th Jan '02, 4:08am
I believe that sticky posts stay sticky .. so even if you request a few pages deep .. the sticky stay's on top. I dont think this is a glitch, but a feature.

boatdesignnet
Wed 9th Jan '02, 4:36am
That's not what's happening at my forum though: http://boatdesign.net/forums/forumdisplay.php?forumid=4

Page 1 is:
Sticky Thread
Sticky Thread
24 more threads

You hit the button for "Next Page" and you get
Page 2
24 more theads
(exact same threads as page 1 without the two sticky threads)

Why are the same (non-sticky) threads duplicated on page 1 and page 2 of this forum?

Help!

boatdesignnet
Wed 9th Jan '02, 4:52am
OK - thinking that the sticky threads might be what is causing the problem (since these are the only two sticky threads in any of my forums) I decided to unstick them as a test.

I found something which seems strange:

Note that I have erased the "Sticky" label in the admin CP options, but the only two threads which are sticky are:
"Poll: Best Free or Low Cost Marine Design Software?"
and
"Poll: Best Marine Design Software for Hull Design?"

Using the pulldown Stick / Unstick Thread what I found strange was that I would think if I used this on a stuck thread I would get "this thread has successfully been unstuck" but instead I got "this thread has been successfully stuck" and then had to do it again to unstick. Is this messed up, or is it always this way? I had to do 4 iterations to get them both unstuck. Then 4 more to get them both stuck again.

Anyway, with those two threads unstuck, the pages worked as expected:
Page 1 contains 25 threads
Page 2 contains 1 thread (no duplicates.)

I changed the two Poll: threads back to sticky, and then the page numbering changed back to:
Page 1 contains 2 sticky threads plus 24 other threads
Page 2 contains the same 24 threads (same 24 - duplicates page 1 without the stickies)

I tried adding one more test post (now deleted) to the forum wondering if the number of posts was the issue, but this did not change anything (still the second page contains mostly duplicates of the first page.)

Why are the Sticky Threads causing this huge problem? Any ideas are appreciated.

boatdesignnet
Wed 9th Jan '02, 5:02am
OK looking at the number I figured it out but I believe it is a bug.

If I add 2 test posts it fixes itself.

The problem occurs when there is:
2 sticky threads +
24 normal threads
and threads per page is set to 25

This results in a duplicate second page.

2 sticky threads +
25 normal threads
and threads per page is set to 25

also results in a duplicate second page

2 sticky threads +
26 normal threads
and threads per page is set to 25

works fine (no duplicates on the second page)

John
Thu 17th Jan '02, 10:09am
I think that I have worked out a fix for this, boatdesignnet, so can you email me and I will send you the fix to test out.

Thanks,
John