ขอคำแนะนำใส่ adsense ใน forum เวบผมใช้ SMF 2.0 Beta 1 ต้องแก้ตรงส่วนไหนครับTheam CSS ผมอยากใส่ adsnesen ไว้ด้านบนของเวบ ข้างใต้
หน้าแรก หน้าแรก(nocafe) ช่วยเหลือ ค้นหา ข้อมูลส่วนตัว ข้อความส่วนตัว กระทู้ที่เก็บไว้ สมาชิก ออกจากระบบ
----------------------------------------------------------------------------------------------------
ต้องการใส่ตรงนี้ใครรู้ช่วยทีครับ
ขอบคุณครับ
ใครรู้ช่วยที
มีกระทู้นึงเขียนวิธีไว้น่ะครับ ไปหาอ่านดู
ป.ล. ตอนนี้เขาออก Beta 4 ครับ -_-a
พอจะมี link เปล่าครับ ใครเจอบอกทีครับ
อ้างถึงจาก: au8ust ใน 24 ตุลาคม 2008, 16:15:42
มีกระทู้นึงเขียนวิธีไว้น่ะครับ ไปหาอ่านดู
ป.ล. ตอนนี้เขาออก Beta 4 ครับ -_-a
ใช้ ไอตัวนี้อ่ะคับ
เป็น Mod เพิ่ม วิธีใช้หาเอาเองนะคับ ผมลิมไปแว้ว
http://rapidshare.com/files/158696442/globalheadersfooters.zip.html
ถ้าจะใส่เอง เปิด ไฟล์ธีม แล้วหา
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">
วางไปข้างบนนี้อ่ะครับ (อยู่ใต้ header ข้างบนตามที่บอกพอดี) แต่ไม่รู้ว่ามันจะเละมั้ยนะครับ
ไม่ค่อยจะกล้าใช้ beta อยู่ แล้วก็ไม่มีภาษาไทยด้วยง่ะ เหอๆๆๆ :D
@pizad_sura - ภาษาไทยมีแล้วครับ..
*http://www.simplemachines.org/download/index.php?thanks;filename=smf_2-0-beta4p_thai.zip
*http://www.simplemachines.org/download/index.php?thanks;filename=smf_2-0-beta4p_thai-utf8.zip
beta มันวาง ads ไม่ได้หรือครับ
หา index.tamplate.php ของธีมนั้น แล้ว ของทำดูนะครับ
:D :D
เดี๋ยวจะลองทำดูบ้าง
ขอบคุณครับ
8) 8)
อ้างถึงจาก: ark_inn ใน 29 ตุลาคม 2008, 22:29:36
ถ้าจะใส่เอง เปิด ไฟล์ธีม แล้วหา
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">
วางไปข้างบนนี้อ่ะครับ (อยู่ใต้ header ข้างบนตามที่บอกพอดี) แต่ไม่รู้ว่ามันจะเละมั้ยนะครับ
ขอบคุณมากครับ ลองกับเวอร์ชั่น 1.1.8 ใช้ได้ครับ ::)
SMF 2.0 Release Candidate 1 is out! (http://"http://www.simplemachines.org/community/index.php?topic=290609.0")
Simple Machines is proud to announce the release of SMF 2.0 RC1. This first Release Candidate for 2.0 concludes the period of beta testing and is one of last steps towards 2.0 going gold. Numerous ...
http://www.simplemachines.org/download/index.php?thanks;filename=smf_2-0-rc1_thai-utf8.tar.bz2
http://www.thaiseoboard.com/index.php/topic,40432.0.html
พอไหมจ๊ะ
themes\theme-name\index.template.php
หา theme_linktree(); ถ้าเป็น default template จะมี template_menu(); อยู่ก่อนหน้าครับ ใส่ adcode ระหว่างนี้่ได้เลย
ส่วน theme_linktree(); อันนี้คือ navigator menu ครับ ที่เป็น navigator link ตรงใต้ menu bar เวลาเรากดเข้า forum ลึกๆ
ถ้าวาง adcode ไว้ด้านบนของ linktree ก็คือไว้ใต้ menu นั่นแหละ
เวลาจะลงโฆษณาใน php ก็ใช้ echo ครับ จะทำให้ดูง่ายก็ใส่ไปแบบนี้
// Show the menu here, according to the menu sub template.
template_menu();
// Google AdSense Top Banner
echo '
<br> // เว้นบรรทัดครับ
<center> // adjust ให้โฆษณาอยู่ตรงกลางครับ
<script type="text/javascript"><!--
google_ad_client = "pub-2818505735607471";
/* XG BBS topbanner */
google_ad_slot = "4587820559";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center> // อย่าลืมจบคำสั่งที่ทำให้โฆษณาอยู่ตรงกลางครับ
';
// Show the navigation tree.
theme_linktree();
นี่คือที่ผมใช้อยู่หนะครับ เป็น html ง่ายๆ ตัวอย่างดูได้ที่ bbs.xgaming.in.th