Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: nguirado - maaliskuu 15, 2009, 02:44:34 AP

Otsikko: How do you change the number of items in a feed?
Kirjoitti: nguirado - maaliskuu 15, 2009, 02:44:34 AP
I think the default is 5. I need more items.
Otsikko: Re: How do you change the number of items in a feed?
Kirjoitti: Kermit - maaliskuu 15, 2009, 07:47:50 AP
Sources/News.php

Koodi (find) [Valitse]

// Default to latest 5.  No more than 255, please.
$_GET['limit'] = empty($_GET['limit']) || (int) $_GET['limit'] < 1 ? 5 : min((int) $_GET['limit'], 255);


The 5 there is up to you