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 ;)
#866 posted by necros on 2006/03/30 16:18:55
maybe it's ^^^ his fault the forums have been slow then! hehehehee...
Hmm...
#867 posted by bal on 2006/03/31 00:22:11
Yeah, ever since you've added this paging thing, the forums have become really fast for me...
Yep...
#868 posted by JPL on 2006/03/31 00:51:02
Exactly the same here... Maybe you corrected a small bug indirectly... Anyway: it's cool how it works fine now !
So...
#869 posted by Kell on 2006/03/31 04:36:00
tell me agian why using generic php-bb-nuke-thingy-code that every other web forum uses is a bad idea and coding Func from scratch makes the forum so much better? It's not that I actually believe a word of it, it's just that it's a rainy afternoon and I could do with a laugh.
Hehe
#870 posted by bal on 2006/03/31 04:51:46
Seems that now that the forum is faster, the spammers are having less trouble doing their thing... =D
Jesus...
#871 posted by necros on 2006/03/31 08:38:11
could we just lock down posting to registered users for now anyway? this is getting out of hand :(
Actually
#872 posted by R.P.G. on 2006/03/31 09:27:24
Considering the amount of spam most people get in their inbox, this is pretty tame.
I'd Like
#873 posted by bambuz on 2006/03/31 18:03:00
to have at least 50 posts per page. :) They are usually very short on this board.
Thanks metl for fixing func, it now works pretty well!
Test
#874 posted by metlslime on 2006/04/04 04:02:41
testes...
Another Test...
#875 posted by metlslime on 2006/04/04 04:03:15
maybe i should have a test thread for this shit...
One More...
#876 posted by metlslime on 2006/04/04 04:04:10
bleh
Urgh
#877 posted by metlslime on 2006/04/04 04:05:11
why my code suck?
Yay
#878 posted by metlslime on 2006/04/04 04:23:45
okay, some thread paging changes:
* the URL behavior is now compatible with the old way. meaning, there's no automatic cap on the number of posts. start= and end= are required to limit the range of posts displayed.
* the title of the thread on the forum page will now link to the "last 25" posts.
* logged-in users now have an "all" link that really does give you all posts, just like the old days.
* logged-out users just see the thread title (links to the last 25 posts) and a post count (not a link.) This might not be final.
* if you post to a thread and you're not paged back, you will see the same post range plus your new post, like the old days. If you were paged back, you will just see your new post.
* eliminated the "viewing all X posts." message. If there's no page navigation UI, that means you're viewing all posts.
|