I should note that simply commenting out the lines will throw off a function though - if you have a debugger like Firebug enabled you will notice the following error:
me.password has no properties
<<joomla>>/component/option,com_comprofiler/Itemid,11/task,userDetails/
Line 243
A better way of handling this would be to hide the table rows with CSS - eg add a class with a property of display: none;
[code:1] // JL Hack
//Password
$return .= "<tr class='hideme'>\n";
$return .= " <td class=\"titleCell\">"._UE_PASS.":</td>\n";
$return .= " <td class=\"fieldCell\"><input class=\"inputbox\" type=\"password\" size=\"40\" id=\"password\" name=\"password\" value=\"\" autocomplete=\"off\" />";
$return .= getFieldIcons($ui, false, false, sprintf( _VALID_AZ09, _UE_PASS, 6 ), _UE_PASS.":"«»);
$return .= "</td>\n</tr>\n";
//Verify password
$return .= "<tr class='hideme'>\n";
$return .= " <td class=\"titleCell\">"._UE_VPASS.":</td>\n";
$return .= " <td class=\"fieldCell\"><input class=\"inputbox\" type=\"password\" size=\"40\" id=\"verifyPass\" name=\"verifyPass\" autocomplete=\"off\" />";
$return .= getFieldIcons($ui, false, false);
$return .= "</td>\n</tr>\n";
//[/code:1]
And in your template's CSS you would add:
[code:1].hideme {
display:none;
}[/code:1]
This could also be done by adding style="display:none;" to the tr's instead of the class and style sheet addition.
Post edited by: joshua.lyon, at: 2007/12/06 18:28