1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 17:44:37 +02:00

Update forum_t to forum_thread in SQL

This commit is contained in:
Moc
2013-04-15 12:44:56 +02:00
parent 384cb63c07
commit 96e7f8e777
10 changed files with 31 additions and 48 deletions

12
top.php
View File

@@ -122,9 +122,9 @@ if ($action == 'active')
$text .= "</table>\n</div>";
$ftotal = $sql->db_Count('forum_t', '(*)', 'WHERE `thread_parent` = 0');
$ftotal = $sql->db_Count('forum_thread', '(*)', 'WHERE `thread_parent` = 0');
$parms = "{$ftotal},{$view},{$from},".e_SELF.'?[FROM].active.forum.'.$view;
$text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</div>';
$text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</div>';
$ns->tablerender(LAN_7, $text, 'nfp');
/*
require_once (e_HANDLER.'np_class.php');
@@ -195,7 +195,7 @@ if ($action == 'top')
{
$ftotal = $sql->db_Count('user', '(*)', 'WHERE `user_forums` > 0');
$parms = "{$ftotal},{$view},{$from},".e_SELF.'?[FROM].top.forum.'.$view;
$text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</div>';
$text .= "<div class='nextprev'>".$tp->parseTemplate("{NEXTPREV={$parms}}").'</div>';
}
$ns->tablerender(TOP_LAN_0, $text);
/*
@@ -255,8 +255,8 @@ if ($action == 'top')
$text .= "</table>\n</div>";
$ns->tablerender(TOP_LAN_3, $text);
}
if ($subaction == 'chat' || $subaction == 'all')
if ($subaction == 'chat' || $subaction == 'all')
{
$top_forum_posters = $sql->db_Select("user", "*", "`user_chats` > 0 ORDER BY user_chats DESC LIMIT 0, 10");
$text = "
@@ -305,5 +305,5 @@ if ($action == 'top')
$ns->tablerender(TOP_LAN_5, $text);
}
}
require_once(FOOTERF);
require_once(FOOTERF);
?>