##### รวมวิธีการปรับแต่ง SMF Modifications #####

เริ่มโดย oเซโรงังo, 03 พฤศจิกายน 2011, 13:57:07

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

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

oเซโรงังo

ก่อนลง MOD พวกนี้ให้ทำการ Backup ไฟล์จากต้นฉบับของท่านไว้ก่อนไม่งั้นบอร์ดเจ๊งไม่รับประกันด้วยนะครับ :wanwan013:
Mods แบบ Manual เท่านั้นครับ
หากเห็นว่ามีประโยชน์ขอ  1 ด้วยนะครับ ^^ :wanwan012:
กระทู้รวมเทคนิคการปรับแต่งบอร์ด SMF เทคนิคสำหรับมือใหม่

MOD : Facebook Like ง่ายๆ แก้ไฟล์เดียว (โชว์รูป)
สิ่งที่ต้องเตรียม
ไฟล์ Display.template.php ของธีมที่ใช้

เปิดไฟล์ ไฟล์ Display.template.php ค้นหา
// Show the post itself, finally!

แล้วเอาโค๊ดนี้ไปแทรกๆ ซุกๆ ไว้แถวๆ นั้นครับ
if ($message['id'] == $context['first_message'])
echo' <script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" show_faces="true" width="600" font="arial"></fb:like>';


เรียบร้อยครับ
ที่จริงเราสามารถเลือกวางที่ตำแหน่งไหนก็ได้ครับ เพราะโค๊ดหลักๆก็คือ

<script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:like href="', $scripturl, '?topic=', $context['current_topic'], '" show_faces="true" width="600" font="arial"></fb:like>

ท่านสามารถที่จะปรับแต่งหรือจะไป Gen. Code มาใหม่ก็ได้ครับที่ http://developers.facebook.com/docs/reference/plugins/like/  แล้วคัดลอกโค๊ดมาแก้ตรง
<fb:like href="อะไรก็ว่าไป"

ให้เป็น
<fb:like href="', $scripturl, '?topic=', $context['current_topic'], '"



MOD นี้จากท่าน civilclub.net แห่ง Zone-IT

############################################

อ้างอิงจาก www.webddee.com  
เครดิตผู้พัฒนา www.icez.net

<!-- อัพโหลดรูป by icez.net and upic.me Edit นิดหน่อย by WebdDee.Com-->
<br>
<FONT SIZE="" COLOR="#0099FF">อัพโหลดรูป</FONT>
<br><br />
<script type="text/javascript" src="http://upic.me/js/embedupload.js"></script>
<script type="text/javascript">
upic_target = document.postmodify.message;
upic_type = "bbfull";
upic_buttoncss  = "color:#0099FF;";
</script>


เอาไปยัดใส่ในไฟล์ Post.template.php นะครับ แล้วก็หาคำว่า
// Finally, the submit buttons.
echo '


จาก Black3ten แห่ง Zone-IT

เดียวจะมาอัพเดทที่กระทู้นี้เรื่อย ๆ นะครับ
ขอใช้กระทู้นี้เป็นแหล่งบทความที่มือใหม่
ที่จะต้องการปรับแต่ง SMF ด้วยตนเอง
เมื่อจบการลง mod แต่ละ mod จะเป็นเครื่องหมาย ### เพื่อคั้นบรรทัดนะครับ

ตัวตุ่น

