Quote:
Originally Posted by plateau
i guess what u want is to exclude some forums from being calculated, and the current hack does not support this requirement.
what u need to do is to find out that part of code in php, and in the SQL try to exclude the those forums that u dont wanna be included in the statistic.
e.g.
search ......... where forumid != 1..............
hope the concept helps.
|
I write small code:
PHP Code:
//List all forum isn't active & child
$childlist = $db->query_first("SELECT childlist FROM " . TABLE_PREFIX . " forum WHERE displayorder='0' ");
if($childlist['childlist'])
{
$excludedforums = $excludedforums . ',' . $childlist['childlist'];
}
but query_first "Executes a data-reading SQL query, then returns an array of the data from the first row from the result set". Now I want returns an array of the data from the all row from the result set. How to ? I don't know about mysql & vBulletin.
THank !