Неудается создать комментарии в Профиле пользователя (контент профилес)

Главные вкладки

Аватар пользователя iNFerNo iNFerNo 4 марта 2011 в 12:53

читал вот это
http://devit.ck.ua/node/65

<?php

  $node = NULL;
  $node_profile = $content_profile->get_variables('profile');
  if($node_profile)
    $node = &$node_profile['node'];
  // [ ... ]
  // This is the ready-for-print variable for the user profile data
  print $user_profile;
  // [ ... ]
  // Print this wherever you want to show the node_profile content
  print node_view($node, FALSE/*teaser*/, TRUE, TRUE);
  // [ ... ]
  // Put this where you want to show your comment block
  if ($node && function_exists('comment_render')){
    if( $node->comment)
    {
      print comment_render($node);
    }
  }

?>

может что-то уже изменилось

Комментарии

Аватар пользователя volocuga@drupal.org volocuga@drupal.org 4 марта 2011 в 13:54

"iNFerNo" wrote:
может что-то уже изменилось

У тебя -

"iNFerNo" wrote:
$node_profile = $content_profile->getvariables('profile');

В статье -

<?php

$node_profile 

$content_profile->get_variables('profile');

?>