{"id":8979,"date":"2010-04-28T19:20:01","date_gmt":"2010-04-28T19:20:01","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/xmpp-enabled\/"},"modified":"2017-12-06T21:27:46","modified_gmt":"2017-12-06T21:27:46","slug":"xmpp-enabled","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/xmpp-enabled\/","author":6547893,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.2","stable_tag":"trunk","tested":"4.9.29","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"XMPP Enabled","header_author":"Sand Fox","header_description":"","assets_banners_color":"","last_updated":"2017-12-06 21:27:46","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/github.com\/sandfox-im\/xmpp-enabled","header_author_uri":"http:\/\/sandfox.org\/","rating":5,"author_block_rating":0,"active_installs":10,"downloads":3015,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.3.2":"<p>Breaks old logs<\/p>","0.3":"<p>Multiple calls to xmpp_send() now behave smarter<\/p>","0.2.2":"<p>Update is strongly recommended for those who manually set server hostname<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":1},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.3.0","0.3.1","1.0.0","1.0.1","1.0.2"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[17110,1980,17111],"plugin_category":[],"plugin_contributors":[93337],"plugin_business_model":[],"class_list":["post-8979","plugin","type-plugin","status-closed","hentry","plugin_tags-jabber","plugin_tags-library","plugin_tags-xmpp","plugin_contributors-sandfox","plugin_committers-sandfox"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/xmpp-enabled.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>XMPP Enabled provides a single function API for other plugins that use Jabber\/XMPP messaging protocol.\nSee API section for details if you want to use XMPP protocol in your notifications.<\/p>\n\n<ul>\n<li>GitHub page: https:\/\/github.com\/sandfoxme\/xmpp-enabled<\/li>\n<\/ul>\n\n<h3>Thanks to<\/h3>\n\n<ul>\n<li>Mako N (Japanese translation and i18n support)<\/li>\n<\/ul>\n\n<h3>Plugin API<\/h3>\n\n<h4>The Single Function<\/h4>\n\n<p>The single function for sending XMPP Messages is <code>xmpp_enabled<\/code>. It can be called directly from any WordPress plugin<\/p>\n\n<pre><code>xmpp_enabled($recipient, $message, $subject='', $type='normal');\n<\/code><\/pre>\n\n<ul>\n<li>$recipient is a valid (bare or full) JID of the recipient like 'juliet@capulet.net'<\/li>\n<li>$message is a plain text message to be sent<\/li>\n<li>$subject is a title line for message. It is usually omitted for chat-type messages<\/li>\n<li>$type is a type of message. It can be 'chat', 'normal' or 'headline'. See <a href=\"http:\/\/www.ietf.org\/rfc\/rfc3921.txt\">RFC 3921<\/a> for details<\/li>\n<\/ul>\n\n<p><em>Example:<\/em> <code>xmpp_send('subscriber@something.com',\"Read our new post:\\nhttp:\/\/something.com\/new-post\",'New post is published','headline');<\/code><\/p>\n\n<h4>Create submenu in the XMPP Enabled section<\/h4>\n\n<p>XMPP Enabled creates it's own section and you're free to use it for your plugins. The code is <code>'xmpp-enabled'<\/code><\/p>\n\n<p><em>Example:<\/em> <code>add_submenu_page('xmpp-enabled', 'Jabber Comment Notifications', 'Comment Notifications', 'administrator', __FILE__, 'jcommnotify_settings');<\/code><\/p>\n\n<p>See <a href=\"http:\/\/codex.wordpress.org\/Adding_Administration_Menus\">Adding Administration Menus<\/a> in WordPress Codex for further details<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>xmpp-enabled<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set up default Jabber account in XMPP Enabled Settings page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Upload <code>xmpp-enabled<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Set up default Jabber account in XMPP Enabled Settings page<\/li>\n<\/ol><\/dd>\n<dt>Why the distinct plugin?<\/dt>\n<dd><p>To provide a single XMPP account settings page for all Jabber notification plugins<\/p><\/dd>\n<dt>Can it send messages to multiple contacts?<\/dt>\n<dd><p>It's safe to use xmpp_send() multiple times. All calls will use the same connection<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.2<\/h4>\n\n<ul>\n<li>PHP 7 support<\/li>\n<li>Removed from packagist.org (You can use GitHub link in composer directly)<\/li>\n<\/ul>\n\n<h4>1.0.1<\/h4>\n\n<ul>\n<li>[Bug] Password validation fix<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Japanese translation and internationalisation support from Mako N<\/li>\n<li>Russian translation<\/li>\n<li>Remove unnecessary part of XMPPHP<\/li>\n<li>Lang builder<\/li>\n<li>Consider plugin is stable :)<\/li>\n<li>Installation via composer<\/li>\n<\/ul>\n\n<h4>0.3.2.2<\/h4>\n\n<p>sand-fox.com to sandfox.org<\/p>\n\n<h4>0.3.2.1<\/h4>\n\n<ul>\n<li>minor bugfixes<\/li>\n<\/ul>\n\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>Fixed array serialization in logs<\/li>\n<li>PHP5 is now required minimum<\/li>\n<\/ul>\n\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>Bugfix for disabling encryption<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>Multiple calls to xmpp_send() now use single connection<\/li>\n<li>Now user can disable encryption<\/li>\n<li>Fixed menu creation priority<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Fixed wrong behaviour for custom hostnames.<\/li>\n<li>Improved logging<\/li>\n<\/ul>\n\n<h4>0.2.1<\/h4>\n\n<ul>\n<li>A small usability change.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>A first public beta.<\/li>\n<\/ul>","raw_excerpt":"XMPP Enabled provides a single-function API for other plugins that use Jabber\/XMPP messaging protocol.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/8979","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=8979"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sandfox"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=8979"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=8979"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=8979"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=8979"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=8979"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=8979"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}