
內容簡介
當有人發表評論時,您將收到像 Facebook 一樣的氣泡通知。
實時預覽:http://kentothemes.com/demo/kento-notify/
外掛功能
通知氣泡。
已讀/未讀標記。
已登錄用戶可以將已讀/未讀標記保存到數據庫中。
發表評論者的頭像。
當懸停在通知上時,顯示評論內容。
它是如何運作的?
我們使用 wp.comments 表格來提取已批准的評論,並顯示在通知列表中,並獲取訪問者(客戶端)電腦上的當前時間來計算評論時間和當前時間之間的差異。
如果用戶已登錄,則會將背景顏色設置為單個通知已讀的狀態,當用戶單擊單個通知時,它會變成白色並標記為已讀,將計算通知氣泡的當前總通知數。
如果用戶沒有登錄,則不會將數據保存到數據庫中,也不會計算當前通知氣泡總數。
外掛標籤
開發者團隊
原文外掛簡介
Get notified by bubble like facebook if some one posted comment on post.
Live Preview: http://kentothemes.com/demo/kento-notify/
Plugin Features
Notification Bubble.
Read/Unread marker.
loggedin user can Save Read/Unread marker to database.
Gravatar image of commenter.
Comment content on hover notification.
How Its Work ?
we use wp.comments table to fetch approved comments and display in notification list and get current time on visitors(clients) computer to calculate difference comment time and current time.
and if user logged-in then set a background color to single notification to mark as unread and when user click on single notification then it will change color to white and mark as read will calculate notification bubble total current notification.
if user not logged-in then won’t save data to database and will not calculate current bubble total notification.
