{* ================================================================================ *} {* ========================== Список комментариев ================================= *} {* ================================================================================ *} {if $comments_count} {math equation="x+1" x=$cid assign="next"} <div name="c{$comment.id}"></div> {if $comment.level < $cfg.max_level-1} <div style="margin-left:{math equation="x*35" x=$comment.level}px;"> {else} <div style="margin-left:{math equation="(x-1)*35" x=$cfg.max_level}px;"> {/if} <div class="cmm_entry"> <ul class="cmm_title"> {if $comment.is_profile} <li><a href="{profile_url login=$comment.author.login}" class="cmm_avatar">{$comment.user_image}</a></li> <li class="cmmauth"> {if !$comment.is_profile} {$comment.author} {if $is_admin}{$comment.ip}{/if} {else} </li> <li class="cmmauth"><a class="cmm_author" href="{profile_url login=$comment.author.login}">{$comment.author.nickname}</a> {if $is_admin}{$comment.ip}{/if}</li> <li class="cmmdate">{$comment.fpubdate}</li> <li class="cmmanchor"><a class="cmm_anchor" href="#c{$comment.id}" title="{$LANG.LINK_TO_COMMENT}">#</a></li> {/if} {if !$is_user || $comment.is_voted} <li class="cmmvotes">{$comment.votes}</li> {else} <li class="cmm_votes" id="votes{$comment.id}"> <div>{$comment.votes}</div> <div><a href="javascript:void(0);" onclick="voteComment({$comment.id}, -1);" title="{$LANG.BAD_COMMENT}"><img border="0" alt="-" src="/components/comments/images/vote_down.gif" style="margin-left:8px" /></a></div> <div><a href="javascript:void(0);" onclick="voteComment({$comment.id}, 1);" title="{$LANG.GOOD_COMMENT}"><img border="0" alt="+" src="/components/comments/images/vote_up.gif" style="margin-left:2px" /></a></div> </li> {/if} </ul> {/if} {if $comment.show} <div class="cmmbody"> {$comment.content} </div> {else} <a href="javascript:void(0)" onclick="expandComment({$comment.id})" id="expandlink{$comment.id}">{$LANG.SHOW_COMMENT}</a> <div id="expandblock{$comment.id}" style="display:none">{$comment.content}</div> {/if} {if $is_user} <div class="cmm_cmbtns"> <a href="javascript:void(0)" onclick="addComment('{php}echo md5(session_id());{/php}', '{$target}', '{$target_id}', {$comment.id})">{$LANG.REPLY}</a> {if $is_admin} <a href="/admin/index.php?view=components&do=config&id=7&opt=edit&item_id={$comment.id}">{$LANG.EDIT}</a> {/if} {if $is_admin || ($comment.is_my && $user_can_delete) || $user_can_moderate} <a href="/comments/delete/{$comment.id}">{if $comments[$next].level > $comment.level}{$LANG.DELETE_BRANCH}{else}<img border="0" alt="" src="/images/x.gif" style="margin-left:2px; margin-top:3px;"/>{/if}</a> {/if} </div> {/if} {if $comment.is_profile} </div> {/if} <div id="cm_addentry{$comment.id}" class="reply" style="display:none"></div> </div> {/foreach} {else} {* ================================= Нет комментариев =============================== *} {$LANG.NOT_COMMENT_TEXT} {/if}
заменил
<div name="c{$comment.id}"></div>
<a name="c{$comment.id}"></a>