Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to make “about me” kinda profile field?


takuya
Participant

@takuya

<br />
function my_fix_linking(){<br />
remove_filter( \\\\\\\'bp_the_profile_field_value\\\\\\\',<br />
\\\\\\\'xprofile_filter_link_profile_data\\\\\\\', 2 );<br />
add_filter( \\\\\\\'bp_the_profile_field_value\\\\\\\',<br />
\\\\\\\'my_filter_link_profile_data\\\\\\\', 2, 3 );<br />
}<br />
add_action(\\\\\\\'bp_member_theme_functions\\\\\\\', \\\\\\\'my_fix_linking\\\\\\\');</p>
<p>function my_filter_link_profile_data($field_value,<br />
$field_type = \\\\\\\'textbox\\\\\\\', $field_id){<br />
if ( \\\\\\\'textbox\\\\\\\' == $field_type)<br />
return $field_value;<br />
else xprofile_filter_link_profile_data($field_value, $field_type);<br />
}<br />

If above code is used, textareas will not show any contents although the data is still available on the database. If you modify the above code to only disable textareas, then textboxes will disappear.

BBpress is modifying the code too much!!!!!!!!!!!!!!!!!!!!!!!!

Skip to toolbar