I've nearly finished what I'm doing with the block code. Even one page should show as Pages: [1] but I haven't got the page number to display yet.
[code]    global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder">
<tr><td class="titlebg"><strong>Recent topics</strong></td></tr></table><table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder"><tr><td class="catbg">These are our most recent topics</td></tr></table>';
echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-bottom: 3px;margin-top: 3px;">
    <tr>
        <td align="left" class="catbg" width="100%" height="35">
            <table cellpadding="3" cellspacing="0" width="100%">
                <tr>
                    <td>
                        ', $txt[139], ': ', $context['page_index'];
    // Show a "go down" link?
    if (!empty($modSettings['topbottomEnable']))
        echo $context['menu_separator'], '<a href="#bot">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/go_down.gif" alt="' . $txt['topbottom5'] . '" border="0" align="top" />' : $txt['topbottom5'], '[/url]';
    echo '
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<a name="top">[/url]
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="tborder"><tr><td class="titlebg">Subject</td><td class="titlebg">Started By</td><td class="titlebg">Last Post</td></tr>';
    $what=ssi_recentTopics('8', NULL, 'array');
    foreach ($what as $topic)
    {
        echo '
                <tr>
                    <td class="windowbg" valign="middle">
                        ', $topic['link'];
        // Is this topic new? (assuming they are logged in!)
        if (!$topic['new'] && $context['user']['is_logged'])
            echo '
                        <a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['newtime'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" />[/url]';
        echo '
                    </td>
                    <td class="windowbg2" valign="middle" width="20%">
                        ', $topic['poster']['link'], '
                    </td>
                    <td class="windowbg2" valign="middle" width="35%">';
        if ($settings['images_url'] != $settings['theme_url'] . '/images' || file_exists($settings['theme_dir'] . '/images/icons/last_post.gif'))
            echo '
                    <a href="', $topic['href'], '"><img src="', $settings['images_url'], '/icons/last_post.gif" alt="', $txt[111], '" title="', $txt[111], '" border="0" style="float: right;" />[/url]';
        echo '
                        <span class="smalltext">
                            ', $topic['time'], '
                        </span>
                    </td>
                </tr>';
    }
    echo '
            </table>
    <a name="lastPost">[/url]
            <table width="100%" cellpadding="3" cellspacing="0" border="0" class="tborder" style="margin-top: 1ex;">
    <tr>
 Ãâ€Å