0 Members and 1 Guest are viewing this topic.
If you click on the last page, you will see a list of pages at the bottom of the current page (if there are too many pages to list them all, it will list two preceding and two succeeding the current page). You can then directly select the page preceding the current page.If there are 35 pages in a topic, it is fairly easy to get to page 2, or to get to page 34, but it is more problematic to get to page 17.
each page has 25 posts
Quote from: paul.fr on 10/04/2007 13:17:18each page has 25 postsI have to say that I had not counted the posts, but are you saying that the number of posts per page does not take into account the length of each post. I suppose it is not too easy to calculate the length of each post ahead of time, but the length of posts can vary from one liners, to some covering several hundred lines (as you found out with some of my posts ), as well as having some large images.
i would think the code would just have a simple, posts per page variable. in old BASIC a simple "if posts >25 then page = page+1" or something like that
Quote from: paul.fr on 10/04/2007 13:39:07i would think the code would just have a simple, posts per page variable. in old BASIC a simple "if posts >25 then page = page+1" or something like thatI suspect it is all done using the LIMIT clause in SQL - e.g.:SELECT ... WHERE topic = ... LIMIT page * 25, 25;Alternatively:SELECT ... WHERE message >= message_id AND topic = ... LIMIT 25;