Вот пхп файл:// GET PROFILE COMMENTS$comment = new se_comment(\'profile\', \'user_id\', $owner->user_info[\'user_id\']);$total_comments = $comment->comment_total();Вот файл шаблона: {* BEGIN COMMENTS TAB *} {if $allowed_to_comment != 0 || $total_comments != 0} {* SHOW COMMENT TAB *} <div id=\'profile_comments\'{if $v != \'comments\'} style=\'display: none;\'{/if}> {* COMMENTS *} <div id=\"profile_{$owner->user_info.user_id}_postcomment\"></div> <div id=\"profile_{$owner->user_info.user_id}_comments\" style=\'margin-left: auto; margin-right: auto;\'></div> {lang_javascript ids=39,155,175,182,183,184,185,187,784,787,829,830,831,832,833,834,835,854,856,891,1025,1026,1032,1034,1071} {literal} <style type=\'text/css\'> div.comment_headline { font-size: 11px; margin-bottom: 7px; font-weight: bold; padding: 0px; border: none; background: none; color: #666666; } </style> {/literal} <script type=\"text/javascript\"> SocialEngine.ProfileComments = new SocialEngineAPI.Comments({ldelim} \'canComment\' : {if $allowed_to_comment}true{else}false{/if}, \'commentHTML\' : \'{$setting.setting_comment_html|replace:\",\":\", \"}\', \'commentCode\' : {if $setting.setting_comment_code}true{else}false{/if}, \'type\' : \'profile\', \'typeIdentifier\' : \'user_id\', \'typeID\' : {$owner->user_info.user_id}, \'typeTab\' : \'users\', \'typeCol\' : \'user\', \'initialTotal\' : {$total_comments|default:0}, \'paginate\' : true, \'cpp\' : 10, \'commentLinks\' : {literal}{\'reply\' : true, \'walltowall\' : true}{/literal} {rdelim}); SocialEngine.RegisterModule(SocialEngine.ProfileComments); // Backwards function addComment(is_error, comment_body, comment_date) {ldelim} SocialEngine.ProfileComments.addComment(is_error, comment_body, comment_date); {rdelim} function getComments(direction) {ldelim} SocialEngine.ProfileComments.getComments(direction); {rdelim} </script> </div> {/if} {* END COMMENTS *}Вставлял в пхп файл и в первой строчке функции возникала эта ошибка))