I am trying to modify this site map mod to show only two hundred links per page with an option to click to the next page. Can anyone help me with this code?
Code:<?php
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, PAGE_SITEMAP);
init_userprefs($userdata);
// set page title
$page_title = 'SITEMAP';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'sitemap.tpl')
);
$template->pparse('body');
?>
<?php
echo "<h2>phpBB Forums</h2>";
$result = mysql_query("SELECT forum_id, forum_name, forum_desc FROM phpbb_forums ORDER BY forum_name");
while($row= mysql_fetch_assoc($result))
{
echo "<a href='viewforum.php?f=".$row["forum_id"]."'>".$row["forum_name"]."</a><br>";
}
echo "<h2>phpBB Topics</h2>";
$result = mysql_query("SELECT topic_title, topic_id FROM phpbb_topics ORDER BY topic_title");
while($row= mysql_fetch_assoc($result))
{
echo "<a href='viewtopic.php?t=".$row["topic_id"]."'>".$row["topic_title"]."</a><br>";
}
?>
<font size="1"><p align=center><a href="http://www.acoolsite.info">SiteMap</a></font>
<?php
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>