Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 1737

phpBB Ideas • Re: Custom Profile Field Idea - Type Specific Options Page Needs To Display Field Name

$
0
0
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

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 */    
That should prevent the variable undefined warning from occuring.

Statistics: Posted by durangod — Mon Dec 02, 2024 12:00 pm



Viewing all articles
Browse latest Browse all 1737

Trending Articles