[smf 2.0x] เจอแล้ววิธี ติด adsense บริเวณด้านซ้ายใต้ชื่อ User ในบอร์ด ?
อยากติดบริเวณ ตีกรอบสีแดง ด้านล่างนี้ เหมือนมีคนเคยสอน ที่บอร์ดนี้แต่ผมหากระทู้ไม่เจอแล้ว คนสอนถ้าจำไม่เป็นใช้ชื่อสมาชิกว่า หูกาง

----------
เจอวิธีแล้วนะครับ
เจอแหละครับ เครดิต คุณ หูกาง
การใส่โฆษณาใต้ชื่อ User ในบอร์ด SMF1. เปิดไฟล์ Themes/default/Display.template.php
(หรือถ้าใน theme ที่คุณใช้อยู่มีไฟล์ Display.template.php ก็แก้ไขไฟล์นี้ใน theme ที่คุณใช้อยู่)2. ค้นหาข้อความนี้ครับ
// Done with the information about the poster... on to the post itself.
3. จากนั้นแทรกโฆษณา Adsense ลงไปแบบนี้ครับ
ก่อนโมดิฟายเป็นแบบนี้ // Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';
หลังโมดิฟายเป็นแบบนี้ // Done with the information about the poster... on to the post itself.
if ($message['id'] == $context['first_message'])
echo '<br>
<script type="text/javascript">
google_ad_client = "pub-xxxxxxxxxxxx";
google_ad_slot = "xxxxxxxxxxxxxx";
google_ad_width = 120;
google_ad_height = 240;
google_color_border = "รหัสสี";
google_color_bg = "รหัสสี";
google_color_link = "รหัสสี";
google_color_text = "รหัสสี";
google_color_url = "รหัสสี";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js
">
</script>'; echo' </div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';