1
   

Please help with this code...

 
 
Reply Wed 18 May, 2005 04:02 pm
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);

?>
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 697 • Replies: 1
No top replies

 
rimian
 
  1  
Reply Fri 8 Jul, 2005 06:25 am
it's all green
0 Replies
 
 

Related Topics

Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » Please help with this code...
Copyright © 2025 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 01/18/2025 at 10:52:44