blob: ef9605dcb9e14f913bef818285eddcf6b732a856 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
{* $Header$ *}
{strip}
<div class="listing boards">
<div class="navbar clear">
<div class="boards breadcrumb">
<a href="{$smarty.const.BOARDS_PKG_URL}">{tr}Message Boards{/tr}</a>
</div>
</div>
<div class="floaticon">
{if $print_page ne 'y'}
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='icon' serviceHash=$board->mInfo}
{if $board->getPreference('boards_mailing_list') || $board->hasAdminPermission()}
<a class="item" href="{$smarty.const.BOARDS_PKG_URL}mailing_list.php?b={$board->mInfo.board_id}" title="{tr}Message Board Mailing List{/tr}">{booticon ipackage="icons" iname="icon-envelope" iexplain="Edit Board Mailing List"}</a>
{/if}
{if $gBitSystem->isPackageActive( 'rss' )}
<a title="{tr}Get RSS Feed{/tr}" href="{$smarty.const.BOARDS_PKG_URL}rss.php?b={$smarty.request.b}">{booticon iname="icon-rss" ipackage=rss iexplain="Get RSS Feed"}</a>
{/if}
{if $board->hasUpdatePermission()}
<a title="{tr}Edit message board{/tr}" href="{$smarty.const.BOARDS_PKG_URL}edit.php?b={$board->mInfo.board_id}">{booticon iname="icon-edit" ipackage="icons" iexplain="Edit Message Board"}</a>
{/if}
{if $board->hasUserPermission( 'p_boards_remove', TRUE, TRUE )}
<a title="{tr}Remove message board{/tr}" href="{$smarty.const.BOARDS_PKG_URL}edit.php?remove=1&b={$board->mInfo.board_id}">{booticon iname="icon-trash" ipackage="icons" iexplain="Remove Message Board"}</a>
{/if}
{/if}<!-- end print_page -->
{if $board->hasPostCommentsPermission()}
{minifind class="" sort_mode=$sort_mode b=$smarty.request.b prompt=$smarty.const.BOARDS_PKG_DIR}
{/if}
</div><!-- end .floaticon -->
<div class="header">
<h1>{$board->getTitle()|escape|default:"Message Board Topic"}</h1>
{if $board->mInfo.parsed_data}
<p>{$board->mInfo.parsed_data}</p>
{/if}
</div>
{pagination b=$smarty.request.b}
<div class="body">
{include file="bitpackage:liberty/comments_post_inc.tpl" post_title="Post" hide=1}
{form id="checkform"}
<input type="hidden" name="board_id" value="{$smarty.request.board_id}" />
<input type="hidden" name="offset" value="{$control.offset|escape}" />
<input type="hidden" name="sort_mode" value="{$control.sort_mode|escape}" />
<table class="table data">
{if !$gBitSystem->isFeatureActive('boards_thread_verbrose')}
<tr>
<th style="width:5%;">
{form class="form-inline" action="`$comments_return_url`#editcomments"}
<input type="hidden" name="post_comment_request" value="1" />
<input type="submit" class="btn btn-mini btn-primary" value="{tr}New Topic{/tr}" />
{/form}
</th>
<th style="width:40%;">{tr}Title{/tr}</th>
<th style="width:5%;">{tr}Replies{/tr}</th>
<th style="width:20%;">{tr}Last Reply{/tr}</th>
{if $board->hasUpdatePermission() || $gBitUser->hasPermission('p_boards_post_update')}
<th style="width:1%;"><abbr title="{tr}Number of posts by Anonymous users{/tr}">Anon</abbr></th>
{/if}
{if $board->hasUpdatePermission()}
<th style="width:10%;" colspan="2">Actions</th>
{/if}
</tr>
{/if}
{foreach item=thread from=$threadList}
<tr class="{cycle values="even,odd"} {if $gBitSystem->isFeatureActive('boards_post_anon_moderation') && $thread.unreg > 0}unapproved{elseif $thread.th_moved>0}moved{/if} {if $thread.th_sticky==1} highlight{/if}" >
<td style="white-space:nowrap;">{* topic status icons *}
{if $thread.th_moved>0}
{booticon ipackage="icons" iname="icon-share" iexplain="Moved Topic"}
{else}
{assign var=flip value=$thread.flip}
{foreach from=$flip item=flip_s key=flip_name}
{include file="bitpackage:boards/flipswitch.tpl"}
{/foreach}
{/if}
</td>
<td>
<div class="topictitle"><a href="{$thread.url}" title="{$thread.title|escape}">{$thread.title|escape}</a></div>
{include file="bitpackage:liberty/services_inc.tpl" serviceLocation='list' serviceHash=$thread}
{tr}by{/tr} {if $thread.flc_user_id < 0}{$thread.anon_name|escape}{else}{displayname user_id=$thread.flc_user_id}{/if} {tr}on{/tr} {$thread.flc_created|reltime:short|escape}
</td>
<td class="topiccount">{if $thread.post_count-1}{$thread.post_count-1}{/if}</td>
<td class="topiclastreply">
{if $thread.post_count > 1}{$thread.llc_last_modified|reltime:short|escape}{else}{/if}<br/>
{if $thread.post_count > 1}{if $thread.llc_user_id < 0}{$thread.l_anon_name|escape}{else}{displayname user_id=$thread.llc_user_id}{/if}{else}{/if}
</td>
{if $board->hasUpdatePermission() || $gBitUser->hasPermission('p_boards_post_update')}
<td style="text-align:center;">{if $thread.unreg > 0}<a class="highlight" href="{$thread.url}" title="{$thread.title|escape}">{$thread.unreg}</a>{/if}</td>
{/if}
{if $board->hasUpdatePermission() || $gBitUser->hasPermission('p_boards_post_update')}
<td class="actionicon">
{* modcomments handles this *}
{if $thread.flc_user_id<0 && $thread.first_approved==0 && !$gBitSystem->isPackageActive('modcomments')}
<a title="{tr}Approve First Post{/tr}" href="{$smarty.const.BOARDS_PKG_URL}view_board_inc.php?b={$board->mInfo.board_id}&action=1&comment_id={$thread.th_thread_id}">
{booticon iname="icon-plus-sign" ipackage="icons" iexplain="Approve First Post" iforce="icon"}
</a>
<a title="{tr}Reject First Post{/tr}" href="{$smarty.const.BOARDS_PKG_URL}view_board_inc.php?b={$board->mInfo.board_id}&action=2&comment_id={$thread.th_thread_id}">
{booticon iname="icon-minus-sign" ipackage="icons" iexplain="Reject First Post" iforce="icon"}
</a>
{/if}
{if $thread.th_moved==0 && $board->hasAdminPermission()}
{*smartlink ititle="Edit" ifile="edit.php" ibiticon="liberty/edit" board_id=$thread.board_id*}
<a href="{$smarty.const.BOARDS_PKG_URL}topic_move.php?t={$thread.th_thread_id|escape:"url"}"
title="{tr}Move Thread{/tr}">{booticon ipackage=icons iname="icon-share" iexplain="Move Thread" iforce="icon"}
</a> <a title="{tr}Delete Topic{/tr}" href="{$smarty.const.BOARDS_PKG_URL}edit_topic.php?remove=1&t={$thread.th_thread_id|escape:"url"}">{booticon iname="icon-trash" ipackage="icons" iexplain="Delete Thread" iforce="icon"}</a>
{/if}
</td>
{if $thread.th_moved==0 && $board->hasAdminPermission()}
<td>
<input type="checkbox" name="checked[]" title="{$thread.title|escape}" value="{$thread.th_thread_id}" />
</td>
{/if}
{/if}
</tr>
{foreachelse}
<tr class="norecords"><td colspan="16">
{tr}No topics have been posted.{/tr}
</td></tr>
{/foreach}
</table>
{if $board->hasAdminPermission()}
<div style="text-align:right;">
<script type="text/javascript">/* <![CDATA[ check / uncheck all */
document.write("<label class='' for='switcher'>{tr}Select All{/tr} <input name='switcher' id='switcher' type='checkbox' onclick='BitBase.switchCheckboxes(this.form.id,'checked[]','switcher')' /></label>");
/* ]]> */</script>
<input type="hidden" name="b" value="{$smarty.request.b}" />
<select name="submit_mult" onchange="this.form.submit();">
<option value="" selected="selected">{tr}with checked{/tr}:</option>
{if $board->hasAdminPermission()}
<option value="remove_boards">{tr}remove{/tr}</option>
{/if}
</select>
<noscript><div><input type="submit" class="ink-button" value="{tr}Submit{/tr}" /></div></noscript>
</div>
{/if}
{/form}
{include file="bitpackage:boards/legend_inc.tpl" topicicons=1}
</div><!-- end .body -->
</div><!-- end .admin -->
{if $gBitSystem->isFeatureActive('boards_post_anon_moderation') && $smarty.request.post_comment_request && !$gBitUser->isRegistered()}
{formfeedback warning="Your post will not be shown immediately it will have to be approved by a moderator"}
{/if}
{/strip}
|