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
add this code
Second edit:
approx line 627
change this code
to this (just remove the ) and );
now add this after new code abovesave and close acp_profile.php
now for the html file
acp_profile.html (one edit)
approx line 149
after this code
add this code (be sure you add this code before the closing </legend>the closing </legend> should be after that code
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
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:
$profile_field = $this->type_collection[$field_type];
add this code
Code:
/* 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:
'U_BACK'=> $this->u_action));
to this (just remove the ) and );
Code:
'U_BACK'=> $this->u_action
Code:
/* begin custom mod *//* add template var *//* i added the , and moved the ) and ); */ , 'THE_FIELD_NAME' => $the_field_name));/* end custom mod */
now for the html file
acp_profile.html (one edit)
approx line 149
after this code
Code:
<!-- ELSEIF S_STEP_TWO --><fieldset> <legend>{L_TITLE}
add this code (be sure you add this code before the closing </legend>
Code:
<!-- 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
Statistics: Posted by durangod — Sun Mar 03, 2024 8:38 am