blob: 1642be2523297c1c75796d9307b3b7fb05c2a9a4 (
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
{strip}
<div class="listing users">
<div class="header">
<h1>Mailing List: {$board->getDisplayLink()}</h1>
</div>
<div class="body">
{formfeedback success=$successMsg error=$errorMsg}
{jstabs}
{jstab title="Mailing List Information"}
{if $board->getPreference('boards_mailing_list')}
<div class="form-group">
{formlabel label="Address"}
{forminput}
{$board->getPreference('boards_mailing_list')}@{$gBitSystem->getConfig('boards_email_host',$gBitSystem->getConfig('kernel_server_name'))}
{/forminput}
</div>
{form}
<input type="hidden" name="b" value="{$board->getField('board_id')}"/>
<div class="form-group">
{formlabel label="Subscribe"}
{forminput}
{if mailman_findmember($board->getPreference('boards_mailing_list'),$gBitUser->getField('email'))}
<p>You are currently subscribed to the mailing list using the email: {$gBitUser->getField('email')}</p>
<input type="submit" class="btn btn-default" name="unsubscribe" value="Unsubscribe" />
{else}
<p>You are currently not subscribed to the mailing list.</p>
<input type="submit" class="btn btn-default" name="subscribe" value="Subscribe" />
{/if}
{/forminput}
</div>
{/form}
{else}
{formfeedback warning="No mailing address has been configured for this group."}
{/if}
{/jstab}
{if $gContent->hasAdminPermission()}
{if $listMembers}
{jstab title="List Subscribers"}
<ol class="data">
{foreach from=$listMembers key=userId item=member}
<li>{displayname email=$member} <{$member}></li>
{foreachelse}
<li>The group has no members.</li>
{/foreach}
</ol>
{/jstab}
{/if}
{/if}
{if $gBitUser->hasPermission('p_boards_admin')}
{jstab title="List ⇒ Board Configuration"}
<div>
{formlabel label="Introduction" for="boardsync"}
{forminput}
This configuration enables all posts to an internet mailing list to be mirrored on the board. To do this, a standard email account is subscribed to the list. A monitoring program then checks the inbox for any posts to the "Mailing List Address" as configured below.
{/forminput}
</div>
{form}
<input type="hidden" name="b" value="{$board->getField('board_id')}"/>
{if $gBitSystem->getConfig('boards_sync_mail_server')}
<div class="form-group">
{formlabel label="Mailing List Address" for="boardsync"}
{forminput}
<input type="text" size="50" maxlength="200" name="board_sync_list_address" id="board_sync_list_address" value="{$gContent->getPreference('board_sync_list_address')|escape}" />
{if $boardsMailingList and $boardsMailingList != $gContent->getPreference('board_sync_list_address')}
{formfeedback warning="The Mailing List Address does not match the configured board mailing list."}
{/if}
{formhelp note="All messages posted to this email address will mirrored on the board. The 'Board Sync Inbox' email account must be subscribed to this list and receive the messages in its INBOX."}
<input type="submit" class="btn btn-default" name="save_list_address" value="Save" />
{/forminput}
</div>
<div>
{formlabel label="Board Sync Inbox" for="boardsync"}
{forminput}
{$gBitSystem->getConfig('boards_sync_user')}@{$gBitSystem->getConfig('boards_sync_mail_server')}
{formhelp note="This email address should be subscribed to the mailing list like a normal user."}
{/forminput}
</div>
{if $board->getPreference('boards_mailing_list')}
<div class="form-group">
{formlabel label="Subscribe"}
{forminput}
{if mailman_findmember($board->getPreference('boards_mailing_list'),$boardSyncInbox)}
<p>{$boardSyncInbox} is subscribed to {$boardsMailingList}</p>
<input type="submit" class="btn btn-default" name="unsubscribe_boardsync" value="Unsubscribe" />
{else}
<p>{$boardSyncInbox} is currently not subscribed to the mailing list.</p>
<input type="submit" class="btn btn-default" name="subscribe_boardsync" value="Subscribe" />
{/if}
{/forminput}
</div>
{/if}
{else}
<div class="form-group">
{formlabel label="Board Sync" for="boardsync"}
{forminput}
Board Sync is not available since the Board Sync master email box has not been configured. {if !$gBitUser->isAdmin()}Check with your site administrator.{/if}
{if $gBitUser->isAdmin()}See the global <a href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=boards">Board Settings</a> for master email box configuration.{/if}
{/forminput}
</div>
{/if}
{/form}
{/jstab}
{jstab title="Board ⇒ List Configuration"}
{form}
<input type="hidden" name="b" value="{$board->getField('board_id')}"/>
{if $board->getPreference('boards_mailing_list')}
<div class="form-group">
{formlabel label="Address"}
{forminput}
{$board->getPreference('boards_mailing_list')}@{$gBitSystem->getConfig('boards_email_host',$gBitSystem->getConfig('kernel_server_name'))}
{/forminput}
</div>
<div class="form-group submit">
{forminput}
<input type="submit" class="btn btn-default" name="delete_list" value="Delete List" />
{/forminput}
</div>
<div class="form-group">
{formlabel label="Advanced Configuration"}
{forminput}
<a href="{$gBitSystem->getConfig('boards_mailman_uri',"`$smarty.const.BIT_ROOT_URI`mailman/")}admin/{$board->getPreference('boards_mailing_list')}">
{$gBitSystem->getConfig('boards_mailman_uri',"`$smarty.const.BIT_ROOT_URI`mailman/")}admin/{$board->getPreference('boards_mailing_list')}</a>
{/forminput}
</div>
{else}
{if $gBitSystem->getConfig('server_mailman_bin') and $gBitSystem->getConfig('boards_sync_user') and $gBitSystem->getConfig('boards_sync_mail_server')}
{legend legend="Group Mailing List"}
<input type="hidden" name="b" value="{$board->getField('board_id')}"/>
<div class="form-group">
{formlabel label="Mailing List Address" for='emailhost'}
{forminput}
<input type="text" name="boards_mailing_list" value="{$smarty.request.boards_mailing_list|default:$suggestedListName}" /> <strong> @ {$gBitSystem->getConfig('boards_email_host',$gBitSystem->getConfig('kernel_server_name'))} </strong>
{formhelp note="This is the email address for the group. It needs to be all lowercase alpha-numeric characters."}
{/forminput}
</div>
<div class="form-group">
{formlabel label="Administrator Password" for='emailhost'}
{forminput}
<input type="text" name="boards_mailing_list_password" value="{$smarty.request.boards_mailing_list_password}" />
{formhelp note="This is the password used to administer the mailing list."}
{/forminput}
</div>
<div class="form-group submit">
{forminput}
<input type="submit" class="btn btn-default" name="create_list" value="Create List" />
{/forminput}
</div>
{/legend}
{else}
{if !$gBitSystem->getConfig('server_mailman_bin')}
{formfeedback error="Mailman is not configured."}
{/if}
{if !$gBitSystem->getConfig('boards_sync_user') or !$gBitSystem->getConfig('boards_sync_user')}
{formfeedback error="List to Board Sync is not configured."}
{/if}
{if $gBitUser->isAdmin()}
<a href="{$smarty.const.KERNEL_PKG_URL}admin/index.php?page=boards">See Boards Administration</a>
{/if}
{/if}
{/if}
{/form}
{/jstab}
{/if}
{/jstabs}
</div><!-- end .body -->
</div>
{/strip}
|