It looks like you're using an Ad Blocker.

Please white-list or disable AboveTopSecret.com in your ad-blocking tool.

Thank you.

 

Some features of ATS will be disabled while you continue to use an ad-blocker.

 

Attention Admins - Forwarding to posts

page: 1
0

log in

join
share:

posted on Sep, 2 2003 @ 05:03 PM
link   
I've noticed that in many cases I'm not forwarded to the last post. If I edit a post, or click the button next to the user name that's supposed to take me to the last post, it takes me to the beginning of the thread. This isn't the way it's supposed to work, is it?

[Edited on 4-9-2003 by Satyr]



posted on Sep, 2 2003 @ 07:41 PM
link   
Satyr

Yes, it does work that way.

William has explained it as a pagination issue - users can specify # of posts per page, and that affects the location of the last post somehow.

I suggested turning off that user flexibility in order to speed up the process of locating posts.

It's also an interesting phenomenon when doing undercover work, locating all of a unique user's posts... you are always directed to the start of the topic in which he or she has posted.




posted on Sep, 2 2003 @ 11:43 PM
link   
Yeah. It's tough to find posts in long threads. You're right. What's this user flexibility though? Something I'm not seeing in settings?



posted on Sep, 2 2003 @ 11:45 PM
link   
It is nothing whizbang, you can just reset the number of responses you see per page, and it is that flexibility that appears to make the link to the final post of a topic not feasible...



posted on Sep, 4 2003 @ 02:42 AM
link   
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]



posted on Sep, 4 2003 @ 04:19 AM
link   
DOH!!! I thought I might've figured it out, but realized XMB is a bit different than vB.
You probably just have a $variable missing somewhere. Whatever adds the page number to the line in that particular template.

&page=$page ?

[Edited on 4-9-2003 by Satyr]



posted on Sep, 4 2003 @ 06:49 AM
link   
"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!



posted on Sep, 4 2003 @ 08:04 AM
link   
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]



posted on Sep, 4 2003 @ 08:22 AM
link   
Yeah... there is a section for XMB hacks... but I've not used any public hacks, nor do I share ours... too much potential for hackability.


I'm also not using the final release of XMB 1.8 as the basis for this forum... so the exact code of the last post feature might not be complete.

But again, these are minor annoyances when compared to some of the performance problems I'm trying to address. The authors of XMB admit they never considered anything more than 200 posts a day for a discussion board.



posted on Sep, 4 2003 @ 08:46 AM
link   
It's not a bad board at all. They all have a few annoyances. I wish I knew php, so I could write my own hacks, or at least understand them better. Luckily, vB is very concerned with security, and there's always a crapload of people testing it.
Yeah, I did notice that there's an SP-1 update for v1.8, eh? I know what a pain updates can be if you have a lot of hacks, though. I usually use Araxis Merge when the dastardly deed must be done.
The reason I asked about gzip is because it's the single most helpful performance enhancement, but only on level one. Anything higher can hurt performance badly. Many people think, more compression, faster forum, but it just ain't so.
But if you write your own hacks, you probably know this. I could probably learn more from you!



posted on Sep, 4 2003 @ 09:01 AM
link   
Compressing the output is really only 10% of the battle, at best.

With the number of posts, and number of people looking at posts we have, the underlying forum code becomes the major problem. There are 12 queries and 4 cookie checks on each page load just to establish if your a member or guest, and what forums are active, and which are not.

Very sloppy... but each time I make adjustments... other related problems crop up.



posted on Sep, 4 2003 @ 09:32 AM
link   
Whoa! That is kinda heavy on the queries. I haven't even checked how many queries my forum uses lately, but speed isn't a problem yet. It's pretty low traffic so far, and I try to keep hacks that add more queries to a minimum. Speed is most important to my members. Do your cookies have a timeout? Why does it have to check so much? I think vB only does it once per session, and session is adjustable. 15 mins. by default. The only problem I see with that is, the Mark Forum Read indicators time out if you don't read the entire board fast enough. They also reset themselves sometimes.
It's sort of a sh*tty way to handle that feature, IMO, but at least it's light on the queries.
What would make the biggest difference is decreasing the size of avatars. The new background images probably aren't going to help either, unfortunately. I know people would probably scream bloody murder, but I've seen avatars alone kill performance on message boards. I limit mine to 65x65.

[Edited on 4-9-2003 by Satyr]



posted on Sep, 4 2003 @ 04:24 PM
link   
The reply redirect thing might work now... I think I found an easy way to do it.



posted on Sep, 4 2003 @ 04:26 PM
link   
I was entertained by skimming the last few instalments even after my programming knowledge fell well below the prerequisites for engaging in disciplined critique.




posted on Sep, 4 2003 @ 05:24 PM
link   
Cool!
I posted the last post thing at the XMB forum. One of their dudes is looking into it for us. Maybe he can tell ya what to check and make it easy.



posted on Sep, 4 2003 @ 11:17 PM
link   
So now when I post to a thread with multiple pages, I am not brought back to anything but a grey screen. Would that be because I prefer to view 50 posts per page as opposed to the default 25???




posted on Sep, 5 2003 @ 04:03 PM
link   
Here's what XMB Supporter of the Month had to say.


You could try upgrading to 1.8 SP1 - it's possible that would fix this with the new version's files - If you do upgrade you will have to add your hacks back into the files.

I also notice that even tho you are running 1.8 - you have no Super Administrators - just Administrators.

Did you upgrade from 1.6?
The upgrade should have changed all Administrators to Super Administators. And, at that time, did you replace all your files with the 1.8 files?


I'm guessing, but if you didn't replace viewthread.php when you upgraded (if you upgraded) that's probably the problem. Actually, I found a v1.6 board and it has the same problem, so yeah...although you upgraded, you may be operating with v1.6 files? It does seem to be a characteristic of v1.6.



posted on Sep, 5 2003 @ 04:31 PM
link   
I would guess that 40% of our code (or less) is actual original XMB code.

I've seen how they handle thread/page/post count in a more current version and it's awkward. My solution seems to be working... but there might be a couple bugs.

As for staff rights... my code assigns staff rights based on username and password combinations... not simply status assignments in the database... to easy to spoof.



posted on Sep, 5 2003 @ 06:48 PM
link   
Hmmm, I'm not sure how XMB handles that, but I know vB's passwords are all encrypted. I can't even read them, although I think there is a hack that can reveal them. I've never found a reason to need to know anyone's passwords. I do know there's probably(I won't say there is no one, since I'm sure there is some extremely good hacker somewhere that can) no one who could get my password, even if they hacked my server and accessed my database, which is also password protected.

It does get tricky to update files when you have alot of hacks. I've been there many times now.

The redirection after posting does appear to work fine. Nice work.



posted on Sep, 8 2003 @ 06:51 PM
link   
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]




top topics



 
0

log in

join