Re: How to make “about me” kinda profile field?
The action that triggers the ‘no linking’ workaround doesn’t exist in RC2. I made it easier to specify what fields you do not want linked. I haven’t tested this but it should work.
function my_no_links(){
remove_filter( ‘bp_the_profile_field_value’,’xprofile_filter_link_profile_data’, 2 );
add_filter( ‘bp_the_profile_field_value’,’my_no_links_filter’, 2, 3 );
}
add_action(‘plugins_loaded’, ‘my_no_links’);
function my_no_links_filter($field_value, $field_type = ‘textbox’, $field_id){
$no_links = array(1,5,99);
if ( in_array((int)$field_id, $no_links))
return $field_value;
else
return xprofile_filter_link_profile_data($field_value, $field_type);
}
This is also up on http://buddypress.pastebin.com/f461fc21e
Put the field ids that you do not want to have automatically linked in the $no_links array.