Ah, I seem to have misinterpreted you slightly. Below are some edits for the 'Board News Block' that will give it the same 'Pages' feature that SimplePortal articles have. All these edits are for your '/sources/SPortal1-1' file. If you are using SMF 2 then I'll have to change the edits slightly.
Find this code:
$context['page_index'] = constructPageIndex($scripturl . '?sa=articles', $_REQUEST['start'], $totalArticles, $modSettings['articleperpage']);
$context['start'] = $_REQUEST['start'];
Replace with this code:
$context['start'] = !empty($_REQUEST['start']) && $_REQUEST['sa'] != 'boardnews' ? $_REQUEST['start'] : 0;
$context['page_index'] = constructPageIndex($scripturl . '?sa=articles', $context['start'], $totalArticles, $modSettings['articleperpage']);
Find this code:
// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
echo $txt['smf_news_error2'];
return false;
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
Replace with this code:
// Make sure guests can see this board.
$request = db_query("
SELECT ID_BOARD
FROM {$db_prefix}boards
WHERE " . ($board === null ? '' : "ID_BOARD = $board
AND ") . "FIND_IN_SET(-1, memberGroups)
LIMIT 1", __FILE__, __LINE__);
if (mysql_num_rows($request) == 0)
{
echo $txt['smf_news_error2'];
return false;
}
list ($board) = mysql_fetch_row($request);
mysql_free_result($request);
// Get the total number of topics.
$request = db_query("
SELECT COUNT(*)
FROM {$db_prefix}topics
" . ($board === null ? '' : "WHERE ID_BOARD = $board"), __FILE__, __LINE__);
list ($num_topics) = mysql_fetch_row($request);
mysql_free_result($request);
$num_pages = 5;
$start = !empty($_REQUEST['sa']) && $_REQUEST['sa'] == 'boardnews' ? $_REQUEST['start'] : 0;
Find this code:
}
function sp_smfShop()
{
Replace with this code:
echo $txt['sp-articlesPages'], ': ', constructPageIndex($scripturl . '?sa=boardnews', $start, min($num_pages * $limit, $num_topics), $limit);
}
function sp_smfShop()
{
You can change the '5' from the "$num_pages = 5;" code, if you want to change the max number of pages shown. The number of topics shown per page is take from the 'Topics to display' setting in the admin pannel.