สำหรับ SMF 2.0.xxแก้ไขไฟล์:file $sourcesdir/ManageSettings.php
ค้นหา -->>
'',
// Option-ish things... miscellaneous sorta.
array('check', 'allow_disableAnnounce'),
array('check', 'disallow_sendBody'),
เพิ่มไว้หลัง -->>
'',
// DexMore Easy Banner Top.
array('check', 'enable_banner'),
array('int', 'banner_max_width'),
array('int', 'banner_max_height'),
array('large_text', 'text_banner', '6'),
file $themesdir/index.template.php
ค้นหา -->>
?>
เพิ่มไว้ก่อน -->>
function dexmore_banner()
{
global $modSettings;
//DexMore Easy Banner to Top
if (!empty($modSettings['enable_banner']))
{
echo'
<div class="banner" style="width: ', !empty($modSettings['banner_max_width']) ? $modSettings['banner_max_width'] : '', 'px; height: ', !empty($modSettings['banner_max_height']) ? $modSettings['banner_max_height'] : '', 'px;">' .parse_bbc($modSettings['text_banner']). '</div>';
}
}
ค้นหา -->>
// Show the menu here, according to the menu sub template.
template_menu();
เพิ่มไว้หลัง -->>
//DexMore Easy Banner to Top
dexmore_banner();
file $themesdir/css/index.css
เพิ่ม -->>
/*DexMore Easy Banner to Top*/
.banner
{
background-color: white;/*กำหนดสีพื้นหลังที่นี่*/
border: solid 1px #9BAEBF;/*กำหนดสีและขนาดเส้นขอบที่นี่*/
text-align: center;
padding: 5px;
margin: 30px auto 0 auto;
}
file languages/ManageSettings.thai-utf8.php
เพิ่ม -->>
//DexMore Easy Banner to Top
$txt['enable_banner'] = 'เปิดใช้งานโฆษณา';
$txt['banner_max_width'] = 'ความกว้างของโฆษณา<div class="smalltext">ปล่อยว่าง = ไม่กำหนด</div>';
$txt['banner_max_height'] = 'ความสูงของโฆษณา<div class="smalltext">ปล่อยว่าง = ไม่กำหนด</div>';
$txt['text_banner'] = 'ที่นี่คุณสามารถแสดงโฆษณาโดยใช้ HTML หรือ BBCode<div class="smalltext">1 แถว/1บรรทัด</div>';
file languages/Help.thai-utf8.php
เพิ่ม -->>
//DexMore Easy Banner to Top
$helptxt['enable_banner'] = 'ที่นี่คุณสามารถใส่โฆษณาด้วย HTML หรือ BBCode ได้ตามต้องการ';
ลิงค์หัวข้อ:
http://dexmore.com/topic/2345