รายละเอียด แสดงลิงค์ให้อ่านข้อตกลงก่อนโพสต์กระทู้เหนือปุ่ม "ตั้งกระทู้" โดยมีค่ามาตรฐานเป็น index.php?action=help คือลิงค์ไปยังหน้าช่วยเหลือเราสามารถเปลี่ยนแปลงได้โดยเปลี่ยนเป็นลิงค์ไปยังกระทู้ใดๆ ก็ตามกำหนด แต่เราจะต้องมีกระทู้นั้นๆ ไว้ก่อนแล้ว เช่น ต้องการลิงค์ไปยังกระทู้ที่ 5 ก็แก้เป็น index.php?topic=5.0 เป็นต้น
ตัวอย่าง
สำหรับ SMF 1.1.xxแก้ไขไฟล์:file $sourcedir/ModSettings.php
ค้นหา -->>
// Big Options... polls, sticky, bbc....
เพิ่มไว้หลัง -->>
// Read the Rules Link Above Post Button Mod
'',
array('check', 'read_the_rules_enable'),
array('text', 'read_the_rules_link', 'subtext' => $txt['read_the_rules_link_text']),
'',
// Read the Rules Link Above Post Button Mod
file $themedir/Display.template.php
ค้นหา -->>
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
แก้เป็น -->>
<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea><br />
', $txt['read_the_rules_text1'], ' <a href="', $modSettings['read_the_rules_link'], '" target="_blank">', $txt['read_the_rules_text2'], '</a> ', $txt['read_the_rules_text3'], '<br />
file $themedir/Post.template.php
ค้นหา -->>
<span class="smalltext"><br />', $txt['smf16'], '</span><br />
แก้เป็น -->>
<span class="smalltext"><br />', $txt['smf16'], '</span><br />
', $txt['read_the_rules_text1'], ' <a href="', $modSettings['read_the_rules_link'], '" target="_blank">', $txt['read_the_rules_text2'], '</a> ', $txt['read_the_rules_text3'], '<br />
file $languagesdir/Modifications.thai-utf8.php
เพิ่ม -->>
ขออภัย! ส่วนนี้สงวนไว้เฉพาะสมาชิกเท่านั้น กรุณา เข้าสู่ระบบ หรือ ลงทะเบียนสร้างไฟล์: install.php เพื่อสร้างฐานข้อมูล ไว้ใน $boarddir (ที่เดียวกับไฟล์ SSI.php) รัน http://www.your_url.xxx/$boarddir/install.php -->> Enter เสร็จแล้วลบทิ้ง
<?php
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF'))
require_once(dirname(__FILE__) . '/SSI.php');
elseif (!defined('SMF'))
die('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
updateSettings(array(
'read_the_rules_enable' => 1,
'read_the_rules_link' => $scripturl . '?action=help',
));
if(SMF == 'SSI')
echo 'Database settings successfully made!';
?>
การตั้งค่า: ผู้ดูแล -->> ส่วนปรับแต่งค่าการใช้งาน --> เปิดใช้งานลิงค์อ่านข้อตกลงเหนือปุ่มตั้งกระทู้
ลิงค์หัวข้อ:
http://dexmore.com/topic/3668