แจกของฟรี

Website => SMF => Modยอดนิยม => ข้อความที่เริ่มโดย: smf ที่ 1 สิงหาคม 2015, 01:20:31

หัวข้อ: มาทำCopyRightตรง footerกัน2
เริ่มหัวข้อโดย: smf ที่ 1 สิงหาคม 2015, 01:20:31
Mod Name:Custom Copyright
http://custom.simplemachines.org/mods/index.php?mod=1317

ตัวอย่าง สำหรับ2.0.10

File:/Themes/default/index.template.php
หา:
โค๊ด: [Select]
', theme_copyright(), '
แทนที่ด้วย:
โค๊ด: [Select]
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
', theme_copyright(), '



./Themes/default/Settings.template.php
หา:
โค๊ด: [Select]
$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),
แทนที่ด้วย:
โค๊ด: [Select]
$context['theme_settings'] = array(
array(
'id' => 'header_logo_url',
'label' => $txt['header_logo_url'],
'description' => $txt['header_logo_url_desc'],
'type' => 'text',
),
array(
'id' => 'custom_copyright',
'label' => $txt['custom_copyright'],
'description' => $txt['custom_copyright_desc'],
'type' => 'text',
),


./Themes/default/languages/Modifications.english.php
หา (ล่างสุดของไฟล์):
โค๊ด: [Select]
?>
เพิ่มก่อนด้วย:
โค๊ด: [Select]
$txt['custom_copyright_desc'] = 'This will be displayed at the bottom.';
$txt['custom_copyright'] = 'Enter custom copyright:';


สำหรับธีมที่ไม่ใช่ธีมdefault
หา:
โค๊ด: [Select]
', theme_copyright(), '
แทนที่ด้วย:
โค๊ด: [Select]
', !empty($settings['custom_copyright']) ? '<span class="smalltext">'. parse_bbc($settings['custom_copyright']). '</span>' : '', '<br />
                  ', theme_copyright(), '


(http://www.pordoo.com/pic/มาทำCopyRightตรง footerกัน2.jpg)