0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
'edit_disable_time' => empty($_POST['edit_disable_time']) ? '0' : (int) $_POST['edit_disable_time'],
'edit_disable_time' => empty($_POST['edit_disable_time']) ? '0' : (int) $_POST['edit_disable_time'], 'post_box_rows' => empty($_POST['post_box_rows']) ? '12' : $_POST['post_box_rows'], 'post_box_columns' => empty($_POST['post_box_columns']) ? '96%' : $_POST['post_box_columns'], 'post_box_message' => empty($_POST['post_box_message']) ? '' : $_POST['post_box_message'], 'post_box_switch' => empty($_POST['post_box_switch']) ? 'off' : $_POST['post_box_switch'],
// Load the Post template and language file.
$context['post_box_rows'] = isset($modSettings['post_box_rows']) ? $modSettings['post_box_rows'] : '12'; $context['post_box_columns'] = isset($modSettings['post_box_columns']) ? $modSettings['post_box_columns'] : '96%'; $context['post_box_message'] = isset($modSettings['post_box_message']) ? $modSettings['post_box_message'] : ''; $context['post_box_switch'] = isset($modSettings['post_box_switch']) ? $modSettings['post_box_switch'] : 'off'; // Load the Post template and language file.
<input type="text" name="edit_disable_time" id="edit_disable_time_input" value="', empty($modSettings['edit_disable_time']) ? '0' : $modSettings['edit_disable_time'], '" size="5" /> ', $txt['manageposts_minutes'], ' </td>
<input type="text" name="edit_disable_time" id="edit_disable_time_input" value="', empty($modSettings['edit_disable_time']) ? '0' : $modSettings['edit_disable_time'], '" size="5" /> ', $txt['manageposts_minutes'], ' </td> </tr><tr class="windowbg2"> <td colspan="2"><hr /></td> </tr><tr class="windowbg2"> <th width="50%" align="right"> <label for="post_box_rows">', $txt['post_box_rows'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=post_box_rows" onclick="return reqWin(this.href);">?</a>)</span>: <div class="smalltext" style="font-weight: normal;">', $txt['post_box_rows_desc'], '</div> </th> <td valign="top"> <select name="post_box_rows"> <option value="', isset($modSettings['post_box_rows']) && $modSettings['post_box_rows'] != '' ? $modSettings['post_box_rows'] : '12', '">', isset($modSettings['post_box_rows']) && $modSettings['post_box_rows'] != '' ? $modSettings['post_box_rows'] : '12', '</option> <option value="12">12</option> <option value="15">15</option> <option value="20">20</option> <option value="25">25</option> <option value="30">30</option> </select> </td> </tr><tr class="windowbg2"> <th width="50%" align="right"> <label for="post_box_columns">', $txt['post_box_columns'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=post_box_columns" onclick="return reqWin(this.href);">?</a>)</span>: <div class="smalltext" style="font-weight: normal;">', $txt['post_box_columns_desc'], '</div> </th> <td valign="top"> <select name="post_box_columns"> <option value="', isset($modSettings['post_box_columns']) && $modSettings['post_box_columns'] != '' ? $modSettings['post_box_columns'] : '96%', '">', isset($modSettings['post_box_columns']) && $modSettings['post_box_columns'] != '' ? $modSettings['post_box_columns'] : '96%', '</option> <option value="70%">70%</option> <option value="80%">80%</option> <option value="96%">96%</option> <option value="100%">100%</option> </select> </td> </tr><tr class="windowbg2"> <th width="50%" align="right" valign="top"> <label for="post_box_switch">', $txt['post_box_switch'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=post_box_switch" onclick="return reqWin(this.href);">?</a>)</span>: <div class="smalltext" style="font-weight: normal;">', $txt['post_box_switch_desc'], '</div> </th> <td valign="top"> <input type="checkbox" name="post_box_switch" id="post_box_switch"', isset($modSettings['post_box_switch']) && $modSettings['post_box_switch'] != 'off' ? ' checked="checked"' : '', ' /> </td> </tr><tr class="windowbg2"> <th width="50%" align="right" valign="top"> <label for="post_box_message">', $txt['post_box_message'], '</label> <span style="font-weight: normal;">(<a href="', $scripturl, '?action=helpadmin;help=post_box_message" onclick="return reqWin(this.href);">?</a>)</span>: <div class="smalltext" style="font-weight: normal;">', $txt['post_box_message_desc'], '</div> </th> <td valign="top"> <textarea rows="5" cols="40" name="post_box_message">', empty($modSettings['post_box_message']) ? '' : $modSettings['post_box_message'], '</textarea> </td>
<tr> <td valign="top" align="right"></td> <td> <textarea class="editor" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea> </td> </tr>';
<tr>'; if ($context['post_box_switch'] == 'off' && $context['post_box_message'] != '' && $context['current_action'] == 'post') echo ' <td class="tborder" width="18%" height="', $context['post_box_rows'], '" valign="top" align="left" style="overflow: auto; padding: 4px; border: 1px solid red;"> ', parse_bbc($context['post_box_message']), '</td>'; else echo '<td width="18%"></td>'; echo ' <td colspan="2"> <textarea style="width: ', $context['post_box_columns'], ';" name="', $context['post_box_name'], '" rows="', $context['post_box_rows'], '" cols="', $context['post_box_columns'], '" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onchange="storeCaret(this);" tabindex="', $context['tabindex']++, '"', isset($context['post_error']['no_message']) || isset($context['post_error']['long_message']) ? ' style="border: 1px solid red;"' : '', '>', $message, '</textarea> </td> </tr>';
?>
$helptxt['post_box_rows'] = 'This will allow you to change the default height of the post box.';$helptxt['post_box_columns'] = 'This will allow you to change the default width of the post box.';$helptxt['post_box_message'] = 'Enter the message for members when they post a message. You can use bulletin board codes and smileys.';$helptxt['post_box_switch'] = 'This will disable the display of the message from posters in the post box.';
$txt['post_box_rows'] = 'New default post box height';$txt['post_box_rows_desc'] = 'The default is 12 rows';$txt['post_box_columns'] = 'New default post box width';$txt['post_box_columns_desc'] = 'The default is 96%.';$txt['post_box_message'] = 'Enter the Message for posters';$txt['post_box_message_desc'] = 'You can use bulletin board codes and smileys.';$txt['post_box_switch'] = 'Disable the post box message';$txt['post_box_switch_desc'] = 'Hide the message from posters.';