You need to make sure that the welcome panel templates are evaluated after the users online code is, otherwise the varaibles contain no data.
Instead of adding the code for the templates where it says to in the instructions for the second change add it after:
PHP Code:
$recordusers = $maxusers[0];
$recorddate = vbdate($dateformat,$maxusers[1]);
$recordtime = vbdate($timeformat,$maxusers[1]);
eval("\$loggedinusers = \"".gettemplate('forumhome_loggedinusers')."\";");
}
It should then show up correctly.