Advertisement:

Author Topic: how to increase recent post list?  (Read 3441 times)

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,831
  • My posts are my own
    • BlushyFace | A spoopy and creppy site
how to increase recent post list?
« on: July 21, 2008, 03:57:21 PM »
Hi, does anyone know how to increase the recent post list?
http://www.engineeringserver.com/forum/recent.html

it shows only 10 posts but i want to it change it to 25. Thanks

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: how to increase recent post list?
« Reply #1 on: July 22, 2008, 08:53:01 AM »
Current Theme>Number of recent posts to display on board index: change this value from 10

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,831
  • My posts are my own
    • BlushyFace | A spoopy and creppy site
Re: how to increase recent post list?
« Reply #2 on: July 22, 2008, 10:22:10 AM »
Current Theme>Number of recent posts to display on board index: change this value from 10

I don't want to change the recent blogposts on the index but on the recent page instead.

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,939
  • Gender: Male
Re: how to increase recent post list?
« Reply #3 on: July 22, 2008, 02:15:14 PM »
This is more of a coding discussion than general support and I took a look at your site and obviously you made some changes to the default version of SMF.

The thread below shows you how to increase the posts displayed using SSI

http://www.simplemachines.org/community/index.php?topic=226053.0

Offline Bulakbol

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 5,220
  • Gender: Male
  • JohnyB
Re: how to increase recent post list?
« Reply #4 on: July 24, 2008, 12:45:18 AM »
Try this. Sources/Recent.php, look for
Quote
$context['page_index'] = constructPageIndex($scripturl . '?action=recent', $_REQUEST['start'], min(100, $modSettings['totalMessages']), 10, false);
and
Quote
LIMIT $_REQUEST[start], 10", __FILE__, __LINE__);

Change the 10 with 25. It might work. :)
Please do not PM me for support · My Mods and Theme · SMF Coding Guidelines · Modifications Approval Guidelines

Offline ArkServer

  • SMF Hero
  • ******
  • Posts: 1,831
  • My posts are my own
    • BlushyFace | A spoopy and creppy site
Re: how to increase recent post list?
« Reply #5 on: July 27, 2008, 02:34:54 PM »
Try this. Sources/Recent.php, look for
Quote
$context['page_index'] = constructPageIndex($scripturl . '?action=recent', $_REQUEST['start'], min(100, $modSettings['totalMessages']), 10, false);
and
Quote
LIMIT $_REQUEST[start], 10", __FILE__, __LINE__);

Change the 10 with 25. It might work. :)
Thanks, exactly what i was looking for  8) 8) 8)

Offline Dave En Velo

  • Semi-Newbie
  • *
  • Posts: 23
Re: how to increase recent post list?
« Reply #6 on: November 12, 2019, 12:32:47 PM »
This old post about changing the number of recent posts to display on board index, from 10, is exactly what I want to do. 

The fix shown to Sources/Recent.php suggests two coding changes.  Unfortunately these changes are for a version of SMF prior to 2.0.15 (my version).  The good news is that the first change still seems to be valid but the second is no longer there.  Can anyone tell me what the current second change is, or whether is is needed anymore?  Thanks

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: how to increase recent post list?
« Reply #7 on: November 12, 2019, 12:33:29 PM »
On the board index, it’s a configurable setting in the theme area where you set how many you want.
No good deed goes unpunished
All helpful urges should be circumvented

Offline Dave En Velo

  • Semi-Newbie
  • *
  • Posts: 23
Re: how to increase recent post list?
« Reply #8 on: November 12, 2019, 01:47:01 PM »
Thanks for the prompt response.  I have struggled to find the configurable setting you describe.  The nearest thing that fits is under Theme Settings,  Number of recent posts to display on board index:

I apologise but I think that my poor problem description of the original post has mislead you.  What I am trying to achieve is that when I click View the most recent posts on the forum on the board index I can see the messages 25/page and not 10/page (10 seems a hard coded default).

Of course I may have misunderstood completely and would be grateful for any guidance.

Offline Illori

  • Lead Support Specialist
  • SMF Legend
  • *
  • Posts: 52,863
Re: how to increase recent post list?
« Reply #9 on: November 12, 2019, 01:53:10 PM »
please open your own topic for your issue in the correct board. this users issue has been resolved and is a different version then what you are using today.

Offline Irisado

  • Una Luz Brillante en la Oscuridad
  • Doc Coordinator
  • SMF Super Hero
  • *
  • Posts: 10,895
  • Soñando debajo del arco iris
Re: how to increase recent post list?
« Reply #10 on: November 12, 2019, 04:10:10 PM »
Locked in accordance with the above.
Soñando con una playa donde brilla el sol, un arco iris ilumina el cielo, y el mar espejea iridescentemente