I want to change the customfield 1 input from text to radiobutton.
Gender select: male (m) or female (f)
But it doesn't work. The server get works and works .... no answere anymore!
editbasic.inc.php
start row: 351
// Handle Custom fields 1 - 5 :)
for ($i = 1; $i <= 5; $i++) {
$key = 'CUSTOM_FIELD_' . $i;
$x = ${$key};
if ($config[$key]) {
if ($i=1)
{
$markiertM = "";
$markiertF = "";
if ($x == "m") {$markiertM = "checked=\"checked\"";}
if ($x == "f") {$markiertF = "checked=\"checked\"";}
${$key} = "
<label for=\"{$key}\">{$config[$key]}</label>
<br />
{$ubbt_lang['MALE']} <input type=\"radio\" name=\"{$key}\" id=\"GENDER_M\" value=\"m\" {$markiertM} class=\"form-radio\" /><br />
{$ubbt_lang['FEMALE']} <input type=\"radio\" name=\"{$key}\" id=\"GENDER_F\" value=\"f\" {$markiertF} class=\"form-radio\" /><br /><br />
";
}
else {
${$key} = "
<label for=\"{$key}\">{$config[$key]}</label>
<br />
<input type=\"text\" name=\"{$key}\" id=\"{$key}\" value=\"{$x}\" class=\"form-input\" /><br /><br />
";
}
} else {
${$key} = "
<input type=\"hidden\" name=\"{$key}\" id=\"{$key}\" value=\"{$x}\" class=\"form-input\" />
";
}
}