ผมอยากทราบว่า ถ้าต้องการที่จะให้ เว็บบอร์ด มีการแจ้งเตือน ทุกๆครั่งที่มีการตอบกลับความคิดเห็นย่อย จะต้องทำอย่างไรครับ
เพราะผลได้ทดลองทำแล้ว ปรากฏว่า มีการแสดงแจ้งเตือนเพียงแค่บางครั่ง ครับ
อยากทราบว่า ถ้าหากต้องการให้มีการแจ้งเตือนทุกครั่ง ที่มีการตอบกลับโพส ใน phpbb
Moderator: mindphp, ผู้ดูแลกระดาน
- Ittichai_chupol
- PHP VIP Members
- โพสต์: 5410
- ลงทะเบียนเมื่อ: 19/09/2018 10:33 am
อยากทราบว่า ถ้าหากต้องการให้มีการแจ้งเตือนทุกครั่ง ที่มีการตอบกลับโพส ใน phpbb
ขอให้วันนี้เป็นวันที่ดี
- thatsawan
- PHP VIP Members
- โพสต์: 28508
- ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
- ติดต่อ:
Re: อยากทราบว่า ถ้าหากต้องการให้มีการแจ้งเตือนทุกครั่ง ที่มีการตอบกลับโพส ใน phpbb
ปกติ phpbb ไม่มี ตอบความคิดเห็นยอ่ย
จะให้ช่วยอะไร
ทดสอบอะไรค่ะเพราะผลได้ทดลองทำแล้ว ปรากฏว่า มีการแสดงแจ้งเตือนเพียงแค่บางครั่ง ครับ
จะให้ช่วยอะไร
- Ittichai_chupol
- PHP VIP Members
- โพสต์: 5410
- ลงทะเบียนเมื่อ: 19/09/2018 10:33 am
Re: อยากทราบว่า ถ้าหากต้องการให้มีการแจ้งเตือนทุกครั่ง ที่มีการตอบกลับโพส ใน phpbb
คือ ผมลอง ปรับแต่งการแจ้งเตือน เพื่อมาใช้กับ กับ ความคิดเห็นย่อย ให้พอมีการตอบกลับแบบความคิดเห็นย่อยมีการแจ้งเตือนขึ้นมา ครับ
ขอให้วันนี้เป็นวันที่ดี
- Ittichai_chupol
- PHP VIP Members
- โพสต์: 5410
- ลงทะเบียนเมื่อ: 19/09/2018 10:33 am
Re: อยากทราบว่า ถ้าหากต้องการให้มีการแจ้งเตือนทุกครั่ง ที่มีการตอบกลับโพส ใน phpbb
โค้ด: เลือกทั้งหมด
public function find_users_for_notification($data, $options = array()) {
// $this->notifications_table $this->notification_types_table
// print_r($data);
$update_notifications = array();
$sql = 'SELECT n.*
FROM ' . NOTIFICATIONS_TABLE . ' n, ' . NOTIFICATION_TYPES_TABLE . ' nt
WHERE n.notification_type_id = ' . (int) $this->notification_type_id . '
AND n.item_parent_id = ' . (int) self::get_item_parent_id($data) . '
AND n.notification_read = 0
AND nt.notification_type_id = n.notification_type_id
AND nt.notification_type_enabled = 1';
//echo $sql;
$result = $this->db->sql_query($sql);
$nofify_user = $this->db->sql_fetchrow($result);
if ($nofify_user) {
// print_r($nofify_user); exit;
foreach ($nofify_user as $row) {
// Do not create a new notification
//unset($notify_users[$row['user_id']]);
$notification = $this->notification_manager->get_item_type_class($this->get_type(), $nofify_user);
$update_responders = $notification->add_responders($data);
if (!empty($update_responders)) {
$sql = 'UPDATE ' . $this->notifications_table . '
SET ' . $this->db->sql_build_array('UPDATE', $update_responders) . '
WHERE notification_id = ' . $nofify_user['notification_id'];
$this->db->sql_query($sql);
}
}
} else {
$users = array();
$users[$data['user_id']] = array('');
$this->user_loader->load_users(array_keys($users));
return $this->check_user_notification_options(array_keys($users), $options);
}
}
ส่วนการทำงาน นี้เป็นส่วนสุดท้ายที่ บางครั่ง หลังจากมาถึง ส่วนนี้ก็ไม่มีการส่งค่าไปต่อที่อื่น ทำให้ไม่สามรถที่จะบันทึก ผล ไปยังตาราง notification ได้
ขอให้วันนี้เป็นวันที่ดี
-
- Similar Topics
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
-
โพสต์ใหม่ [Extension phpBB3.1.1] phpBB Media Embed PlugIn ปลั๊กอิน phpBB แนบสื่อ
โดย จันนุสรณ์ ดีแก่ » 25/01/2019 12:18 pm » ใน phpBB 3.1 Extension Review - 1 ตอบกลับ
- 9264 แสดง
-
โพสต์ล่าสุด โดย Ittichai_chupol
25/01/2019 7:18 pm
-
-
-
โพสต์ใหม่ วิธีแก้ปัญหา ปัญหา string conversion [phpBB Debug] PHP Notice: ใน phpBB 3
โดย mindphp » 15/10/2018 12:27 pm » ใน Programming - PHP - 1 ตอบกลับ
- 6165 แสดง
-
โพสต์ล่าสุด โดย mindphp
15/10/2018 12:28 pm
-
-
-
โพสต์ใหม่ phpBB Debug ตอนติดตั้ง Extension /phpbb/db/tools.php on line 1450:
โดย thatsawan » 28/03/2015 3:14 pm » ใน Programming - PHP - 0 ตอบกลับ
- 4612 แสดง
-
โพสต์ล่าสุด โดย thatsawan
28/03/2015 3:14 pm
-
-
- 0 ตอบกลับ
- 4584 แสดง
-
โพสต์ล่าสุด โดย mindphp
18/04/2015 4:49 am
-
-
โพสต์ใหม่ Fatal error: Call to undefined method phpbb\profilefields\manager::enable_profilefields() phpBB 3.1.6
โดย thatsawan » 24/10/2015 12:07 am » ใน Programming - PHP - 0 ตอบกลับ
- 2951 แสดง
-
โพสต์ล่าสุด โดย thatsawan
24/10/2015 12:07 am
-
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 111