[WordPress] 外掛分享: TalkJS

首頁外掛目錄 › TalkJS
WordPress 外掛 TalkJS 的封面圖片
40+
安裝啟用
尚無評分
27 天前
最後更新
問題解決
WordPress 4.4+ PHP 5.3+ v0.1.16 上架:2017-10-18

內容簡介

TalkJS 外掛讓您可以輕鬆地在您的市集、即時應用程序或社交平台上添加使用者間的聊天功能,並且只需要 5 分鐘便可上線。它可以完全整合 WooCommerce 及市集/多供應商外掛,如 WCVendors。

此外掛提供了簡潔代碼和模板標籤,用於呈現三種基本檢視:收件匣、聊天框和聊天彈出。它還增加了一個聊天框小部件和收件匣頁面。

TalkJS 是一個針對平台的通訊工具。它可以將买家卖家聊天添加到您的市集、即時應用程序或將同行之間的聊天添加到您的社交平台。類似于 Airbnb、Upwork 或 LinkedIn 所提供的訊息功能。

通過直接讓您的使用者聯繫,可節省客服時間,並增加使用者互動和保留率。

使用這款外掛,您可以在幾個點擊之內將 TalkJS 添加到 WordPress 的安裝中,讓您的使用者立刻在您的網站或應用程序中互相聊天!

注意:此外掛是免費的,但您需要訂閱 TalkJS 才能在生產環境中使用它。當您上線時,TalkJS 提供無限測試和 14 天免費試用。

開發人員使用說明

如果您想將 TalkJS 通訊平台整合到 WordPress 網站中,這是最簡單的方法。

您可以使用以下三種實現方法:

簡碼
小部件
模板標籤

簡碼版本

您可以在每個文章基礎上使用簡碼。以下三個簡碼允許您輕鬆使用任何 TalkJS 使用者介面:

[talkjs_chat](聊天框)
[talkjs_inbox](收件匣)
[talkjs_popup](聊天彈出)

您可以將某個聊天或彈出的初始使用者 ID 傳遞給簡碼,方法是將使用者 ID 添加到簡碼中:[talkjs_chat user=”2″]

如果您希望以文章作者作為聊天使用者,您可以使用以下簡碼:[talkjs_chat userType=”author”]。在這種情況下,不應該填寫使用者 ID,因為它會覆蓋使用者類型(userType)的設定。

對於收件匣和聊天框,您還可以通過傳遞 width 和 height 屬性來自定義簡碼的寬度和高度,例如:[talkjs_chat height=”500px” width=”250px”]。

有一些預定義的樣式,可使整合更容易,如果您希望完全控制 TalkJS 使用者介面容器的樣式,可以傳遞 style 屬性來覆蓋默認樣式。當使用 style 時,width 和 height 屬性會被忽略。

聊天彈出還有一個保持開啟到頁面關閉的選項,使用簡碼和 keepOpen 屬性即可實現,例如:[talkjs_popup keepOpen=”true”]

小部件版本

目前只有一個可用的小部件:TalkJS 聊天框小部件。您可以設置標題、歡迎訊息和對話使用者(如果空白則使用當前文章的作者)。

模板標籤版本

如果您想在某些模板上顯示聊天框、收件匣或彈出,則可以使用模板標籤。您可以像以下方式在代碼中使用它們:

<?php talkjs_chat();?>
<?php talkjs_popup();?>
<?php talkjs_inbox();?>

您可以傳遞与简码版本相同的属性。例如:
“Hi there, let\’s chat!”,
‘userType’ => ‘author’
]);
?>

歡迎信息自定義

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.16) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「TalkJS」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The TalkJS plugin allows you to add user-to-user chat to your marketplace, on-demand app, or social platform. You’ll have it up and running in 5 minutes. It integrates fully with WooCommerce and marketplace/multi-vendor plugins like WCVendors.
This plugin offers you shortcodes and template tags for our three basic views: The inbox, the chatbox and the chat pop-up. It also adds a chatbox widget and an inbox-page.
TalkJS is the messaging tool for platforms. Add buyer seller chat to your marketplace, on-demand app, or peer-to-peer chat to your social platform. Similar to what Airbnb, Upwork, or LinkedIn are offering in messaging.
By providing direct contact between your users, you’re saving on customer support time, increase user interaction and retention.
With this plugin, you can add TalkJS to your WordPress installation in just a few clicks and allow your users to chat with each other inside of your website or app right away!
NOTE: This plugin is free, but you’ll need a TalkJS subscription to be able to use it in a production environment. TalkJS offers unlimited testing and a 14 day free trial when you go live.
For developers
If you’re looking to integrate the TalkJS messaging platform to your WordPress site, this is the easiest way to do it.
You can use three methods of implementation:

Shortcodes
Widgets
Template tags

Shortcodes
You can use shortcodes on a post-by-post basis. The following three shortcodes allows you to easily use any TalkJS UI:

[talkjs_chat]
[talkjs_inbox]
[talkjs_popup]

You can pass along the default conversation user for the chat and the popup. You do this by adding a user ID to the shortcode: [talkjs_chat user=”2″]
If you wish to get the author of the post as your conversation user you can use the following: [talkjs_chat userType=”author”]. You shouldn’t fill in the user ID in this case since it overwrites the userType.
With all three you can pass along a custom welcome message like this: [talkjs_chat welcomeMessage=”Hi there!”]
For Inbox and Chatbox, you can also customize the width and height of the shortcodes by passing width and height properties like this: [talkjs_chat height=”500px” width=”250px”]
There are some predefined styles to make integration easier, if you want full control over the style of the TalkJS UI container, you can pass style property to overwrite the default styles. width and height properties are ignored when style is used.
The popup also has an option to keep it open between pages by using the shortcode with the keepOpen property e.g. [talkjs_popup keepOpen=”true”]
Widgets
There’s currently only one widget available: The TalkJS Chatbox widget. In it you can set a title, a welcome message and the conversation user (the current post author if blank)
Template tags
You can use template tags if you want to display the chatbox, inbox or popup on certain templates. You use them in your code like so:


You can pass along the same attributes as in the shortcode-version. You add them in an array, like this:
“Hi there, let\’s chat!”,
‘userType’ => ‘author’
]);
?>
Welcome Message customization
You can add custom variables to your welcome message. These variables are available:

{{first_name}} -> logged in users’ first name.
{{last_name}} -> logged in users’ last name.
{{name}} -> logged in users’ full name.

Available filters
We currently have one filter available for developers. Feel free to contact us if you need any other filters.
talkjs_hidden_post_types_for_chat_popup
Hide your custom post-type as a viable chat option.

文章
Filter
Mastodon