หมวดไฟฟ้า/อิเล็กทรอนิกส์/คอมพิวเตอร์ => Programming => ห้องคอมพิวเตอร์ => ห้อง SMF 2.0.X => ข้อความที่เริ่มโดย: Auto Man ที่ 06 พฤษภาคม 2559, 11:32:00

หัวข้อ: Box Credit กล่องใส่เครดิต
เริ่มหัวข้อโดย: Auto Man ที่ 06 พฤษภาคม 2559, 11:32:00
  ไม่มีมอด ต้องแมนวล หรือมือเน้นๆ ครับ 5 5 5

ไฟล์ Sub.php
เพิ่ม
โค๊ด: [Select]
array(
                'tag' => 'credit',
                'before' => '<table border="0" cellspacing="0" cellpadding="0"><tr><td height="39" colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="123" background="'.$settings['default_theme_url'].'/images/cre1.png" height="39" title="กล่องเครดิต">&nbsp;</td><td background="'.$settings['default_theme_url'].'/images/cre2.gif">&nbsp;</td><td width="48" background="'.$settings['default_theme_url'].'/images/cre3.png" height="39">&nbsp;</td></tr></table></td></tr><tr><td bgcolor="#cdf4a3" width="10">&nbsp;</td><td bgcolor="#cdf4a3"><table border="1" width="100%" cellspacing="0" cellpadding="0" style="border-collapse: collapse; border: 1px solid #69ac00" bgcolor="#FFFFFF"><tr><td style="font-family: Arial; font-size: 12px; color: #707070; text-align: center"><p style="margin: 5px">',
                'after' => '</td></tr></table></td><td bgcolor="#cdf4a3" width="10">&nbsp;</td></tr><tr><td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td background="'.$settings['default_theme_url'].'/images/cre4.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td bgcolor="#cdf4a3" height="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td><td background="'.$settings['default_theme_url'].'/images/cre5.gif" height="11" width="11"><img border="0" src="'.$settings['default_theme_url'].'/images/space.gif" width="1" height="1"></td></tr></table></td></tr></table><!-- 250309-->',
                'block_level' => true,
            ),
        );

ไฟล์ Sup-Edit.php
เพิ่ม
โค๊ด: [Select]
                array(
                'image' => 'credit',
                'code' => 'credit',
                'before' => '[credit]',
                'after' => '[/credit]',
                'description' => $txt['bbcode_credit']
            ),

มายเหตุ คำถาม...แล้วจะใส่ตรงไหนกันหว่า.. คำตอบคือ.....ก็ใส่ตรงที่มี Code เหมือนๆ กันกับ Code ที่เราจะเพิ่มนี่แหละ รูปก็หา Copy ที่ด้านล่างเหมือนกัน ๕๕๕๕


ไฟล์ Modifications.thai-utf8.php

หา
โค๊ด: [Select]
?>
เพิ่มก่อนหา
โค๊ด: [Select]
$txt['bbcode_credit'] = 'กล่อง เครดิต';   

ตัวอย่างด้านล่างนี่เลย

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/58424183)

ขอบคุณที่มา http://www.banpongpond-src.com/smf/index.php?topic=849.0