Page Index Toggle Pages: 1
Topic Tools
Normal Topic Direct link to 25 most recent posts on YaBB 2.5 (Read 889 times)
DemonJuice
YaBB Newcomer
*
Offline



Posts: 1

None
Direct link to 25 most recent posts on YaBB 2.5
Sep 27th, 2010 at 5:54pm
Post Tools
Hi, user of a board recently upgraded to 2.5 here.

Previously, one only had to add ;display=25 to the end of the URL for viewing the most recent posts in order to get 25 displayed. However, that no longer works, not even on this message board. Now, one must go to the home page for the board and choose 25 from the drop down list which is inconvenient.

Was that feature disabled? If not, what is the URL to use for the 25 most recent posts?

Thank you very much.
  
Back to top
 
IP Logged
 
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: Direct link to 25 most recent posts on YaBB 2.5
Reply #1 - Sep 27th, 2010 at 11:31pm
Post Tools
Hi,

It's actually in the Codex here:

http://www.yabbforum.com/codex/YaBB.pl?num=1243009900/0#0

But there seems to be a slight error with it, so try this:

In Sources/Recent.pl find:

Code (Perl)
Select All
sub RecentPosts {
    &spam_protection;

    my $display = $FORM{'display'} ||= 10;
    if ($display < 0) { $display = 5; } 


And add the highlighted:

Code (Perl)
Select All
sub RecentPosts {
    &spam_protection;

    my $display = $FORM{'display'} ||= $INFO{'display'} ||= 10;
    if ($display < 0) { $display = 5; } 


I've only tested quickly, but it seems to do the trick...
« Last Edit: Sep 27th, 2010 at 11:32pm by Derek Barnstorm »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools
 
  « Board Index ‹ Board  ^Top