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/Embed
Type: Discussion • Score: 1 • Views: 225 • Replies: 1

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

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
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
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » Please help with this code...
Copyright © 2009 Horizontal Verticals :: Page generated in 0.34 seconds on 11/22/2009 at 04:50:53 Top End