This is just a snippet of my 'edittheme.php' but I do wonder if this is correct....
// --------------------------------------------------------------
// If we can't open the directory, use the current theme settings
$html -> open_admin_table();
echo "<tr><td class=darktable> </td><td class=darktable>{$ubbt_lang['STYLEFILE']}</td><td class=darktable>{$ubbt_lang['STYLENAME']}</td></tr>";
for ( $i=0; $i<$stylesize;$i++) {
$styles[$i] = ereg_replace("\.css","",$styles[$i]);
$checked = "";
if (isset($stylenames[$styles[$i]])) {
$checked = "CHECKED";
$stylenames[$styles[$i]] = ereg_replace(""","\"",$stylenames[$styles[$i]]);
}
else {
$stylenames[$styles[$i]] = "";
}
echo "<tr><td class=darktable><input type=checkbox class ="formboxes" name="stylename$styles[$i]" $checked></td>";
echo "<td class=darktable>$styles[$i]</td>";
echo "<td class=darktable><input type=text name="styledesc$styles[$i]" class="formboxes" value="". $stylenames[$styles[$i]] .""></td></tr>";
}
echo "</table></td></tr></table>";
echo "
<p {$new['max_graemlins']}>
{$ubbt_lang['MAX_GREM']}<br>
<input type=text size=5 name=max_graemlins value="{$theme['max_graemlins']}" class=formboxes>
<p {$new['cellspacing']}>
{$ubbt_lang['CELLSPACING']}<br>
<input type=text size=5 name=cellspacing value={$theme['cellspacing']} class=formboxes>
<p {$new['admincolor']}>
{$ubbt_lang['ADMINCOLOR']}<br>
<input type=text name=admincolor value="{$theme['admincolor']}" class=formboxes>
The echo statment that I've highlighted in bold...should that be there?