Кстать вот Вам ... забыл выложыть .
Если у Вас комментрии не добавляються к Авто ))
То Вот заходим в templates/avto.tpl
Ищем это :
PHP:
{* START COMMENTS *}
<div id="avto_{$avto->avto_info.avto_id}_postcomment"></div>
<div id="avto_{$avto->avto_info.avto_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}
<script type="text/javascript">
SocialEngine.AvtoComments = 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' : 'avto',
'typeIdentifier' : 'avto_id',
'typeID' : {$avto->avto_info.avto_id},
'typeTab' : 'avtos',
'typeCol' : 'avto',
'initialTotal' : {$total_comments|default:0},
'paginate' : true,
'cpp' : 10,
'object_owner' : 'avto',
'object_owner_id' : '{$avto->avto_info.avto_id}',
'ajaxURL' : SocialEngine.URL.url_base + 'misc_js.php'
{rdelim});
SocialEngine.RegisterModule(SocialEngine.AvtoComments);
// Backwards
function addComment(is_error, comment_body, comment_date)
{ldelim}
SocialEngine.AvtoComments.addComment(is_error, comment_body, comment_date);
{rdelim}
function getComments(direction)
{ldelim}
SocialEngine.AvtoComments.getComments(direction);
{rdelim}
</script>
{* END COMMENTS *}
и меняем его на это !!:
PHP:
{* START COMMENTS *}
<div id="avto_{$avto->avto_info.avto_id}_postcomment"></div>
<div id="avto_{$avto->avto_info.avto_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}
<script type="text/javascript">
SocialEngine.AvtoComments = 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' : 'avto',
'typeIdentifier' : 'avto_id',
'typeID' : {$avto->avto_info.avto_id},
'typeTab' : 'avtos',
'typeCol' : 'avto',
'initialTotal' : {$total_comments|default:0},
'paginate' : true,
'cpp' : 10,
'object_owner' : 'avto',
'object_owner_id' : '{$avto->avto_info.avto_id}',
'ajaxURL' : SocialEngine.URL.url_base + 'misc_js.php'
{rdelim});
SocialEngine.RegisterModule(SocialEngine.AvtoComments);
// Backwards
function addComment(is_error, comment_body, comment_date)
{ldelim}
SocialEngine.AvtoComments.addComment(is_error, comment_body, comment_date);
{rdelim}
function getComments(direction)
{ldelim}
SocialEngine.AvtoComments.getComments(direction);
{rdelim}
</script>
{* END COMMENTS *}
Теперь всё))) ...
Если кто врубиться и поймет чего оно не работало прошу не ругаться ))))
Замена символов подвела зараза )))))))))))))))
typeTab => tyavtoab