Like so
Code:
switch ($bbuserinfo['usergroupid']) {
case 0:
eval("\$unregwelcomemessage = \"".gettemplate('forumhome_unregmessage')."\";");
break;
case 3:
eval("\$nonactivatedmessage = \"".gettemplate('awaitconfmessage')."\";");
break;
case 4:
eval("\$activatedwaitingapproval = \"".gettemplate('awtngadmapprvl')."\";");
}
//edit: whooops, had userid instead of usergroupid