Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
I've gone through the process of creating a user-profile.tpl.php page, loaded the account id and pulled in the profile from there, but it doesn't load comments. Does anyone have any idea how I can pull the full node in to the account homepage?
I'd much appreciate any direction. Thanks guys!
Kris
Comments
Comment #1
rougekris CreditAttribution: rougekris commentedHey guys,
I managed to fix this myself, after digging around in the $account variable on user-profile.tpl.php. I thought I'd at least help anyone else with the same issue.
Using the node at http://drupal.org/node/1724124, I embedded the profile using this:
print $account->content['content_profile']['content_profile_member_profile']['#children'];
I then displayed the comments below in a view.
You need to rename content_profile_member_profile to content_profile_[CONTENT PROFILE CONTENT TYPE]. Good luck!
Kris