Pagination 将每页分页更改为无限滚动

Pagination 将每页分页更改为无限滚动,pagination,infinite-scroll,smf-forum,simple-machines-forum,Pagination,Infinite Scroll,Smf Forum,Simple Machines Forum,我目前使用简单机器论坛(SMF)进行每页分页 我想把它改成无限卷轴() 但是我不知道怎么 这就是SMF创建页面的方式 Display.php $context['page_index'] = constructPageIndex($scripturl . '?topic=' . $topic . '.%1$d', $_REQUEST['start'], $context['total_visible_posts'], $context['messages_per_page'], true); $

我目前使用简单机器论坛(SMF)进行每页分页 我想把它改成无限卷轴() 但是我不知道怎么

这就是SMF创建页面的方式

Display.php

$context['page_index'] = constructPageIndex($scripturl . '?topic=' . $topic . '.%1$d', $_REQUEST['start'], $context['total_visible_posts'], $context['messages_per_page'], true);
$context['start'] = $_REQUEST['start'];

// This is information about which page is current, and which page we're on - in case you don't like the constructed page index. (again, wireles..)
$context['page_info'] = array(
    'current_page' => $_REQUEST['start'] / $context['messages_per_page'] + 1,
    'num_pages' => floor(($context['total_visible_posts'] - 1) / $context['messages_per_page']) + 1,
); 
MessageIndex.template.php

<div class="pagesection">
    ', template_button_strip($context['normal_buttons'], 'right'), '
    ', $context['menu_separator'], '
    <div class="pagelinks floatleft">
        <a href="#main_content_section" class="button" id="bot">', $txt['go_up'], '</a>
        ', $context['page_index'], '
    </div>
</div>';

,模板按钮条($context['normal\u buttons','right'),'
“,$context['menu_separator'],”
“,$context['page_index'],”
';