I want to output the results of a query to my boardstats, but I'm struggling.
I've added the following to index.php, above the $boardstats chunk:
Then I added ${countpositive} to the index_stats template.
The var_dump is printing the correct information, but the template isn't getting parsed correctly.
I've added the following to index.php, above the $boardstats chunk:
$query = $db->query("SELECT COUNT(uid) as count FROM " . TABLE_PREFIX . "users WHERE usergroup = 8");
$count = $db->fetch_field($query, "count");
echo("<pre>");
var_dump($count);
echo("</pre>");
eval('$count = "'.$templates->get('countpositive').'";');
Then I added ${countpositive} to the index_stats template.
The var_dump is printing the correct information, but the template isn't getting parsed correctly.