Attention Admins - Forwarding to posts, page 1
Pages:
ATS Members have flagged this thread 0 times


reply posted on 4-9-2003 @ 02:42 AM by Satyr
I've just never seen a forum behave like that before. I'd be looking for a fix. I'm sure it's only a matter of changing a bit of code to ref the page and/or post number.

For example, this should go directly to post 177998 on page five of this thread. (post id numbers don't match the post numbers next to the date on the posts themselves)

www.abovetopsecret.com...

And this should go to the last post in the thread. (Assuming someone hasn't posted after I posted this)

www.abovetopsecret.com...

It seems to work, if the line is right. Does this work for you? I don't think it's inserting the right code when it doesn't work. Maybe just a syntax error, or something missing.

When I click the button on the homepage, which should take me to that page and post, it throws this in the address bar instead. Page number "6" is missing in this url. This is something that can be fixed. However, I'd have to know about, or study XMB to figure it out.

www.abovetopsecret.com...

Actually, now that I look at it more...that's all it is. It's just missing the page number. Even if there's only one page, there should still be a "&page=1#pid183038".

www.abovetopsecret.com...

If you guys need help with this, I'd suggest asking at the XMB support forum. I just browsed through their board, and I'm sure someone there could figure this one out pretty quick.

[Edited on 4-9-2003 by Satyr]


reply posted on 4-9-2003 @ 06:49 AM by William
"XMB Support" ... he he he ... that's funny.

The author of most of what is XMB is a snot-nosed 17-year old elitist PHP programmer (uh... right) from Norway. His attitude is, if you don't like how it works, use something else.

The problem a forum like this has is the long legacy of content is valuable. Our nearly 200,000 posts attracts new members and makes us look like a content gold mine to Google. Converting that giant legacy to a better board is not impossible... but hard.

Then, add all our extras into the mix. While many of the extras aren't hard to replicate in another system... there are dozens of small bits of extra security and performance enhancements that would be lost. Not to mention that for all it's functional flaws, I still think XMB is the board that offers the most creative (design) flexibility.

As for the problems... you're looking at "post id" (pid) and trying to convert that to "post number" which is incorrect. There are many posts that have been deleted... the the pid field is a unique auto-increment field that doesn't reflect "the number of posts".

The problem with taking you to your last post is more complex that it looks. Page location is one problem (as mentioned) and XMB is the other. At the point in the code where you post or edit is completed, there have been no queries and calculations to predict where in the sequence of posts, your edit or your post appear... this would have to be redone... which isn't hard, but takes time (and CPU cycles to execute). And how many times, in a busy thread, do posts appear while you're making your post? Add another variable to the mix.

There's a short list of nagging problems I'm working on, but this is near the bottom of the list. A much more important problem is performance enhancements. XMB does not use any type of built-in efficient session handling features of PHP 4.x, so every page load includes a significant number of datbase queries to confirm you are who you are... in addition to loading your personal settings and forum settings. Normally, not a problem for a small board... but for us... huge. If you know anything about PHP session and application variable handling, we should talk!


reply posted on 4-9-2003 @ 08:04 AM by Satyr
I realize that post number and pid are two separate things entirely. I mentioned that above. Maybe I didn't word that correctly. That's what I was pointing out though...that they're not the same. I also took the liberty of checking a few other XMB v1.8 forums, and their last post buttons all seem to work correctly, so it has to be something missing either in your viewthread.php or the template. I'm not familiar with XMB, but I thought I might be able to help. If support is as limited as you say, it may be tough to figure out, but I think I'm on the right track. The only thing missing is the page number, which should be assigned by a variable either in the template or the php file itself. If it's like vB, it's in the template. Anyway, I'll be glad to help if I can. I'm sure you're correct about the edit and post queries, but as I said, I checked a few other XMB forums, and the last post buttons on the homepage do work correctly.
As for performance, what level of gzip comp are you using? Does XMB have a level control, or is that all done in Apache?
As far as PHP session and application variables, I know a little, but I'm still just a hack. vB's sessions are all cookie based. Kind of an annoyance when it comes to timeouts, IMO. I learn most when things go wrong. I'm impressed with all the hacks you have here. Do they have an XMB hacks forum too? I have a feeling it's very similar to vB, just with different template, php file names, and queries.

[Edited on 4-9-2003 by Satyr]



reply posted on 8-9-2003 @ 06:51 PM by Satyr
Well, best I can get out of them, is that you'll have to replace veiwthread.php, or go through and compare the two and find the differences. I've already looked at them, though. If you've never added hacks to that particular file, it'd be easy. Actually, I only see "$lastpost" twice in this file, so it should be easy to find the difference. Dnld this file and try it, if you want. This is v1.8, without the update.

deleted a long time ago now

Only if you want to. I'm not trying to be a pest or anything....just trying to help out. If you don't care to mess with it, that's fine too. I know how it is.

[edit]

Ok, now there's a guy who says, if I attach a copy of your viewthread.php file, he'll take a look at it. If you'd like to do this, you can email it to me.

[Edited on 9-9-2003 by Satyr]

[Edited on 11-7-2003 by Satyr]
Pages:     ^^TOP^^