Comments Manager
View Video Comments | View Topic Posts | View Channel Comments | View Collection Comments | View Photo Comments

| CID | Comment |

{if $comments}

{foreach from=$comments item=comment} {if $comment.anonym_name != ""} {assign var=comment_owner value=$comment.anonym_name} {else} {assign var=comment_owner value=$userquery->get_user_details($comment.3)} {/if}
| {$comment.comment_id} | {if $type == '' || $type == 'v'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a video named {$comment.title|truncate:40} {$comment.comment} {lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'} |
{/if} {if $type == 't'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a topic named {$comment.topic_title|truncate:40}
{$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $type == 'c'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a channel named {$comment.username|truncate:40}
{$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $type == 'cl'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a collection named {$comment.collection_name|truncate:40}
{$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $type == 'p'} {if is_array($comment_owner)} {$comment_owner.username} {else} {$comment_owner} {/if} commented on {$comment.date_added|date_format} on a photo named {$comment.photo_title|truncate:40}
{$comment.comment}
{lang code='view'} {lang code='comment'} | Mark {lang code='spam'} {lang code='remove'} {lang code='spam'} | {lang code='delete'}
{/if} {if $bgcolor == ""} {assign var = bgcolor value = "#EEE"} {else} {assign var = bgcolor value = ""} {/if} {/foreach}

{else}
{lang code='no_comments'}
{/if}
{include file="$style_dir/blocks/pagination.html" }