I managed to get it working .. with a minor hitch however.
I modified "includes/functions_forumlist.php" as below.
The problem I now have is for all of the childeren of forumid #40 I have to assign them display orders in order for them to become random. If they all have a display order of "1" then they list in order of the DB tables. Is it possible to get this to work without having to put incrementing display orders in for each of the childeren forums??
ORIGINAL CODE
Code:
// do some sorting (instead of sorting with MySQL and causing a filesort)
foreach($iforumcache AS $parentid => $devnull)
{
ksort($iforumcache["$parentid"]); // sort by display order
}
ksort($iforumcache); // sort by parentid (not actually sure if this is necessary)
NEW CODE
Code:
// do some sorting (instead of sorting with MySQL and causing a filesort)
foreach($iforumcache AS $parentid => $devnull)
{
if ($parentid == 40) {
srand ((float)microtime()*1000000);
shuffle($iforumcache["$parentid"]);
} else {
ksort($iforumcache["$parentid"]); // sort by display order
}
}
ksort($iforumcache); // sort by parentid (not actually sure if this is necessary)