ถ้าไม่ใช่มอด ต้องนี่เลย ==> (SMF) เพิ่ม banner หรือ ตัวนับสถิติ บริเวน footer
อยากใส่banner หรือตัวนับบ้างไม่รู้จะทำอย่างไร ลองค้นๆ จากหลายๆ เวปในที่สุดก็ได้วิธีมาจาก
ได้มาแล้วก็กลัวจะลืม เราเองก็ป้ำๆ เป๋อๆ อยู่ด้วย เอามารวบรวมไว้ดีกว่า
เริ่มแรกต้องรู้ก่อนว่าจะต้องแก้ไขไฟล์ไหน ผมใช้ default theame ครับ วิธีแก้ก็ดังนี้
ไฟล์ที่ต้องแก้ไข [ฟอรั่ม]/Themes/default/index.template.php
บริเวณที่ต้องค้นหาเพื่อทำการแก้ไข
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">';
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span>[/url]</li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span>[/url]</li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span>[/url]</li>
</ul>';
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง
สมัครสมาชิก หรือ
ลงชื่อเข้าระบบแก้ไข โดยเพิ่ม code ที่ต้องการเข้าไป ในที่นี้ผมทำไว้เป็นไฟล์ชื่อ banner2.txt โดย upload file ไปไว้ที่ folder หลักของบอร์ดนะครับ
code banner2.txt
<!-- Histats.com START -->
<a href="http://www.histats.com" target="_blank" title="histats.com" >
<script type="text/javascript" language="javascript">
.....
.....
....
</noscript>
<!-- Histats.com END -->
code เมื่อทำการแก้ไขเสร็จเรียบร้อย // Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<div id="footer_section"><div class="frame">';
include_once('banner2.txt');
echo '
<ul class="reset">
<li class="copyright">', theme_copyright(), '</li>
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span>[/url]</li>
', !empty($modSettings['xmlnews_enable']) && (!empty($modSettings['allow_guestAccess']) || $context['user']['is_logged']) ? '<li><a id="button_rss" href="' . $scripturl . '?action=.xml;type=rss" class="new_win"><span>' . $txt['rss'] . '</span>[/url]</li>' : '', '
<li class="last"><a id="button_wap2" href="', $scripturl , '?wap2" class="new_win"><span>', $txt['wap2'], '</span>[/url]</li>
</ul>';
เครดิต :
http://www.jaikonjaunt.com/board/index.php?topic=67.0