ok, found a solution, dont know if its the best solution, problaly not, as i said i dont know much php
display the image html formated (<p><img src=”…)
xprofile_get_field_data('name of the field', get_the_author_meta('ID'))
display image url only
function function_name(){
$replace = array("<p>", "<img src=\"", "\" alt=\"\" />", "</p>");
$cover = xprofile_get_field_data('IMAGE FIELD NAME', get_the_author_meta('ID'));
return str_replace($replace, "", $cover);
}
by the way, great plugin, thanks 🙂
it seems to not work when the div id or class have spaces