เว็บบอร์ด SMF ที่อยากติด Adsense ผมมี script เนียนๆ มาแจก (ได้ตังวันละ $5)

เริ่มโดย หูกาง, 03 ตุลาคม 2008, 13:01:15

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

rakbeena

เหนื่อยๆๆๆ

[direct=http://www.thaiseoforum.com]SEO Adsense Adwords Forum [/direct]

niceke

เดือนละแสนไม่ใช่ฝัน เพราะเราก็ทำได้

khonthai


jaideeplazadotcom


wear428


aitim

[direct=http://www.aitim.co]
ไอติมจะครองโลก รีวิวหนัง ซีรีส์ อนิเมะ หนังสือ[/direct]

jiw


tenzamak

ผมบวกให้ท่านโปเกมม่อนสุดเทพเจ้าของกระทู้แล้วครับ กระทู้นี้น่าจะเอามารวบรวมความเทพของsmf เลยนะ
[direct=https://www.asiagb.com/hosting/]host[/direct]ราคาเริ่มต้นที่ 500/ปี
[direct=https://www.asiagb.com/host-inter/]host inter[/direct]ราคาเริ่มต้นที่ 500/ปี
[direct=https://www.asiagb.com/host-singapore/]hosting singapore[/direct]ราคาเริ่มต้นที่ 500/ปี
[direct=https://www.asiagb.com/vps-2/]vps[/direct]ราคาเริ่มต้นที่ 500/เดือน

หูกาง

อ้างถึงจาก: jiw ใน 03 ตุลาคม 2008, 18:43:15
ของผม มันขึ้น 3 ครั้งเลยอะ -*-

ใช้ปลั๊กอินหรือว่าทำแบบใส่ code เพียวๆ ครับ
[direct=http://easylotto.in.th]สูตรเลขยี่กี สูตรหวย สูตรเลขหุ้น[/direct]

Keawzaao

[direct=http://www.applesociety.com]Apple Society[/direct]
[direct=http://www.skygloryeducator.com]Skyglory Educator[/direct]

pheoniX

ทำไมผมทำไม่ได่อ่าครับ ช่วยแนะนำหน่อย ตัวอย่างก็ดีครับ
"รักเธอประเทศไทย"

หูกาง

อ้างถึงจาก: pheoniX ใน 03 ตุลาคม 2008, 20:35:38
ทำไมผมทำไม่ได่อ่าครับ ช่วยแนะนำหน่อย ตัวอย่างก็ดีครับ

ช่วยขยายความหน่อยครับว่าไม่ไ่ด้ยังไงบ้าง เช่นแอตไม่ขึ้น หรือเกิด error และใช้วิธีการแบบเอา code ใส่ไปเองหรือลง plugin
[direct=http://easylotto.in.th]สูตรเลขยี่กี สูตรหวย สูตรเลขหุ้น[/direct]


jiw

อ้างถึงจาก: หูกาง ใน 03 ตุลาคม 2008, 19:59:16
อ้างถึงจาก: jiw ใน 03 ตุลาคม 2008, 18:43:15
ของผม มันขึ้น 3 ครั้งเลยอะ -*-

ใช้ปลั๊กอินหรือว่าทำแบบใส่ code เพียวๆ ครับ


โค้ดเพียวๆเลยอะครับ

pheoniX

วิธีการเอาโค๊ดไปใส่ครับ ผมเอาไปใส่เองแล้วมัน error ถ้าเขียนตัวอย่างให้ผมดูด้วยจะดีมากเลยครับ  :-*
"รักเธอประเทศไทย"

หูกาง

อ้างถึงจาก: jiw ใน 03 ตุลาคม 2008, 20:47:12
อ้างถึงจาก: หูกาง ใน 03 ตุลาคม 2008, 19:59:16
อ้างถึงจาก: jiw ใน 03 ตุลาคม 2008, 18:43:15
ของผม มันขึ้น 3 ครั้งเลยอะ -*-

ใช้ปลั๊กอินหรือว่าทำแบบใส่ code เพียวๆ ครับ


โค้ดเพียวๆเลยอะครับ


ลองส่งไฟลืนั้นของท่านมาให้ดูหน่อยครับเดี่ยวจะลองแก้ไขแล้วส่งกลับไปให้

อ้างถึงจาก: pheoniX ใน 03 ตุลาคม 2008, 20:52:07
วิธีการเอาโค๊ดไปใส่ครับ ผมเอาไปใส่เองแล้วมัน error ถ้าเขียนตัวอย่างให้ผมดูด้วยจะดีมากเลยครับ  :-*

ในหน้าแรกก็ว่าบอกละเอียดแล้วนะครับ ขั้นตอนมันมีแค่นั้นจริงๆ ค้นหาบันทัดที่ว่าแล้ว past code ลงไปเท่าันั้นครับ

http://www.thaiseoboard.com/index.php/topic,38604.msg510830.html#msg510830
[direct=http://easylotto.in.th]สูตรเลขยี่กี สูตรหวย สูตรเลขหุ้น[/direct]

pizad_sura

อ้างถึงจาก: powerpc ใน 03 ตุลาคม 2008, 13:40:30
ขออนุญาตเพิ่มเติม

เอา mod ads ไปลงก็ได้ครับ หาไฟล์ต้นฉบับใน smf ไม่เจอ
[linkpr]http://www.isantoday.com/index.php?p=download&hash=crGc2uU2amh3[/linkpr]

*** เฉพาะ default theme เท่านั้น  ใช้งานเป็น English นะครับ เสร็จแล้วค่อยปรับเป็น Thai แต่ถ้าเป็นเมนูไทยก็เข้าไปที่ index.php?action=admod

เข้าไปส่วน Admin -> Packages -> Download Packages
จากนั้นก็ Browse ไฟล์ zip ที่ดาวน์โหลดไป
แล้วก็ [ Apply Mod ]
ไปล่างสุด Install Now

เสร็จแล้วจะมีเมนูด้านซ้าย ขึ้นว่า Ad Management ในส่วน Configuration ก็ไปจัดการเพิ่ม Ads ได้ตามต้องการ สามารถเลือกวางได้หลายตำแหน่ง ดังนี้

Display ads on every page right below the menu     
Display ads on board index    
Display ads on message index    
Display ads on the post page    
Display ads after the last post    
Display ads on every page on the top of the page    
Display ads in the welcome user area    
Display ads on the bottom of the page    
Display ads on every page as a tower on the left side    
Display ads on every page as a tower on the right side    
Display ads under child boards


ใช้ ธีมอื่นที่ไม่ใช่ Default เลยใช้ไม่ได้อ่ะครับ เหอๆ โฆษณามันจะขึ้นบางแห่งเท่านั้น

หูกาง

งั้นลองใส่แบบเพียวๆ สดๆ แบบเดิมของผมก็ได้ครับ ผมได้ลองแก้ไขให้ 2 ท่าน ไปแล้ว ซึ่งปัญหาที่เจอคือไฟล์ Display.template.php ของแต่ละท่านสั้น-ยาวไม่เท่ากันทำให้เวลาใส่ adsense ลงไปแล้วมันไม่แสดงโฆษณาตรงลายเซ็นต์...

วิธีการแทรก adsense ที่ได้ผลทำดังนี้นะครับ
1. เปิดไฟล์ Display.template.php ขึ้นมาด้วยโปรแกรม Macromedia Dreamweaver (Themes/default/Display.template.php)
2. ค้นหาข้อความ <div class="signature"> ด้วยการกดที่คีย์บอร์ด CTRL+F วางข้อความ <div class="signature"> นี้ลงไปแล้วกดที่ปุ่ม Fine Next
3. เมื่อเจอข้อความนั้นแล้วให้แทรก code ด้านล่างนี้ลงไปใต้บันทัดที่เราค้นหามันเจอครับ

<div class="signature">', $message['member']['signature'], '</div>'; <--- บันทัดที่เราเจอ

---------------------------------------- เติม code ด้านล่างนี้ลงไป -------------------------------------



if ($message['id'] == $context['first_message'])

echo' <hr width="100%" size="1" class="hrcolor" />
<script type="text/javascript">
google_ad_client = "pub-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
google_ad_slot = "xxxxxxxxxxxxxxxxxxxxxxx";
google_ad_width = "728";
google_ad_height = "90";
google_color_border = "ECEDF3";
google_color_bg = "ECEDF3";
google_color_link = "476C8E";
google_color_text = "333333";
google_color_url = "333333";
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';



------------------------------------- จบการเติม code -------------------------------------------------

      echo '               
                  </td>
               </tr>
            </table>
            
         </td></tr>
      </table>
   </td></tr>';
   }


ภาพตัวอย่าง



วิธีการนี้ใช้ได้กับทุก theme นะครับ เพียงแต่เราต้องเปลี่ยนสี adsense ให้มันกลมกลืนไปกับสีของ theme นั้นๆ เท่านั้นเอง (ไม่เปลี่ยนสีก็ได้ถ้าชอบสี adsense แบบนี้อยู่แล้ว)

:)
[direct=http://easylotto.in.th]สูตรเลขยี่กี สูตรหวย สูตรเลขหุ้น[/direct]

mayzdream

[direct=http://tanatestate.com]รับฝากขายบ้าน ที่ดิน คอนโด[/direct]
[direct=http://www.thaihomeupdate.com]ลงประกาศซื้อขายบ้าน คอนโด ที่ดิน และอสังหาฯอื่นๆ ฟรี!![/direct]
[direct=https://goo.gl/u39tgV]ร้านอาหารริมแม่น้ำท่าจีน[/direct]
[direct=http://line.me/S/sticker/1407062]สติ๊กเกอร์ไลน์ coolๆ สำหรับ freelance[/direct]
[direct=http://หาที่ดิน.net]ขายเช่าซื้อที่ดินทำเลดี[/direct]

jiw