I wanted to update this because i found an issue with my mod.
My mod works if the field is already created or if you fill out the info on the first page of creation (basic), but i did not account for the situation if someone goes directly to the "profile type specific options" page without entering the data on the first page. (note... this should not happen if done in the right order but since someone might try it i needed to null the value of the variable name).
The issue is that if that happens my mod variable is not defined and it shows a php system warning on the page. So i just set the custom mod variable $the_field_name to '' if we are creating a new field.
in acp_profile.php
look for this code (approx line 355
after the open else bracket add this code
That should prevent the variable undefined warning from occuring.
My mod works if the field is already created or if you fill out the info on the first page of creation (basic), but i did not account for the situation if someone goes directly to the "profile type specific options" page without entering the data on the first page. (note... this should not happen if done in the right order but since someone might try it i needed to null the value of the variable name).
The issue is that if that happens my mod variable is not defined and it shows a php system warning on the page. So i just set the custom mod variable $the_field_name to '' if we are creating a new field.
in acp_profile.php
look for this code (approx line 355
Code:
else{ // We are adding a new field, define basic params
after the open else bracket add this code
Code:
/* begin dave mod *//* we are adding a new field so there is no field name to display yet */$the_field_name = '';/* end dave mod */
Statistics: Posted by durangod — Mon Dec 02, 2024 12:00 pm