mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
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:
parent
4317bbe9be
commit
acfee8f3f1
3 changed files with 34 additions and 29 deletions
|
@ -69,6 +69,9 @@ $dbname = "mydbname";
|
|||
$dbuser = "imanidiot";
|
||||
$dbpasswd = "imanidiotspassword";
|
||||
|
||||
// Date format (needs to go into DB)
|
||||
$date_format = "M d, Y h:i:s a";
|
||||
|
||||
// DB table config
|
||||
$banlist_table = "phpbb_banlist";
|
||||
$categories_table = "phpbb_categories";
|
||||
|
|
|
@ -71,9 +71,10 @@ if($total_rows)
|
|||
for($y = 0; $y < $total_forums; $y++)
|
||||
{
|
||||
$folder_image = "<img src=\"images/folder.gif\">";
|
||||
$posts = 150;
|
||||
$topics = 35;
|
||||
$last_post = "05-10-2000 12:34:33pm<br>by theFinn";
|
||||
$posts = $forum_rows[$y]["forum_posts"];
|
||||
$topics = $forum_rows[$y]["forum_topics"];
|
||||
$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>";
|
||||
if($row_color == "#DDDDDD")
|
||||
{
|
||||
|
|
|
@ -39,5 +39,6 @@ $template->set_var(array("PHPBB_VERSION" => "2.0-alpha",
|
|||
"ADMIN_LINK" => $admin_link));
|
||||
$template->pparse("output", "overall_footer");
|
||||
|
||||
|
||||
// Close our DB connection.
|
||||
$db->close();
|
||||
?>
|
||||
|
|
Loading…
Add table
Reference in a new issue