Here is the mod i did to accomplish this task.
IMPORTANT: be sure you save or download the original copy of the files you are about to edit, so if you mess up you can just replace the files back to original.
acp_profile.php (two edits in this file)
First Edit:
on approx line 328
after this code
Code: Select all
$profile_field = $this->type_collection[$field_type];
add this code
Code: Select all
/* begin custom mod */
/* this sets the php variable for the field name and cleans it */
$the_field_name = utf8_clean_string($field_row['field_name']);
/* end custom mod */
Second edit:
approx line 627
change this code
Code: Select all
'U_BACK' => $this->u_action)
);
to this (just remove the ) and );
Code: Select all
'U_BACK' => $this->u_action
Code: Select all
/* begin custom mod */
/* add template var */
/* i added the , and moved the ) and ); */
,
'THE_FIELD_NAME' => $the_field_name)
);
/* end custom mod */
save and close acp_profile.php
now for the html file
acp_profile.html (one edit)
approx line 149
after this code
Code: Select all
<!-- ELSEIF S_STEP_TWO -->
<fieldset>
<legend>{L_TITLE}
add this code (be sure you add this code before the closing </legend>
Code: Select all
<!-- begin custom mod -->
<!-- added code to show name of custom field on this page -->
<!-- added if edit code, text, and field identity name var -->
<!-- IF S_EDIT_MODE -->
for field name [{THE_FIELD_NAME}]
<!-- ENDIF -->
<!-- end custom mod -->
save and close acp_profile.html
go to general tab in acp and clear the cache.
Your changes should result in showing the field name