PDA

View Full Version : [fixed/changed]Show all x posts on one page doesn't work.


s.molinari
Sat 16th Aug '03, 5:36pm
Hi,

A user on our board found this. On the print version (printthread.php) of a thread there is a link to show all posts from that thread on one page. When you click it, the page reloads but the page is still split up into different pages. I've changed the call to sanitize_perpage to the following and it seems to work:// get perpage
if ($bbuserinfo['maxposts'] > 0 and $perpage <= $bbuserinfo['maxposts']) {
sanitize_perpage($perpage, $bbuserinfo['maxposts'], $bbuserinfo['maxposts']);
} else {
sanitize_perpage($perpage, $perpage, $maxposts);
}

Hope I could help.:)

Scott

Joe Page
Sat 16th Aug '03, 6:01pm
Cool, thanks for the fix :)

Mike Sullivan
Thu 6th Nov '03, 2:09pm
This will now work similiarly to vB3 -- you can't view all posts on one page anymore (this has the potential of doing bad things to a server). However, the link that currently links to that becomes a link to view the maximum amount of posts on one page at a time.

You can do that with this link:
<smallfont><a href="printthread.php?s=$session[sessionhash]&amp;threadid=$threadid&amp;perpage=$maxposts">Show $maxposts posts from this thread on one page</a></smallfont> What you want to change occurs twice in "printthread".