สมาร์ทโฟน&ไอที » วิธีการติด Google AdSense ใต้ post ใน SMF บอร์ด

วิธีการติด Google AdSense ใต้ post ใน SMF บอร์ด

5 มิถุนายน 2018
1724   0

.

วิธีการติด AdSense ใน SMF บอร์ด ให้อยู่ใต้ post นั้นมีวิธีการตั้งนี้..

1.เปิดไฟล์ Display.template.ph p ขึ้นมา (เราใช้ theme อะไร ก็เปิดใน theme นั้น)2. ค้นหาบรรทัด <div class=”signature”>’, $message[‘member’][‘signature’],

‘</div>’;

3. เมื่อเจอแล้ว ก็ให้แทรกโค๊ดข้างล่างนี้ลงไป
if ($message[‘id’] == $context[‘first_message’])echo’ <hr width=”100%” size=”1″ class=”hrcolor” />ใส่ code AdSense ของเรา’;
เช่น
—————–

โค๊ด: [Select]
 if ($message['id'] == $context['first_message'])

echo' <hr width="100%" size="1" class="hrcolor" />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-xxxxxxxxxxx";
/*post*/
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>';   

—————-

4. ปกติ code Adsense เริ่มต้นด้วย <script และจบด้วย </script> ซึ่งในการติด AdSense ในที่นี่ อย่าลืมเครื่องหมาย ‘; หลัง </script> นะครับ

5. upload ขึ้นไปแทนไฟล์เดิมได้เลยครับ หรือหากแก้ไขใน host โดยตรงก็ save ได้เลยครับ

4 comments

Wow, fantastic blog format! How lengthy have you been blogging for?

you made blogging look easy. The whole look of your web
site is excellent, as smartly as the content material! You can see
similar: dobry sklep
and here dobry sklep

I was suggested this web site via my cousin. I’m now not
sure whether this put up is written by him as no one else recognize such specific about my problem.
You’re amazing! Thanks! I saw similar here: sklep internetowy and also here:
sklep online

Way cool! Some extremely valid points! I appreciate you writing this write-up and also the
rest of the website is also very good. I saw similar here: Sklep internetowy

Analytical & Research Agency on มิถุนายน 5, 2018 11:17 am

It’s very interesting! If you need help, look here: ARA Agency

https://ara.cx/