Home Webboard ArticlesKnowledges  

ผู้เขียน หัวข้อ: ข้อความ แจ้งเตือนการโพสต์ด้านข้าง  (อ่าน 5536 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ 1

  • Just
  • **
  • กระทู้: 94
  • เห็นด้วย&ขอบคุณ: 15
mod http:custom.simplemachines.org/mods/index.php?mod=1598




Sources/ManagePosts.php

ค้นหาโค๊ด
โค๊ด: [Select]
'edit_disable_time' => empty($_POST['edit_disable_time']) ? '0' : (int) $_POST['edit_disable_time'],
วางทับโค๊ดที่ค้นหา
โค๊ด: [Select]
'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'],

/Sources/Subs-Post.php

ค้นหาโค๊ด

โค๊ด: [Select]
// Load the Post template and language file.

วางโค๊ดนี้ทับที่ค้นหา
โค๊ด: [Select]
$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.


/Themes/default/Admin.template.php

ค้นหาโค๊ดนี้
โค๊ด: [Select]
<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>

วางโค๊ดนี้ทับที่ค้นหา
โค๊ด: [Select]
<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>


Themes/default/Post.template.php

ค้นหาโค๊ดนี้
โค๊ด: [Select]
<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>';

วางโค๊ดนี้ทับ
โค๊ด: [Select]
<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>';


Themes/default/languages/Help.english.php


ค้นหา
โค๊ด: [Select]
?>
วางก่อนที่ค้นหา
โค๊ด: [Select]
$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.';


Themes/default/languages/Modifications.english.php

ค้นหาโค๊ด
โค๊ด: [Select]
?>
วางโค๊ดก่อนที่ค้นหา
โค๊ด: [Select]
$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.';



วิธีตั้งค่า ไปที่     Admin -> Posts and Topics -> Posts Settings






 

Sitemap 1 2 3 4 5 6 
Back to top