#845 posted by Abraham on 2006/03/27 00:59:49
isn't it possible to just delete the entire posts (number #823-#8xx) instead of only their contents? or does the db-code not allow it?
Argh
#846 posted by metlslime on 2006/03/27 01:12:24
okay, i just banned my first IP on func.
If i delete the posts entirely, that would probably screw up the code that assumes the posts are sequential and stuff... i'm not sure exactly, but when i first wrote the DB i decided i didn't want to delete posts.
Now, what i will likely do is censor the posts so that you can't see them. The moderator tools to do that don't exist yet, though.
Persistent Little Bugger
#847 posted by on 2006/03/28 01:34:36
ERROR
#848 posted by R.P.G. on 2006/03/29 13:42:00
There was a SQL error.
RPG:
#849 posted by metlslime on 2006/03/29 20:10:15
i've intentionally made the error messages obscure to prevent people from using them to attempt to hack the board. I should probably set up something to log the more descriptive error so that I can see what's happening, but it wasn't something that I thought happened very often or consistently.
Well
#850 posted by R.P.G. on 2006/03/29 21:03:15
That was the first time I had seen that in a long time. It was also the first time a board error ate one of my posts.
Test
#851 posted by metlslime on 2006/03/30 02:31:56
test
Test
#852 posted by metlslime on 2006/03/30 02:32:49
another test
Okay,
#853 posted by metlslime on 2006/03/30 02:33:51
another test!
Akk
#854 posted by metlslime on 2006/03/30 02:34:29
last test?
Fifth Time's A Charm?
#855 posted by metlslime on 2006/03/30 02:36:41
please?
Oh Nice
#856 posted by czg on 2006/03/30 02:54:55
But why does it go backwards in increments of 50 and forwards in 5? Is this some crazy UI Zen you have thought up, meltshine?
Oh Now It's 25
#857 posted by czg on 2006/03/30 02:58:40
Okay
#858 posted by metlslime on 2006/03/30 03:03:01
I seem to have gotten thread paging working in its most basic form. By default, links to a thread will show the first 25 posts (instead of all posts.) You can still see all posts by editing the "start" and "end" variables in the URL. If you post to a thread regardless of what page you are viewing, it will bump you forward to show the most recent 25 posts, with your post at the bottom.
- Number of posts per page will eventually be a user preference.
- I might eventually add "first 25" and "last 25" links as well.
- I'm not sure if this thread navigation needs to go both at the top and bottom of the post list or just one place, or what.
- I might need to change the wording of the links on the forum page.
CZG:
#859 posted by metlslime on 2006/03/30 03:07:39
When there are less than 25 next or previous posts, it displays the number of actual next or previous posts. So there were only 5 next posts in that case.
The 50 was because I was playing around. 25 will be the default for now, while I work on getting a user preference for it.
Weee
#860 posted by bal on 2006/03/30 03:15:50
Very good addition metl, first/last would be a nice addition yeah.
And maybe add a little black line above the links, to separate them from the last post. =)
Hmm
#861 posted by aguirRe on 2006/03/30 04:47:50
I'd prefer to keep the same "load entire thread" vs "last 25" as now and use the paging only for the latter. At least I'd like a separate link to get the entire thread.
Most threads are either relatively short ones (no problem loading entire thread) or very long ones (very few would probably want to page through it all from the beginning).
Location
#862 posted by R.P.G. on 2006/03/30 06:56:34
I'd like to see the Next/Previous 25 links at the bottom, seperated by a black dividing line like Bal said.
Aguire:
#863 posted by necros on 2006/03/30 09:35:26
just modify the link at the top where it says "start" and "end", go to the end of the thread, then set "start" to 0, and that will load the whole thread.
Hmm...
#864 posted by metlslime on 2006/03/30 10:29:23
I'm undecided on whether to have a link to load the entire thread or to force people to edit the URL. One of my goals was to remove "load entire thread" as a default or easy choice, becuase I think it's a bigger DB hit. But I'll think about it.
Necros
#865 posted by aguirRe on 2006/03/30 13:23:48
I know how to do it, but as this is probably one of my most frequent forum activities, it'd be very cumbersome to have to edit many links I click.
Btw, the current "All xx" links (which is what I want) don't seem to work; they still give the paged beginning of each thread. I hope it's because metl is working on it ;)
|