Re: forums last posts (More Anomolies found)
I managed to fix these problems. To fix the "last forum posts" problem, I commented out
//if ($ranking) {
// for ($i = 0; $i < count($ranking["data"]); $i++) {
// $name = $ranking["data"][$i]["name"];
// $name = str_replace($replyprefix, "", $name);
// $ranking["data"][$i]["name"] = $name;
// }
//}
Then, to get rid of the strange 11th item showing up in the lists, I changed the template file for the module. I changed the line
{section name=ix loop=$modForumsLastPosts}
to
{section name=ix loop=10}
Inelegant, but it works now.