Ah, I know why its not working for you.. There's a couple more steps that I forgot to mention.
###### In member.php find:
Code:
// ############################### start modify Timeslip Data #######################
if ($action=="edittimeslip") {
$templatesused = 'timeslips_customfields,usercpnav,modifytimeslip';
include("./global.php");
// do modify profile form
if ($bbuserinfo[userid]==0 or $bbuserinfo[vpban]==0 or $permissions['canmodifyprofile']==0) {
show_nopermission();
}
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
AND profilefieldid IN (50,51,52,53,54,55,56,57,58,59,60,61,62,63)
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
eval("\$customfields .= \"".gettemplate("timeslips_customfields")."\";");
}
if ($allowhtml) {
$htmlonoff=$ontext;
} else {
$htmlonoff=$offtext;
}
if ($allowbbcode) {
$bbcodeonoff=$ontext;
} else {
$bbcodeonoff=$offtext;
}
if ($allowbbimagecode) {
$imgcodeonoff=$ontext;
} else {
$imgcodeonoff=$offtext;
}
if ($allowsmilies) {
$smiliesonoff=$ontext;
} else {
$smiliesonoff=$offtext;
}
// draw cp nav bar
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{firstaltcolor}";
$cpmenu[2]="class=\"fjsel\" selected";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
eval("dooutput(\"".gettemplate("modifytimeslip")."\");");
}
###### Replace it with:
Code:
// ############################### start modify Timeslip Data #######################
if ($action=="edittimeslip") {
$templatesused = 'timeslips_customfields,usercpnav,modifytimeslip';
include("./global.php");
// do modify profile form
if ($bbuserinfo[userid]==0 or $bbuserinfo[vpban]==0 or $permissions['canmodifyprofile']==0) {
show_nopermission();
}
// get extra profile fields
$customfields = '';
$profilefields=$DB_site->query("SELECT *
FROM profilefield
WHERE editable = 1
AND profilefieldid IN (50,51,52,53,54,55,56,57,58,59,60,61,62,63)
ORDER BY displayorder");
while ($profilefield=$DB_site->fetch_array($profilefields)) {
$profilefieldname="field$profilefield[profilefieldid]";
if ($bgcolor=="{firstaltcolor}") {
$bgcolor="{secondaltcolor}";
} else {
$bgcolor="{firstaltcolor}";
}
// new options
$TheField="";
$optionlines = explode(',', $profilefield[options]);
$option_bit=$optionlines[0];
if ($profilefield[type]==1) {
// radio
while ($option_bit) {
$option_bit=trim($option_bit);
if ($option_bit == $bbuserinfo[$profilefieldname]) { $LocOn = "checked"; } else { $LocOn = ""; }
$TheField .= "<input type=\"radio\" name=\"$profilefieldname\" value=\"$option_bit\" $LocOn> $option_bit ";
$option_bit=next($optionlines);
}
} elseif ($profilefield[type]==2) {
// select
$TheField = "<select size=\"$profilefield[size]\" name=\"$profilefieldname\">";
while ($option_bit) {
$option_bit=trim($option_bit);
if ($option_bit == $bbuserinfo[$profilefieldname]) { $LocOn = "selected"; } else { $LocOn = ""; }
$TheField .= "<option value=\"$option_bit\" $LocOn>$option_bit</option>";
$option_bit=next($optionlines);
}
$TheField .= "</select>";
} elseif ($profilefield[type]==3) {
// textarea
$bbuserinfo[$profilefieldname]=htmlspecialchars($bbuserinfo[$profilefieldname] );
$TheField = "<textarea name=\"$profilefieldname\" rows=\"6\" cols=\"40\" wrap=\"physical\">$bbuserinfo[$profilefieldname]</textarea>";
} else {
$TheField="<input type=\"text\" class=\"bginput\" name=\"$profilefieldname\" value=\"$bbuserinfo[$profilefieldname]\" size=\"$profilefield[size]\" maxlength=\"$profilefield[maxlength]\">";
}
if ($profilefield[required] == 1) {
$TheField .= " <b><font size=1>* Required</font></b>";
}
// new options
eval("\$customfields .= \"".gettemplate("timeslips_customfields")."\";");
}
if ($allowhtml) {
$htmlonoff=$ontext;
} else {
$htmlonoff=$offtext;
}
if ($allowbbcode) {
$bbcodeonoff=$ontext;
} else {
$bbcodeonoff=$offtext;
}
if ($allowbbimagecode) {
$imgcodeonoff=$ontext;
} else {
$imgcodeonoff=$offtext;
}
if ($allowsmilies) {
$smiliesonoff=$ontext;
} else {
$smiliesonoff=$offtext;
}
// draw cp nav bar
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{firstaltcolor}";
$cpmenu[2]="class=\"fjsel\" selected";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
eval("dooutput(\"".gettemplate("modifytimeslip")."\");");
}
###### Replace the entire contents of your timeslips_customfields template with this:
Code:
<tr>
<td bgcolor="$bgcolor"><normalfont><b>$profilefield[title]:</b></normalfont><br>
<smallfont>$profilefield[description]</smallfont></td>
<td bgcolor="$bgcolor"><normalfont>$TheField</normalfont></td>
</tr>
That should do it.