- ชื่อ: Crazy Notice
- ผู้เขียน: Crazy™
- นำเสนอโดย: DexMoreGroup
- ประเภท: New Feature
- รองรับ: SMF 1.1.xx
- ปรับปรุงล่าสุด: 23 มิถุนายน 2553
รายละเอียด แสดงข้อความหรือรูปภาพประกาศด้านล่างของกระทู้เพื่อให้ผู้ใช้เห็น
ตัวอย่าง
แก้ไขไฟล์:file $sourcedir/ModSettings.php
ค้นหา -->>
array('int', 'max_signatureLength'),
เพิ่มไว้หลัง -->>
// Posting notice by Crazy™
array('check', 'enable_crazynotice'),
array('large_text', 'text_crazynotice', '2'),
file Display.template.php
ค้นหา -->>
echo '
</td>
</tr><tr>
<td valign="bottom" class="smalltext" id="modified_', $message['id'], '">';
// Show "ซ Last Edit: Time by Person ป" if this post was edited.
if ($settings['show_modify'] && !empty($message['modified']['name']))
แก้เป็น -->>
ขออภัย! ท่านไม่สามารถเข้าถึงข้อมูลส่วนนี้ได้ กรุณาอ่าน เงื่อนไขการใช้งาน DexMore.Comfile $languagedir/Modifications.thai-utf8.php
เพิ่ม -->>
//Posting notice by Crazy™
$txt['enable_crazynotice']='ใช้งานแสดงประกาศใต้กระทู้';
$txt['text_crazynotice']='การแสดงประกาศ<div class="smalltext">ใช้ HTMLได้ ใช้ BBC ไม่ได้</div>';
file $languagedir/Help.thai-utf8.php
เพิ่ม -->>
//Posting notice by Crazy™
$helptxt['enable_crazynotice'] = 'ที่นี่คุณสามารถแสดงข้อความ ใต้กระทู้ทุก ๆ กระทู้<div class="smalltext">ตัวอย่าง: กรุณาคลิกที่นี่หลังจากตั้งกระทู้</div><br />';
$helptxt['text_crazynotice'] = 'ข้อความนี้จะแสดงให้สมาชิกเห็นทุก ๆ กระทู้<div class="smalltext">ใช้ html ได้ ใช้ BBC ไม่ได้</div><br />';
วิธีใช้
เปลี่ยนรูปที่นี่
<img src="', $settings['images_url'], '/icons/assist.gif" />
หากต้องการข้อความเพียงอย่างเดียวลบโค๊ดนี้ออกเลย
ถ้าต้องการให้รูปอยู่หลังข้อความแก้เป็น
<b>',$modSettings['text_crazynotice'],'</b><img src="', $settings['images_url'], '/icons/assist.gif" />
ลิงค์หัวข้อ:
http://dexmore.com/topic/368