ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comพัฒนาเว็บไซต์CMS & Free Script[smf 2.0x] เจอแล้ววิธี ติด adsense บริเวณด้านซ้ายใต้ชื่อ User ในบอร์ด?
หน้า: [1]   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: [smf 2.0x] เจอแล้ววิธี ติด adsense บริเวณด้านซ้ายใต้ชื่อ User ในบอร์ด?  (อ่าน 1091 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
fotoglee
ก๊วนเสียว
*

พลังน้ำใจ: 8
ออฟไลน์ ออฟไลน์

กระทู้: 253



ดูรายละเอียด เว็บไซต์
« เมื่อ: 21 เมษายน 2014, 09:52:17 »

[smf 2.0x] เจอแล้ววิธี ติด adsense บริเวณด้านซ้ายใต้ชื่อ User ในบอร์ด ?

อยากติดบริเวณ ตีกรอบสีแดง ด้านล่างนี้ เหมือนมีคนเคยสอน ที่บอร์ดนี้แต่ผมหากระทู้ไม่เจอแล้ว คนสอนถ้าจำไม่เป็นใช้ชื่อสมาชิกว่า หูกาง



----------
เจอวิธีแล้วนะครับ

เจอแหละครับ เครดิต คุณ หูกาง

การใส่โฆษณาใต้ชื่อ User ในบอร์ด SMF

1. เปิดไฟล์ 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>';


« แก้ไขครั้งสุดท้าย: 21 เมษายน 2014, 22:33:29 โดย fotoglee » บันทึกการเข้า

Permlogin
ก๊วนเสียว
*

พลังน้ำใจ: 33
ออฟไลน์ ออฟไลน์

กระทู้: 476



ดูรายละเอียด เว็บไซต์
« ตอบ #1 เมื่อ: 21 เมษายน 2014, 12:19:42 »

อยากรู้ เหมือน กัน ในกระทู้ ด้วยครับ อยากทราบมาก  wanwan011
บันทึกการเข้า

sittichok
คนรักเสียว
*

พลังน้ำใจ: 16
ออฟไลน์ ออฟไลน์

กระทู้: 180



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 21 เมษายน 2014, 12:25:06 »

อยากรู้เหมือนกันครับ
บันทึกการเข้า

pingenter
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 284
ออฟไลน์ ออฟไลน์

กระทู้: 2,650



ดูรายละเอียด
« ตอบ #3 เมื่อ: 21 เมษายน 2014, 12:54:32 »

ไม่รู้ว่าใช่อันนี้หรือป่าวมันนานมากแล้ว wanwan016
http://www.thaiseoboard.com/index.php/topic,38604.0.html
และ http://www.thaiseoboard.com/index.php/topic,40346.0.html
บันทึกการเข้า
imdroid
คนรักเสียว
*

พลังน้ำใจ: 21
ออฟไลน์ ออฟไลน์

กระทู้: 125



ดูรายละเอียด
« ตอบ #4 เมื่อ: 21 เมษายน 2014, 13:12:03 »

โค๊ด:
Display.template.php 
ของ theme นั้นๆครับ
บันทึกการเข้า

โค๊ด:
printf("Hello World");
fotoglee
ก๊วนเสียว
*

พลังน้ำใจ: 8
ออฟไลน์ ออฟไลน์

กระทู้: 253



ดูรายละเอียด เว็บไซต์
« ตอบ #5 เมื่อ: 21 เมษายน 2014, 22:02:33 »

โค๊ด:
Display.template.php 
ของ theme นั้นๆครับ

รู้ครับ Display.template.php แต่ว่ามันอยู่ตรงไหน บรรทัดไหน อย่างไร
บันทึกการเข้า

fotoglee
ก๊วนเสียว
*

พลังน้ำใจ: 8
ออฟไลน์ ออฟไลน์

กระทู้: 253



ดูรายละเอียด เว็บไซต์
« ตอบ #6 เมื่อ: 21 เมษายน 2014, 22:24:16 »

เจอแล้วเครดิต คุณหูหาง

การใส่โฆษณาใต้ชื่อ User ในบอร์ด SMF

1. เปิดไฟล์ 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>';

« แก้ไขครั้งสุดท้าย: 21 เมษายน 2014, 22:34:51 โดย fotoglee » บันทึกการเข้า

jaaxy
สมุนแก๊งเสียว
*

พลังน้ำใจ: 43
ออฟไลน์ ออฟไลน์

กระทู้: 756



ดูรายละเอียด
« ตอบ #7 เมื่อ: 21 เมษายน 2014, 23:05:58 »

ขอบคุณครับ
บันทึกการเข้า
หน้า: [1]   ขึ้นบน
พิมพ์