In the origional index.php in your forums directory copy the code from line 138-211 (thats the lines the code were for an unhacked file at the time the hack was made).
Line 138 should have the following code on it:
PHP Code:
$activeusers = "";
And line 211 should have:
PHP Code:
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
So you need to copy all the code between those lines.