I ment that the groups would be hard coded and have to be added/edited manually and not controlled from the admin area.

Ok, now in your editdisplay.php file find this:
SELECT U_Bio,U_Sort,U_Display,U_View,U_PostsPer,U_TextCols,U_TextRows,U_StyleSheet,U_Post_Format,U_Preview,U_PictureView,U_PicturePosts,U_Language,U_FlatPosts,U_TimeOffset,U_FrontPage,U_ActiveThread,U_StartPage,U_ShowSigs,U_Template
and change it to this:
SELECT U_Bio,U_Sort,U_Display,U_View,U_PostsPer,U_TextCols,U_TextRows,U_StyleSheet,U_Post_Format,U_Preview,U_PictureView,U_PicturePosts,U_Language,U_FlatPosts,U_TimeOffset,U_FrontPage,U_ActiveThread,U_StartPage,U_ShowSigs,U_Groups
Find this:
list($Bio,$Sort,$Display,$View,$PostsPer,$TextCols,$TextRows,$StyleSheet,$Post_Format,$Preview,$PictureView,$PicturePost,$chosenlanguage,$FlatPosts,$TimeOffset,$FrontPage,$activethreads,$startpage,$sigview) = $dbh -> fetch_array($sth);
and change it to this:
list($Bio,$Sort,$Display,$View,$PostsPer,$TextCols,$TextRows,$StyleSheet,$Post_Format,$Preview,$PictureView,$PicturePost,$chosenlanguage,$FlatPosts,$TimeOffset,$FrontPage,$activethreads,$startpage,$sigview,$ugroups) = $dbh -> fetch_array($sth);
Find this:
if (!$Display){
$html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat);
}
and change it to this:
if (!$Display){
$html -> not_right("{$ubbt_lang['NO_PROF']} '$Username'",$Cat);
}
$mygroups[0]['groups'] = "-3-5-7-8-";
$mygroups[0]['description'] = "change to red group";
$mygroups[1]['groups'] = "-3-6-8-9-";
$mygroups[1]['description'] = "change to blue group";
$mygroups[2]['groups'] = "-3-5-10-11-";
$mygroups[2]['description'] = "change to green group";
$groupoptions = "";
$gotgroup = 0;
for ($i=0; $i<sizeof($mygroups); $i++) {
if ($ugroups == $mygroups[$i]['groups']) {
$groupoptions .= "<option value="{$mygroups[$i]['groups']}" selected="selected">{$mygroups[$i]['description']}</option>";
$gotgroup = 1;
}
else {
$groupoptions .= "<option value="{$mygroups[$i]['groups']}">{$mygroups[$i]['description']}</option>";
}
}
if ($gotgroup) {
$groupselection = "<select name="mygroups">$groupoptions</select>";
}
else {
$groupselection = "<select name="mygroups"><optioin value="$ugroups" selected="selected">don't change</option>$groupoptions</select>";
}
In your editdisplay.tmpl file in your templates/default directory find this:
<br />
<br />
{$ubbt_lang['PROF_STYLE']}<br />
and change it to this:
<br />
<br />
My groups:
<br />
{$groupselection}
<br />
<br />
{$ubbt_lang['PROF_STYLE']}<br />
Now in your changedisplay.php file find this:
// -----------------------
// Format the query words
$ubbt_language_q = addslashes($chosenlanguage);
and change it to this:
// -----------------------
// Format the query words
$mygroups_q = addslashes($mygroups);
$ubbt_language_q = addslashes($chosenlanguage);
Find this:
// --------------------------
// Update the User's profile
$query = "
UPDATE {$config['tbprefix']}Users
SET U_Sort = '$sort_order_q',
and change it to this:
// --------------------------
// Update the User's profile
$query = "
UPDATE {$config['tbprefix']}Users
SET U_Sort = '$sort_order_q',
U_Groups = '$mygroups_q',
Ok I think that will do it. You'll have to test and find out though.

Just modify the groups and descriptions accordingly for your site.