SMF Support > SMF 2.0.x Support

Number of topics index.php?action=recent

(1/1)

NetHunter:
Hey Comm!
Dont know how to limited the number of topics shown under /index.php?action=recent. Overlooked or really not available? Need someone to start me up.  :) Thanks in advance!

Arantor:
Not available as an option for performance reasons.

NetHunter:
Thanks for answer Arantor. On my mind i had a reduction (50 instead 100) of listing. Found in Recent.php:

--- Code: ---Line 153:
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;c=' . implode(',', $_REQUEST['c']), $_REQUEST['start'], min(100, $total_cat_posts), 10, false);
Line 195:
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;boards=' . implode(',', $_REQUEST['boards']), $_REQUEST['start'], min(100, $total_posts), 10, false);
Line 222:
$context['page_index'] = constructPageIndex($scripturl . '?action=recent;board=' . $board . '.%1$d', $_REQUEST['start'], min(100, $total_posts), 10, true);
Line 233:
$context['page_index'] = constructPageIndex($scripturl . '?action=recent', $_REQUEST['start'], min(100, $modSettings['totalMessages']), 10, false);

--- End code ---

Dont know is it enough allready to change the 100 to 50?

Arantor:
That's the thing, it isn't enough at all. The data is still handled the same way, all you're doing is fudging the navigation shown to users. You can still quite happily ask for more information (and bots will do just that)

NetHunter:
Hmmm...seems to be very complicated. Dont want intervene the code to deeply. Do we forget the subject.  ;) Thanks for clarification @ Arantor.

Navigation

[0] Message Index

Go to full version