Threads that break

Discuss anything pertinent to this website.

Moderator:Æron

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:
Threads that break

Postby Dr. Doog » Sat Nov 18, 2006 7:06 pm

Surely you've noticed in threads such as Word Association that sometimes the link sends you to a page that starts several posts after the last post (like, say the thread has 12,403 posts and the link to the last page starts at post 12,405. It gives you a "no thread exists here" error and then you have to edit the URL to a lower number. Is there any way to fix this? Is it from deleting some posts in the thread?
pants jesus
DCS should've ended the comic a year or two ago.

Zaaphod
Moderator (retired)
Posts:6319
Joined:Tue Oct 28, 2003 7:16 pm

Postby Zaaphod » Sun Nov 19, 2006 1:49 am

Got me. I'm as baffled about that as you are. :?:
Image
Made by Angela. :D

User avatar
Kyler Thatch
Posts:1030
Joined:Sat Jun 10, 2006 3:16 pm
Location:anywhere imaginary
Contact:

Postby Kyler Thatch » Sun Nov 19, 2006 2:22 am

We've had that concern over at another forum I go to. What we did was to lock the Word Association thread in question after 1500 posts (or around that number), and continuing the game on an entirely new thread. So far we haven't had any problems yet.

Does that help?
Rainy Day Donuts
Made from 110% recycled paper

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Sun Nov 19, 2006 3:43 am

no. :( I like the really friggen big thread
pants jesus
DCS should've ended the comic a year or two ago.

Richard K Niner
Posts:4297
Joined:Wed Oct 20, 2004 5:08 pm
Location:On hiatus
Contact:

Postby Richard K Niner » Sun Nov 19, 2006 4:16 am

There's always the database repair solution: the reply counter is stored in phpbb_topics.topic_replies, so the process would be:
  1. UPDATE phpbb_topics SET topic_status = 1 WHERE topic_id = 105;
  2. SELECT COUNT(*) FROM phpbb_posts WHERE topic_id = 105; (this is a temporary lock while we fix this)
  3. Record this number decremented by 1 (the initial post is not a reply). We will call this $replies, for now.
  4. UPDATE phpbb_topics SET topic_status = 0, topic_replies = $replies WHERE topic_id = 105; (Replace $replies with one less than the total count. This makes the correction and unlocks the thread)
<center>Image
K9U | Dog House | Av rotation</center>

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Sun Nov 19, 2006 4:18 am

I like Richard's idea
pants jesus
DCS should've ended the comic a year or two ago.

Richard K Niner
Posts:4297
Joined:Wed Oct 20, 2004 5:08 pm
Location:On hiatus
Contact:

Postby Richard K Niner » Sun Nov 19, 2006 2:52 pm

On that note, I'll point out that 105 is the Word Association thread.
<center>Image
K9U | Dog House | Av rotation</center>

User avatar
The Donmeister
Posts:614
Joined:Sun Nov 19, 2006 10:19 am

Postby The Donmeister » Mon Dec 18, 2006 2:13 am

There's always the database repair solution: the reply counter is stored in phpbb_topics.topic_replies, so the process would be:
  1. UPDATE phpbb_topics SET topic_status = 1 WHERE topic_id = 105;
  2. SELECT COUNT(*) FROM phpbb_posts WHERE topic_id = 105; (this is a temporary lock while we fix this)
  3. Record this number decremented by 1 (the initial post is not a reply). We will call this $replies, for now.
  4. UPDATE phpbb_topics SET topic_status = 0, topic_replies = $replies WHERE topic_id = 105; (Replace $replies with one less than the total count. This makes the correction and unlocks the thread)
I'm getting said problem with word association, but I don't understand any of RKN's post.

Richard K Niner
Posts:4297
Joined:Wed Oct 20, 2004 5:08 pm
Location:On hiatus
Contact:

Postby Richard K Niner » Mon Dec 18, 2006 3:06 am

It's a bunch of SQL statements...
<center>Image
K9U | Dog House | Av rotation</center>

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Mon Dec 18, 2006 3:33 am

I got it :)

Jason, or one of the mods, want to fix that? I'm sure one of us would be glad too if you don't know how or don't have the time.
pants jesus
DCS should've ended the comic a year or two ago.

Zaaphod
Moderator (retired)
Posts:6319
Joined:Tue Oct 28, 2003 7:16 pm

Postby Zaaphod » Mon Dec 18, 2006 3:48 am

I think at the moment only Jason can fix it. We'll have to hassle him when he gets back from vacation. :D
Image
Made by Angela. :D

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Tue Dec 19, 2006 2:05 am

oh yeah...he is on vacation... I forgot :P
pants jesus
DCS should've ended the comic a year or two ago.

User avatar
The Donmeister
Posts:614
Joined:Sun Nov 19, 2006 10:19 am

Postby The Donmeister » Sat Dec 23, 2006 11:32 pm

I think at the moment only Jason can fix it. We'll have to hassle him when he gets back from vacation. :D
Bump!

User avatar
Dr. Doog
Posts:4979
Joined:Sat Nov 08, 2003 2:26 am
Location:North Carolina
Contact:

Postby Dr. Doog » Sun Dec 24, 2006 4:26 am

...is he back?
pants jesus
DCS should've ended the comic a year or two ago.

Zaaphod
Moderator (retired)
Posts:6319
Joined:Tue Oct 28, 2003 7:16 pm

Postby Zaaphod » Mon Dec 25, 2006 1:10 am

Not yet. Unless he sneaked in without telling anyone. :P
Image
Made by Angela. :D


Return to “The Site”

Who is online

Users browsing this forum: No registered users and 5 guests