หมวดไฟฟ้า/อิเล็กทรอนิกส์/คอมพิวเตอร์ => Programming => ห้องคอมพิวเตอร์ => ห้อง SMF 2.0.X => ข้อความที่เริ่มโดย: Auto Man ที่ 08 พฤษภาคม 2559, 10:33:04
-
smf 2 นี่ทำปุ่ม กด Like หรือปุ่มถูกใจเหมือนpantip ให้กับ โพส และ ความเห็น แล้วให้แสดงชื่อคนกด Like ด้านล่างความเห็นด้วยครับ ทำได้มั้ยครับ
ท่านใดมีวิธีทำง่ายๆบ้างครับ
อยากได้จริงๆครับ
http://custom.simplemachines.org/mods/index.php?mod=2111
ลองดูครับ
ลองวิธีนี้น่ะ
เปิดไฟล์ Display.template.php
// 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.
//--------start twitter--------------
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>| <a href="http://twitter.com/home?status=', $message['subject'], ' {', $scripturl, '?topic=', $context['current_topic'], '} d-sign8.com/board/ " target="_blank"><img src="http://tonoclub.com/pic/witter.png" title="โพสกระทู้นี้ลงทวิตเตอร์"></a> | <a href="http://www.facebook.com/share.php?u=', $scripturl, '?topic=', $context['current_topic'], '" target="_blank"><img src="http://tonoclub.com/pic/facebook.png" title="โพสกระทู้นี้ลง facebook ของคุณ "></a></td><td align="left" valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '"> <a href="', $message['href'], '">', $message['subject'], '</a> </div>';
//--------END twitter--------------
อย่าลืม backup ไฟล์ไว้ด้วย จะได้ไม่ลำบากในการแก้ไขกลับ
เอามาจาก http://forum.konbandung.com
เค้าเรียกกันว่า Thank Cool มีคนทำขึ้นมาเอง รู้สึกว่าจะยังไม่ค่อยดี ลองไปค้นดูใน google ได้ครับ
หรือที่นี่ http://www.zone-it.com/40887
แต่ว่าบางเว็บเค้าใช้ Thank-O-Matic มาโมเอาอีกที
-
น่าจะเป็นตัว Likeposts 2.0.5
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58436731)
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58436732)
-
จะนำมาปรับใช้กับเว็บเรา
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58437272)
-
ไปดูเขาใช้กันที่นี่ http://www.neo-club.com/forums/index.php/topic,48743.0.html
Total Likes = คะแนนความนิยม
Like = ถูกใจ
UnLike = ไม่ชอบใจ
Show Likes noticfications = แสดงกระทู้ที่ถูกใจทั้งหมดของคุณ
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58437580)
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58437593)
ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
(http://upic.me/show/58437640)
-
ตัวปรับให้แสดงผลเป็นภาษาไทย สร้างไฟล์ใหม่ชื่อ LikePosts.thai-utf8.php
ปรับประมาณบรรทัดที่ 36-47
//front end strings strings
$txt['lp_string_you_liked'] = 'คนถูกใจโพสท์นี้';
$txt['lp_string_you'] = 'You &';
$txt['lp_string_other_people_liked'] = '%1$d other person liked this';
$txt['lp_string_other_multiple_people_liked'] = '%1$d other people liked this';
$txt['lp_string_people_liked'] = '%1$d คน ถูกใจโพสท์นี้';
$txt['lp_string_multiple_people_liked'] = '%1$d people liked this';
$txt['lp_like'] = '❤ ถูกใจโพสท์นี้';
$txt['lp_unlike'] = 'ยกเลิก';
$txt['lp_total_likes'] = 'ได้คะแนนถูกใจ';
$txt['like_show_notifications'] = 'แสดงกระทู้ที่ถูกใจทั้งหมดของคุณ';
มีไฟล์แนบปรับเป็นภาษาไทยแล้วบางส่วน ลองดู