Thanks, that worked perfectly. You made a little mistake in your code for anybody that would like to use this. You did this:
PHP Code:
$welcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$welcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
} else
eval("\$welcomemessage = \"".gettemplate('forumhome_regmessage')."\";");
}
It should actually be:
PHP Code:
$welcomemessage='';
if ($bbuserinfo['userid']==0) {
eval("\$welcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
} else {
eval("\$welcomemessage = \"".gettemplate('forumhome_regmessage')."\";");
}
You forgot the { after else, otherwise it gives a parse error.
Thanks again