Regarding your logincode, what you post is confusing, but I'm sure it's to do with your the "} else {" bit.
Make sure you add
PHP Code:
eval("\$newposts = \"".gettemplate('forumhome_todayposts')."\";");
eval("\$logincode = \"".gettemplate('forumhome_logincode')."\";");
Underneath:
PHP Code:
eval("\$timezone = \"".gettemplate('timezone')."\";");
Because you have an "else" somewhere, you need to eval the templates in 2 places.