หมวดไฟฟ้า/อิเล็กทรอนิกส์/คอมพิวเตอร์ => Programming => ห้องคอมพิวเตอร์ => ห้อง SMF 2.0.X => ข้อความที่เริ่มโดย: Auto Man ที่ 08 พฤษภาคม 2559, 10:33:04

หัวข้อ: ทำปุ่ม กด Like หรือปุ่มถูกใจให้กับ โพส และ ความเห็น
เริ่มหัวข้อโดย: Auto Man ที่ 08 พฤษภาคม 2559, 10:33:04
อ้างถึง
smf 2 นี่ทำปุ่ม กด Like หรือปุ่มถูกใจเหมือนpantip ให้กับ โพส และ ความเห็น แล้วให้แสดงชื่อคนกด Like ด้านล่างความเห็นด้วยครับ ทำได้มั้ยครับ

ท่านใดมีวิธีทำง่ายๆบ้างครับ

อยากได้จริงๆครับ

อ้างถึง
http://custom.simplemachines.org/mods/index.php?mod=2111

ลองดูครับ

ลองวิธีนี้น่ะ

เปิดไฟล์ Display.template.php

โค๊ด: [Select]
// 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>';

แทนที่ด้วย

โค๊ด: [Select]
// 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 มาโมเอาอีกที
หัวข้อ: smf 2 นี่ทำปุ่ม กด Like หรือปุ่มถูกใจเหมือน pantip ให้กับ โพส และ ความเห็น
เริ่มหัวข้อโดย: Auto Man ที่ 08 พฤษภาคม 2559, 14:30:05
น่าจะเป็นตัว Likeposts 2.0.5

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/58436731)

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/58436732)
หัวข้อ: smf 2 นี่ทำปุ่ม กด Like หรือปุ่มถูกใจเหมือน pantip ให้กับ โพส และ ความเห็น
เริ่มหัวข้อโดย: Auto Man ที่ 08 พฤษภาคม 2559, 16:52:14
จะนำมาปรับใช้กับเว็บเรา

ตรงนี้มีภาพ! แต่ท่านจะมองไม่เห็น , ท่านต้อง  สมัครสมาชิก หรือ ลงชื่อเข้าระบบ
 (http://upic.me/show/58437272)
หัวข้อ: smf 2 นี่ทำปุ่ม กด Like หรือปุ่มถูกใจเหมือน pantip ให้กับ โพส และ ความเห็น
เริ่มหัวข้อโดย: Sound Man ที่ 08 พฤษภาคม 2559, 17:01:15
ไปดูเขาใช้กันที่นี่ 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)
หัวข้อ: ทำปุ่ม กด Like หรือปุ่มถูกใจให้กับ โพส และ ความเห็น
เริ่มหัวข้อโดย: Auto Man ที่ 09 พฤษภาคม 2559, 08:21:59
  ตัวปรับให้แสดงผลเป็นภาษาไทย สร้างไฟล์ใหม่ชื่อ LikePosts.thai-utf8.php
ปรับประมาณบรรทัดที่ 36-47

โค๊ด: [Select]
//front end strings strings
$txt['lp_string_you_liked'] = 'คนถูกใจโพสท์นี้';
$txt['lp_string_you'] = 'You &amp;';
$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'] = 'แสดงกระทู้ที่ถูกใจทั้งหมดของคุณ';

มีไฟล์แนบปรับเป็นภาษาไทยแล้วบางส่วน ลองดู