if ($bbuserinfo[usergroupid]==X) { eval ("\$disableselect = \"".gettemplate("template1")."\";"); } else { $disableselect = ''; }