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:
12
top.php
12
top.php
@@ -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);
|
||||
?>
|
Reference in New Issue
Block a user