Implementing the total topics/posts/last post in forums table thing

git-svn-id: file:///svn/phpbb/trunk@20 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson 2001-02-22 21:40:02 +00:00
parent 4317bbe9be
commit acfee8f3f1
3 changed files with 34 additions and 29 deletions

View file

@ -69,6 +69,9 @@ $dbname = "mydbname";
$dbuser = "imanidiot"; $dbuser = "imanidiot";
$dbpasswd = "imanidiotspassword"; $dbpasswd = "imanidiotspassword";
// Date format (needs to go into DB)
$date_format = "M d, Y h:i:s a";
// DB table config // DB table config
$banlist_table = "phpbb_banlist"; $banlist_table = "phpbb_banlist";
$categories_table = "phpbb_categories"; $categories_table = "phpbb_categories";

View file

@ -71,9 +71,10 @@ if($total_rows)
for($y = 0; $y < $total_forums; $y++) for($y = 0; $y < $total_forums; $y++)
{ {
$folder_image = "<img src=\"images/folder.gif\">"; $folder_image = "<img src=\"images/folder.gif\">";
$posts = 150; $posts = $forum_rows[$y]["forum_posts"];
$topics = 35; $topics = $forum_rows[$y]["forum_topics"];
$last_post = "05-10-2000 12:34:33pm<br>by theFinn"; $last_post = $forum_rows[$y]["forum_last_post"];
$last_post = date($date_format, $last_post);
$moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">theFinn</a>"; $moderators = "<a href=\"profile.$phpEx?mode=viewprofile&user_id=1\">theFinn</a>";
if($row_color == "#DDDDDD") if($row_color == "#DDDDDD")
{ {

View file

@ -39,5 +39,6 @@ $template->set_var(array("PHPBB_VERSION" => "2.0-alpha",
"ADMIN_LINK" => $admin_link)); "ADMIN_LINK" => $admin_link));
$template->pparse("output", "overall_footer"); $template->pparse("output", "overall_footer");
// Close our DB connection.
$db->close();
?> ?>