這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

XMPP Enabled

描述

XMPP Enabled provides a single function API for other plugins that use Jabber/XMPP messaging protocol.
See API section for details if you want to use XMPP protocol in your notifications.

  • GitHub page: https://github.com/sandfoxme/xmpp-enabled

Thanks to

  • Mako N (Japanese translation and i18n support)

Plugin API

The Single Function

The single function for sending XMPP Messages is xmpp_enabled. It can be called directly from any WordPress plugin

xmpp_enabled($recipient, $message, $subject='', $type='normal');
  • $recipient is a valid (bare or full) JID of the recipient like ‘juliet@capulet.net’
  • $message is a plain text message to be sent
  • $subject is a title line for message. It is usually omitted for chat-type messages
  • $type is a type of message. It can be ‘chat’, ‘normal’ or ‘headline’. See RFC 3921 for details

Example: xmpp_send('subscriber@something.com',"Read our new post:\nhttp://something.com/new-post",'New post is published','headline');

Create submenu in the XMPP Enabled section

XMPP Enabled creates it’s own section and you’re free to use it for your plugins. The code is 'xmpp-enabled'

Example: add_submenu_page('xmpp-enabled', 'Jabber Comment Notifications', 'Comment Notifications', 'administrator', __FILE__, 'jcommnotify_settings');

See Adding Administration Menus in WordPress Codex for further details

安裝

  1. Upload xmpp-enabled folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set up default Jabber account in XMPP Enabled Settings page

常見問題

Installation Instructions
  1. Upload xmpp-enabled folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Set up default Jabber account in XMPP Enabled Settings page
Why the distinct plugin?

To provide a single XMPP account settings page for all Jabber notification plugins

Can it send messages to multiple contacts?

It’s safe to use xmpp_send() multiple times. All calls will use the same connection

評價

閱讀全部1個評價

貢獻者及開發者

“XMPP Enabled” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 XMPP Enabled 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.0.2

  • PHP 7 support
  • Removed from packagist.org (You can use GitHub link in composer directly)

1.0.1

  • [Bug] Password validation fix

1.0.0

  • Japanese translation and internationalisation support from Mako N
  • Russian translation
  • Remove unnecessary part of XMPPHP
  • Lang builder
  • Consider plugin is stable 🙂
  • Installation via composer

0.3.2.2

sand-fox.com to sandfox.org

0.3.2.1

  • minor bugfixes

0.3.2

  • Fixed array serialization in logs
  • PHP5 is now required minimum

0.3.1

  • Bugfix for disabling encryption

0.3.0

  • Multiple calls to xmpp_send() now use single connection
  • Now user can disable encryption
  • Fixed menu creation priority

0.2.2

  • Fixed wrong behaviour for custom hostnames.
  • Improved logging

0.2.1

  • A small usability change.

0.2.0

  • A first public beta.