{assign var='commentId' value=$cComment->data.post_id} {assign var="votedownindex" value='-1'} {assign var='thisCommentVotesUp' value=$arrVotes.$commentId.values[1]|intval} {assign var='thisCommentVotesDown' value=$arrVotes.$commentId.values.$votedownindex|intval} {assign var='x' value=$cComment->data.post_lvl} {if $x gt 6}{assign var='x' value=6}{/if} {assign var='selectedFileId' value=$cComment->joined.obj_post_user->data.user_profilepic} {assign var='selectedFile' value=$avatarFiles.$selectedFileId} {if in_array($cComment->user, $modsIds) || $cComment->data.post_ismoderatorcomment eq 1} {assign var='commentBy' value='admin'} {else} {assign var='commentBy' value='author'} {/if} {if $cComment->lvl eq 1} {if $counter > 1} {/if} {assign var='replyCounter' value=0 scope='global'}
{assign var='parentComment' value=$cComment->id scope='global'}
{if $cComment->data.post_moderationstatus ne 3} joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_usertype->data.usertype_name|escape} {else} Generic user icon {/if}
{if $cComment->data.post_moderationstatus ne 3} {if $cComment->data.post_moderatoredituser ne 0} {assign var=modId value=$cComment->data.post_moderatoredituser} {assign var=moderator value=$moderators.$modId} {"This comment was edited on"|gettext} {$cComment->data.post_moderatoreditdate|date_format} by data.user_id}>{$moderator->getDisplayName()} {/if}

joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_displayName}{if $cComment->joined.obj_post_user->user_usertype->data.usertype_id ne 3 && intval($cComment->joined.obj_post_user->user_usertype->data.usertype_id) ne 0} ({$cComment->joined.obj_post_user->user_usertype->data.usertype_name}){/if} {$cComment->data.post_created|relative_date}

{DataFilter::nl2br(DataFilter::addLinks($cComment->getCommentText()))}

{if $hubbub->hubbub_arrOptions.userTagsEnabledOnComments eq 1} {if isset($postResponseUserTags.$commentId)}

{"Users tagged"|gettext}:

{foreach from=$postResponseUserTags.$commentId item=userTag} {assign var='selectedFile' value=$userTag->joined.obj_user_profilepic} {/foreach}
{/if} {/if}

{assign var='post_id' value=$cComment->data.post_id} {if isset($commentVotesUser.$post_id)} {assign var='userVote' value=$commentVotesUser.$post_id} {assign var='userVoteDir' value=$userVote->data.vote_direction} {else} {assign var='userVoteDir' value=0} {/if} {if $allowComment} {"Reply"|gettext} {if $user->isInvalid()} {$thisCommentVotesUp} {elseif $cComment->data.post_user ne $user->data.user_id && $categoryaccess->getData('canVoteComments')} {if $userVoteDir ne 1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {$thisCommentVotesUp} {else} {$thisCommentVotesUp} {/if} {elseif $cComment->data.post_user eq $user->data.user_id && $categoryaccess->getData('canVoteComments')} {$thisCommentVotesUp} {/if} {/if}

{else} {"This comment has been removed"|gettext} {/if}
{else} {assign var='replyCounter' value=$replyCounter+1 scope='global'} {if $replyCounter > 1}
{/if}
{if $cComment->data.post_moderationstatus ne 3} joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_usertype->data.usertype_name|escape} {else} Generic user icon {/if}
{if $cComment->data.post_moderationstatus ne 3}

joined.obj_post_user->data.user_id}>{$cComment->joined.obj_post_user->user_displayName}{if $cComment->joined.obj_post_user->user_usertype->data.usertype_id ne 3 && intval($cComment->joined.obj_post_user->user_usertype->data.usertype_id) ne 0} ({$cComment->joined.obj_post_user->user_usertype->data.usertype_name}){/if} {$cComment->data.post_created|relative_date}

{DataFilter::nl2br(DataFilter::addLinks($cComment->getCommentText()))}

{if $hubbub->hubbub_arrOptions.userTagsEnabledOnComments eq 1} {if isset($postResponseUserTags.$commentId)}

{"Users tagged"|gettext}:

{foreach from=$postResponseUserTags.$commentId item=userTag} {assign var='selectedFile' value=$userTag->joined.obj_user_profilepic} {/foreach}
{/if} {/if}

{assign var='post_id' value=$cComment->data.post_id} {if isset($commentVotesUser.$post_id)} {assign var='userVote' value=$commentVotesUser.$post_id} {assign var='userVoteDir' value=$userVote->data.vote_direction} {else} {assign var='userVoteDir' value=0} {/if} {if $allowComment} {"Reply"|gettext} {if $user->isInvalid()} {$thisCommentVotesUp} {elseif $cComment->data.post_user ne $user->data.user_id && $categoryaccess->getData('canVoteComments')} {if $userVoteDir ne 1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {* {$thisCommentVotesUp} *} {$thisCommentVotesUp} {else} {$thisCommentVotesUp} {/if} {if $userVoteDir ne -1 && $categoryaccess->getData('canVoteComments') && $cPost->data.post_moderationstatus lt 2} {*

  • {$thisCommentVotesDown}
  • *} {else} {*
  • {$thisCommentVotesDown}
  • *} {/if} {elseif $cComment->data.post_user eq $user->data.user_id && $categoryaccess->getData('canVoteComments')} {$thisCommentVotesUp} {/if} {/if}

    {else} {"This comment has been removed"|gettext} {/if}
    {if $replyCounter > 1}
    {/if} {/if}