Is there a way to display the number of topics solved in the index page so that people can find out how many posts were there are how many were solved... Thanks
Please let me know.
mysql> select count(*) from phpbb_topics where topic_solved>0;$template->assign_vars(array(// Start of the total topics solved information on the index page
$sql = 'SELECT count(*) FROM '. TOPICS_TABLE . " WHERE topic_solved > 0";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$total_topics_solved = $row['count(*)'];
}
$db->sql_freeresult($result);
// End of the total topics solved information on the index page
'NEWEST USER' 'TOTAL_TOPICS_SOLVED' => sprintf($user->lang['TOTAL_TOPICS_SOLVED'], $total_topics_solved),));'TOTAL_TOPICS_SOLVED' => 'Total Topics Solved %s',{NEWEST_USER}• {TOTAL_TOPICS_SOLVED}ma_khan wrote:
- Code: Select all
// Start of the total topics solved information on the index page
$sql = 'SELECT count(*) FROM '. TOPICS_TABLE . " WHERE topic_solved > 0";
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
$total_topics_solved = $row['count(*)'];
}
$db->sql_freeresult($result);
// End of the total topics solved information on the index page
// Start of the total topics solved information on the index page
$sql = 'SELECT count(*) FROM '. TOPICS_TABLE . " WHERE topic_solved > 0";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$total_topics_solved = $row['count(*)'];
$db->sql_freeresult($result);
// End of the total topics solved information on the index pageTry %dma_khan wrote:
- Code: Select all
'TOTAL_TOPICS_SOLVED' => 'Total Topics Solved %s',
Users browsing this forum: No registered users and 1 guest