{include file='header.tpl'} {* $Id: group_discussion_view.tpl 247 2009-11-14 03:30:43Z phil $ *}
{* JAVASCRIPT FOR GOING TO SPECIFIED POST *} {literal} {/literal} {* JAVASCRIPT FOR CONFIRMING TOPIC EDITING/DELETION *} {if $group->user_rank == 2 || $group->user_rank == 1} {literal} {/literal} {* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *} {/if}
{if $allowed_to_discuss} {/if} {if $group->user_rank == 2 || $group->user_rank == 1} {if $topic_info.grouptopic_sticky} {else} {/if} {if $topic_info.grouptopic_closed} {else} {/if} {/if}
Sort:
{if $maxpage > 1} {if $p != 1}group_info.group_id, $topic_info.grouptopic_id)}&p=1&order={$smarty.get.order}">« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage_members}› group_info.group_id, $topic_info.grouptopic_id)}&p={$maxpage}&order={$smarty.get.order}">»{else}› »{/if}
{if $p_start_members == $p_end_members} {lang_sprintf id=184 1=$p_start 2=$total_posts} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_posts} {/if}
Go to Page:
{/if}
{* LOOP THROUGH GROUP POSTS *}
{section name=post_loop loop=$posts} {if $posts[post_loop].grouppost_deleted}{else}
{* POST HAS BEEN DELETED *} {if $posts[post_loop].grouppost_deleted} {* POST HAS NOT BEEN DELETED *} {else}
{if $posts[post_loop].grouppost_author->user_exists} {$posts[post_loop].grouppost_author->user_displayname} {else} {if $posts[post_loop].grouppost_authoruser_id != 0} {lang_print id=1071} {else} {lang_print id=835} {/if} {/if}
{if $posts[post_loop].grouppost_author->user_exists} {assign var="profilepicture" value=$posts[post_loop].grouppost_author->user_photo("./images/nophoto.png")} {$posts[post_loop].grouppost_author->userprofiledot($profilepicture, "125px")} {else} {/if}
{capture assign="post_time"}{$datetime->cdate($setting.setting_timeformat, $datetime->timezone($posts[post_loop].grouppost_date, $global_timezone))}{/capture} {capture assign="post_date"}{$datetime->cdate($setting.setting_dateformat, $datetime->timezone($posts[post_loop].grouppost_date, $global_timezone))}{/capture} {lang_sprintf id=2000307 1=$post_time 2=$post_date}
{if ($posts[post_loop].grouppost_author->user_exists && $user->user_info.user_id == $posts[post_loop].grouppost_author->user_info.user_id) || $group->user_rank == 2 || $group->user_rank == 1} {/if} {if $posts[post_loop].grouppost_author->user_exists && $user->user_info.user_id == $posts[post_loop].grouppost_author->user_info.user_id} {/if} {if $posts[post_loop].grouppost_author->user_exists && $user->user_exists && $user->user_info.user_id != $posts[post_loop].grouppost_author->user_info.user_id} {/if} {if $allowed_to_discuss} {/if}
{$posts[post_loop].grouppost_body_formatted}
{if !empty($posts[post_loop].grouppost_lastedit_date)}
{assign var='grouppost_lastedit_date' value=$datetime->time_since($posts[post_loop].grouppost_lastedit_date)} {capture assign="edited"}{lang_sprintf id=$grouppost_lastedit_date[0] 1=$grouppost_lastedit_date[1]}{/capture} {lang_sprintf id=2000395 1=$posts[post_loop].grouppost_lastedit_user_object->user_displayname 2=$edited}
{/if}
{/if}
{/if} {/section}
{lang_javascript ids=2000323} {* JAVASCRIPT FOR CONFIRMING POST DELETION *} {literal} {/literal} {* HIDDEN DIV TO DISPLAY CONFIRMATION MESSAGE *}
{if $maxpage > 1}
{if $p != 1}group_info.group_id, $topic_info.grouptopic_id)}&p=1&order={$smarty.get.order}">« ‹{else}« ‹{/if} | {foreach from=$for item=foo} {$foo} {/foreach} | {if $p != $maxpage_members}› group_info.group_id, $topic_info.grouptopic_id)}&p={$maxpage}&order={$smarty.get.order}">»{else}› »{/if}
{if $p_start_members == $p_end_members} {lang_sprintf id=184 1=$p_start 2=$total_posts} {else} {lang_sprintf id=185 1=$p_start 2=$p_end 3=$total_posts} {/if}
Go to Page:
{/if} {if $allowed_to_discuss}
{literal}
{/literal}
{lang_print id=2000310}
{if $setting.setting_group_discussion_html != ""}
{lang_sprintf id=1034 1=$setting.setting_group_discussion_html|replace:",":", "}
{/if} {if $setting.setting_group_discussion_code == 1}

{lang_print id=975}
  {capture assign=tip}{lang_print id=691}{/capture}
{/if}
{/if}
{include file='footer.tpl'}