This repository was archived by the owner on Sep 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreadme.html
More file actions
130 lines (116 loc) · 8.5 KB
/
Copy pathreadme.html
File metadata and controls
130 lines (116 loc) · 8.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>WordPress Plugin Readme</title>
<style type="text/css">
BODY {
font-size : 100%;
}
BODY, TD, TH {
font-family : tahoma, verdana, arial, helvetica, sans-serif;
font-size : 0.8em;
}
H2 {
font-size : 10pt;
font-weight : bold;
}
A:hover {
text-decoration : none;
}
H1 {
font-family : tahoma, arial, helvetica, sans-serif;
font-size : 1.4em;
font-weight: bold;
border-bottom : 1px #ccc solid;
padding-bottom : 2px;
}
TT {
font-family : courier new;
font-weight : bold;
color : #060;
}
PRE {
font-family : courier new;
font-size : 100%;
}
#datatable TH {
color : #fff;
background-color : #2A448C;
text-align : left;
}
#datatable TD {
background-color : #FAF6EF;
}
#datatable .name {
background-color : #DCE2F5;
}
</style>
</head>
<body>
<h1>
WordPress Plugin Readme
</h1>
<h2>Overview</h2>
<p>
WordPress Plugin.
</p>
<h2>Known Issues</h2>
<p>
</p>
<h2>Installation</h2>
<ol>
<li>Copy the wordpress.jar file to the OPENFIRE_HOME/plugins folder.</li>
<li>Configure the admin properties page.</li>
</ol>
<h2>Configuration</h2>
Under Server settings -> WordPress tab you can configure wordpress.
<h2>How to use</h2>
<div class="Box-body p-6">
<article class="markdown-body entry-content" itemprop="text"><h1><a id="user-content-openfire-social" class="anchor" aria-hidden="true" href="#openfire-social"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Openfire Social</h1>
<p>Provides social network with member profiles, activity streams, user groups, messaging, blogs and more by integrating Openfire Meetings and ConverseJS with WordPress, bbPress and BuddyPress.</p>
<p><a target="_blank" rel="noopener noreferrer" href="https://camo.githubusercontent.com/7333df95e7a37f6ca8d88c2286374de761b3a2c3/68747470733a2f2f69676e6974657265616c74696d652e6769746875622e696f2f4f70656e666972652d536f6369616c2f6f70656e666972652d736f6369616c2e706e67"><img src="https://camo.githubusercontent.com/7333df95e7a37f6ca8d88c2286374de761b3a2c3/68747470733a2f2f69676e6974657265616c74696d652e6769746875622e696f2f4f70656e666972652d536f6369616c2f6f70656e666972652d736f6369616c2e706e67" data-canonical-src="https://igniterealtime.github.io/Openfire-Social/openfire-social.png" style="max-width:100%;"></a></p>
<h1><a id="user-content-how-it-works" class="anchor" aria-hidden="true" href="#how-it-works"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>How it works</h1>
<ul>
<li>Openfire shares same MySQL DB with WordPress and uses the DB Auth, User and Group providersto share same data.</li>
<li>Requres PHP to be installed and configured for Jetty FastCGIProxyServlet as normally done for an external web server like Nginx.</li>
<li>Openfire hosts pre-configured WordPress web application plus plugins in Jetty instead of Apache or Nginx.</li>
</ul>
<h1><a id="user-content-what-you-need" class="anchor" aria-hidden="true" href="#what-you-need"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>What you need</h1>
<ul>
<li>MySQL or compatible DB</li>
<li>PHP-fpm or PHP-CGI.
Edit /etc/php-fpm.d/<a href="http://www.conf" rel="nofollow">www.conf</a> file as needed, ensuring that PHP-fpm is listening on localhost:9000 and the user under which it runs matches your openfire user.</li>
<li>Openfire 3.4.0 or higher configured and working with MySQL DB. You <strong>cannot</strong> use the embedded db</li>
<li>The Openfire Meetings plugins for Openfire.</li>
<li>The Bookmarks plugin for Openfire</li>
<li>The HTTP File Upload plugin for Openfire</li>
</ul>
<h1><a id="user-content-how-to-install" class="anchor" aria-hidden="true" href="#how-to-install"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>How to Install</h1>
<ul>
<li>Deploy Openfire Meetings and all other openfire plugins. Configure accordingly. <b>Do not change</b> the context path for ofmeet to "/".</li>
<li>Deploy the wordpress.jar file from the <a href="https://github.com/igniterealtime/Openfire-Social/releases/tag/v0.0.2">release pages here</a> in Openfire as a normal plugin</li>
<li>First go to <a href="https://yourserver:7443/info.php" rel="nofollow">https://yourserver:7443/info.php</a> to confirm PHP PHP-fpm gateway is working and Jetty can serve PHP from Openfire</li>
<li>Then go to <a href="https://yourserver:7443/wp-admin" rel="nofollow">https://yourserver:7443/wp-admin</a> to setup wordpress in the same MySQL DB as Openfire</li>
<li>When prompted for username/password, use the admin user in openfire to continue</li>
<li>Activate and configure all 5 pre-installed wordpress plugins.</li>
<li>Create some users, groups and forums to confirm Wordpress is working fine with Jetty Web server in Openfire</li>
</ul>
<p>Now you are ready to add converseJS chat with wordpress. Do the following</p>
<ul>
<li>Edit the file OPENFIRE_HOME/plugins/wordpress/classes/converse/core/index.js to changes the default converse configuration if you need to.</li>
<li>Go to Openfire web admin server|wordpress web page and enable auth, user and group provider check boxes.</li>
<li>Go to plugins web page and restart the wordpress plugin.</li>
<li>When wordpress restarts, it will cause openfire to switch to wordpress for all users and groups data.</li>
<li>Go to Users/Groups web page to confirm this.</li>
<li>You are now ready to test users with converse and wordpress together</li>
</ul>
<h1><a id="user-content-how-to-use" class="anchor" aria-hidden="true" href="#how-to-use"><svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>How to use</h1>
<ul>
<li>To login to to <a href="https://yourserver:7443/index.html" rel="nofollow">https://yourserver:7443/index.html</a></li>
<li>When prompted for username/password, use any of the users created in wordpress</li>
<li>if all goes well, you should have your wordpress homepage with converse chat button in bottom right corner. Click on it to login</li>
</ul>
</article>
</div>
</body>
</html>