Posts: 2,894
Threads: 59
Joined: Jun 2010
I've realized that there's quite a stumbling block with the pagination.
How I want it to work is so that the replies are counted as normal. For example, if it's configured for 5 comments per page, then 1 comment with 4 replies would mean the next comment is on page 2.
But the way that the comments and replies are output makes this really difficult to achieve. That's because for each comment the script outputs all of its replies, so there's no way to know how to paginate before that's done.
At the moment I have it working so that only the comments are counted when it comes to pagination. This means that any page can have an endless amount of replies.
What are your thoughts about this?
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
What if the comment has more replies? Should the next page start with the comment and then the replies, or just the replies?
As soon as I get that info, I'll be able to fix that easily.
And explaining how the pagination works will help too, but I can figure that out myself.
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
I think it's okay for a page to start with a reply to a comment from the previous page. So to answer your question, just the replies.
That would be a massive help if you were to fix it because it's been bugging me for days.
I'll post a comment sometime today explaining the pagination.
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
I've sorted out the pagination, so it's OK. It will be slightly complicated but pretty easy, so expect something in an hour or two if nothing comes up.
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
Okay great!
Have
you completed
the interview?
Posts: 2,894
Threads: 59
Joined: Jun 2010
What's the latest with this? Do you have a solution?
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
I have everything that I need to finish it. I just need to change the implementation of the replies. If you want it now, then you'll have to do with a goto in the code, which I doubt that you would
. I didn't have time to work on it much because some things came up, but I'll be finished soon. How's progress on the css demo page?
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
That's cool. I appreciate it's not a simple change. Just wanted to check it was still in progress. Take your time.
I've been a little busy too so haven't yet got around to the css demo page.
Have
you completed
the interview?
Posts: 535
Threads: 31
Joined: Jul 2010
Yesterday, I had almost everything done. I only had to finish one more thing, but then my computer crashed, and everything that I worked on was lost
I'll have to redo a lot of it again now.
I'm giving you three guesses...
Posts: 2,894
Threads: 59
Joined: Jun 2010
Really? Ah no. I hope you can remember it all
Have
you completed
the interview?