Author Topic: Topics not showing up in board view  (Read 3640 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Topics not showing up in board view
« on: September 29, 2013, 06:45:23 pm »
For those of you with access to Private Matters: http://www.omnimaga.org/index.php?board=192.150 and subsequent pages don't show any topics, even though it's listed as the 4th page out of 11 ???




Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Topics not showing up in board view
« Reply #1 on: September 29, 2013, 07:12:21 pm »
For those of you with access to Private Matters: http://www.omnimaga.org/index.php?board=192.150 and subsequent pages don't show any topics, even though it's listed as the 4th page out of 11 ???
I'll look into it sometime. You might want to log it here: http://ourl.ca/issue
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Topics not showing up in board view
« Reply #2 on: September 29, 2013, 07:39:31 pm »
For those of you with access to Private Matters: http://www.omnimaga.org/index.php?board=192.150 and subsequent pages don't show any topics, even though it's listed as the 4th page out of 11 ???

I think this is related to the messed up board postcounts. This happens in almost every sub-forum. Notice also how certain topics shows on multiple pages.

IIRC it had something to do with the new server or database setup not supporting negative topic IDs, but I could be wrong.
« Last Edit: September 29, 2013, 07:39:56 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Topics not showing up in board view
« Reply #3 on: September 29, 2013, 08:51:58 pm »
For those of you with access to Private Matters: http://www.omnimaga.org/index.php?board=192.150 and subsequent pages don't show any topics, even though it's listed as the 4th page out of 11 ???

I think this is related to the messed up board postcounts. This happens in almost every sub-forum. Notice also how certain topics shows on multiple pages.

IIRC it had something to do with the new server or database setup not supporting negative topic IDs, but I could be wrong.
Yes, I know. I'll deal with this in due course.

EDIT: it does seems to be an issue with negative IDs. I just pulled a report of all the topics on the board. There are a lot less then 11 pages worth. There are also 4 topics that have negative IDs. I'll have to sort out this negative ID thing quickly...

EDIT2: Ok, so the lowest topic ID is -2597 and the highest one currently is 17084 (when I ran the script). I think I'm going to figure out a way to catch any reference to a negative ID and increment it to match wherever I increment the topic ID to. I'll do a freeze when I do and increment all topic ID's that are negative by 2597+(the current highest ID) and then any links pointing to a negative ID will be redirected to the new page.
« Last Edit: September 29, 2013, 09:14:42 pm by Eeems »
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Topics not showing up in board view
« Reply #4 on: September 29, 2013, 09:21:53 pm »
Aren't negative post IDs causing problems too or is it just because of the topic IDs?

Also why not incrementing by +100000 so that the redirect script can also work on all 17084 topics with positive IDs? Else with +2597 increment, redirecting would cause overlapping to occur .

EDIT: Actually it would be a +2598 increment, not 2597, to avoid having a topic with the ID #0.
« Last Edit: September 29, 2013, 09:23:24 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Topics not showing up in board view
« Reply #5 on: September 29, 2013, 09:23:32 pm »
Aren't negative post IDs causing problems too or is it just because of the topic IDs?

Also why not incrementing by +100000 so that the redirect script can also work on all 17084 topics with positive IDs (by redirecting, for example, topic #5000 to topic #105000, rather than #7597, which might already exist)? Else with +2597 increment, redirecting would cause overlapping to occur.
Any negative ID is causing the issue. I'm not going to redirect every single topic, only any reference to a negative ID. That way the old ID's don't have to change. I'll also see if I can sort topics by date instead of ID.
/e

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Topics not showing up in board view
« Reply #6 on: September 29, 2013, 09:28:11 pm »
Oh ok so just the old IDs would change? Keep in mind that to sort by date you'll most likely have to write a SMF mod yourself (since modifying the forum code directly can prevent installing official security patches). I asked for such mod before, but the people weren't cooperative and kept arguing that SMF sorted by date, even if it's not the case.

That said, it is entirely possible that SMF 2.0 does it by default, but I could be wrong. You might have to rewrite the mod for 2.0 when the upgrade happens.
« Last Edit: September 29, 2013, 09:28:51 pm by DJ Omnimaga »

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6268
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: Topics not showing up in board view
« Reply #7 on: September 29, 2013, 10:01:12 pm »
Oh ok so just the old IDs would change? Keep in mind that to sort by date you'll most likely have to write a SMF mod yourself (since modifying the forum code directly can prevent installing official security patches). I asked for such mod before, but the people weren't cooperative and kept arguing that SMF sorted by date, even if it's not the case.

That said, it is entirely possible that SMF 2.0 does it by default, but I could be wrong. You might have to rewrite the mod for 2.0 when the upgrade happens.
If I modified the code, I'd modify security patches as well. SMF does sort by date, as long as you don't start playing with forum IDs. If you start playing with IDs, then they are no longer in chronological order.
/e