แหล่งรวม[direct=http://www.appandroidzone.com/]app android[/direct]มากมายไว้ที่นี่ สนุกสุดยอด[direct=http://xn--12ca0d8b3b5hd1d0b.net/]เกมส์เด็ก[/direct][direct=http://xn--12ca0d8b3b5hd1d0b.net/]เกมส์[/direct][direct=http://www.taradtruck.com/]รถสิบล้อมือสอง[/direct]
[direct=http://www.mgthailand.club/]mg club[/direct]

oเซโรงังo

#2
เพิ่มความเสียว(SEO)ด้วย H1 Tags

ที่มา : http://custom.simplemachines.org/mods/index.php?mod=2554

เปิดไฟล์ index.template.php ของ Themes ที่ใช้

index.template.php

หา
foreach ($context['linktree'] as $link_num => $tree)

แทนที่ด้วย
$i = 1;
$count = count($context['linktree']);
foreach ($context['linktree'] as $link_num => $tree)


หา
// Show the link, including a URL if it should have one.

แทนที่ด้วย
if($count == $i)
echo'<h1 style="font-size: 1em; display: inline;">';

// Show the link, including a URL if it should have one.


หา
// Show something after the link...?

เอาไว้ก่อนที่หา
if($count == $i)
echo'</h1>';
$i  ;

Mod นี้จาก Putter แห่ง Zone-IT แต่เห็นอยู่ไทยเสียวนี้ด้วย ^^

#########################################
มาใส่แบนเนอร์ที่ช่องตอบด่วนแบบ Deksiam.net กัน
เปิดไฟล์ Display.template.php

หา
<tr id="quickReplyOptions"', $options['display_quick_reply'] == 2 ? '' : ' style="display: none"', '>
<td class="windowbg" width="25%" valign="top">', $txt['quick_reply_2'], $context['is_locked'] ? '<br /><br /><b>' . $txt['quick_reply_warning'] . '</b>' : '', '</td>
<td class="windowbg" width="75%" align="center">
<form action="', $scripturl, '?action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">


แล้วเปลี่ยนเป็น
<td class="windowbg" width="25%" valign="top"><script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* 250x250, ???????????????? 1/15/10 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
<td class="windowbg" width="75%" align="center">
<form action="', $scripturl, '?action=post2" method="post" accept-charset="', $context['character_set'], '" name="postmodify" id="postmodify" onsubmit="submitonce(this);" style="margin: 0;">


ตรง
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxx";
/* 250x250, ???????????????? 1/15/10 */
google_ad_slot = "xxxxxxxxxx";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

ให้เปลี่ยนเป็นแอดเซ็นเป็นของเราครับครับ

Mod นี้จาก deksiam แห่ง Zone-IT

bad_comment


oเซโรงังo

อ้างถึงจาก: bad_comment ใน 03 พฤศจิกายน 2011, 14:18:04
มีแบบนี้บ้างป่าวครับ  :wanwan012:
http://www.thaiseoboard.com/index.php/topic,236166.0.html
น่าจะขึ้นอยู่กับการตั้งภาษาว่าตอนลงตั้งเป็น TIS-620 หรือ UTF-8 อะครับ :P

kisschy

อ้างถึงจาก: bad_comment ใน 03 พฤศจิกายน 2011, 14:18:04
มีแบบนี้บ้างป่าวครับ  :wanwan012:
http://www.thaiseoboard.com/index.php/topic,236166.0.html

เคยผ่านตาอยู่นา แต่มันนานมากแล้วครับ ยังไงก็ลองหาดูใน http://custom.simplemachines.org/mods keyword message first topic page ประมาณนี้แหละครับ

bad_comment

อ้างถึงจาก: oเซโรงังo ใน 03 พฤศจิกายน 2011, 14:21:12
อ้างถึงจาก: bad_comment ใน 03 พฤศจิกายน 2011, 14:18:04
มีแบบนี้บ้างป่าวครับ  :wanwan012:
http://www.thaiseoboard.com/index.php/topic,236166.0.html
น่าจะขึ้นอยู่กับการตั้งภาษาว่าตอนลงตั้งเป็น TIS-620 หรือ UTF-8 อะครับ :P

ไม่เกียวกันเรื่องตัวอักษรครับ
อ้างถึงจาก: kisschy ใน 03 พฤศจิกายน 2011, 14:26:49
อ้างถึงจาก: bad_comment ใน 03 พฤศจิกายน 2011, 14:18:04
มีแบบนี้บ้างป่าวครับ  :wanwan012:
http://www.thaiseoboard.com/index.php/topic,236166.0.html

เคยผ่านตาอยู่นา แต่มันนานมากแล้วครับ ยังไงก็ลองหาดูใน http://custom.simplemachines.org/mods keyword message first topic page ประมาณนี้แหละครับ

หาไม่เจอ

kisschy


bad_comment


Papza_allnew

[direct=http://www.thaiasungha.com]ไทยอสังหา ที่อยู่เรา คุณเลือกเองได้[/direct]

del555






Naskung

[direct= [/direct]
[direct= [/direct]
[direct= [/direct]
[direct= [/direct]

Luckyz

[direct=http://www.web-pra.com/Shop/GoodLuckAmulet]ร้านนะโม โคราช[/direct]
[direct=https://www.youtube.com/channel/UCxMer0SVddC3-tjMJnJEtkw] บ้านแสนสุข LovePopeBell [/direct]

xMass

[direct=http://www.youtube.com/watch?v=t4puPG8nu-Y]Snow Patrol - In The End (Whateverman Remix)[/direct]

sodsaikung

มีวิธีการปรับแต่ง(เคล็บลับวิชาของไทยเสียว)ป่าวครับ 5 5 5
ผมแซวเล่นนะ
เพราะเห็นแรงจริงๆindexไว หน้า1 ไว อันดับ1 ไว ทุกคีย์เลยT_T