Hi there,
After reading a lot about this, I simply can´t get my customized user-profile template to show anything I want.
It only show the profile picture and the username
I´m using an Omega subtheme.
I´ve copied and pasted the default user-profile.tpl.php file, deleted everything and added these two lines, hoping that one of them would work:
<?php
print drupal_render(field_view_field('profile2', $profile['main'], 'field_nombrecompleto1'));
print $field_profile_nombre_completo['value'];
?>
The second line refers to the original core profile field, and the first one refers to the imported field (I´ve imported using the migrate module in D6, before I´ve upgraded to D7).
None of the fields gets printed out.
I´ve added this at the top of the template:
<?php
print "<pre>";
$vars = get_defined_vars();
print_r($vars);
print "</pre>";
?>
And nothing happend. So I´ve added that code to the top of my page.tpl file, and it appeared the whole list of variables.
At the very top it prints:
[template_file] => sites/all/themes/liga/templates/page.tpl.php
And at some points it actually recognizes the (core profile) field:
[content] => Array
(
[content] => Array
(