http://www.art2bempire.com/files/basic_smf1.jpgไฟล์ที่ต้องแก้ไข
- Themes/default/index.template.php
- Sources/Subs.php
____________________________________________________________________________________
- Themes/default/index.template.php
# หมายเหตุ จะลบยังไงนั่นก็เป็นเรื่องของคุณนะครับ ผมเพียงแต่เสนอ วิธีเท่านั้น
ถ้าเป็นไปได้ก็ลบไปทั้ง table เลย ก็ได้
1.เปิดไฟล์ขึ้นมา หาบรรทัดที่ 356 หรือ Find หาเอาก็ได้สำหรับคนที่แก้ไขแล้ว บรรทัดจะไม่ตรงกัน (keyword ก็อยู่ข้างล่างเลือกเอาครับ)
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function smfFooterHighlight(element, value)
{
element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
}
// ]]></script>
<table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
<tr>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'right' : 'left', '">
<a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
', theme_copyright(), '
</td>
<td width="28%" valign="middle" align="', !$context['right_to_left'] ? 'left' : 'right', '">
<a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '" width="54" height="20" style="margin: 5px 16px;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';
2. ลบมันออกไปซะ จะลบไงก็ได้หรือลบ ทั้งหมดก็ได้ แนะนำให้ลบแต่ table ยัน /table (หรือคุณจะแก้เป็นอย่างอื่นก็ได้)
เสร็จแล้ว ว้าว มันหายไปแล้วแต่มีอย่างอื่นขึ้นมาแทน
http://www.art2bempire.com/files/basic_smf2.jpgทำไงดีละ เจองี้เซ็งว๊าาา
____________________________________________________________________________________
- Sources/Subs.php
บรรทัดที่ 3331 หรือ find หา
// Do not remove hard-coded text - it's in here so users cannot change the text easily. (as if it were in language file)
if (!theme_copyright(true) && !empty($context['template_layers']) && SMF !== 'SSI' && !WIRELESS)
{
// DO NOT MODIFY THIS SECTION. DO NOT REMOVE YOUR COPYRIGHT.
// DOING SO VOIDS YOUR LICENSE AND IS ILLEGAL.
echo '
<div style="text-align: center !important; display: block !important; visibility: visible !important; font-size: large !important; font-weight: bold; color: black !important; background-color: white !important;">
Sorry, the copyright must be in the template.<br />
Please notify this forum\'s administrator that this site is missing the copyright message for <a href="http://www.simplemachines.org/" style="color: black !important; font-size: large !important;">SMF</a> so they can rectify the situation. Display of copyright is a <a href="http://www.simplemachines.org/about/license.php" style="color: red;">legal requirement</a>. For more information on this please visit the <a href="http://www.simplemachines.org">Simple Machines</a> website.', empty($context['user']['is_admin']) ? '' : '<br />
Not sure why this message is appearing? <a href="http://www.simplemachines.org/redirect/index.php?copyright_error">Take a look at some common causes.</a>', '
</div>';
log_error('Copyright removed!!');
}
ลบออกไปซะ หรือจะลบแค่ echo ไปก็ได้ ถ้ารู้สึกว่า แปลกที่ไปลบ ฟังชั่นมันออก แล้วแต่คุณครับ แต่เครื่องหมายดูดีๆ ถ้าคุณทำตามผม แล้ว มัน error แสดวงว่าคุณอ่านไม่ชัดเจน
http://www.art2bempire.com/files/basic_smf3.jpgA : โอวจอร์จมันยอดมาก ที่นี้ชั้นจะได้มีเนื้อที่หน้าเพิ่มขึ้น ^^
PS. สำหรับคนที่อ่านแล้ว รู้สึกว่า "บอร์ดเค้าทำมาตั้งนาน ยังไม่ให้เครดิตเค้าอีก ก็ขออภัยด้วย T-T แต่คุณสามารถแก้ชื่อเวอชั่นได้ครับเผื่อเป็นการ หลอกผู้ไม่ประสงดี เช่น ใช้เวอชั่นใหม่แต่ แก้เป็นเวอชั่น 000000.1 มันคงงงกันน่าดู เอะเวอชั่นนี้ มีบั้๕นี่หว่าไม ตรู hack ไม่ได้ T_T"
Ps2 อ่านยากนิดครับ พอดี ใช้ opera เขียน ตัวหนังสือ มัน ตกๆหล่นๆ ยังไงก็พยายามเข้าละกันคับ