2
0
Fork 0
mirror of https://github.com/discourse/wp-discourse.git synced 2025-10-03 08:59:21 +08:00
WordPress plugin that lets you use Discourse as the community engine for a WordPress blog http://www.discourse.org
Find a file
Angus McLeod 8b1a7d68d8
Update to PHPUnit 9 (#493)
* Update phpunit

* phpunit dependency should only be require-dev

* Exclude tests from CI php version syntax check

* We only need to run sniff and jshint on the latest supported version

* Run tests on php 8.2
2023-11-14 16:55:36 -08:00
.github/workflows Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
admin Bump @babel/traverse from 7.13.0 to 7.23.2 in /admin/discourse-sidebar (#489) 2023-10-17 15:27:06 +02:00
assets Two Four Seven (#469) 2022-12-23 11:28:43 -08:00
bin Improve Discourse Username support && request and test updates (#437) 2022-02-22 10:38:46 -08:00
blocks/comments Bump @babel/traverse from 7.20.1 to 7.23.2 in /blocks/comments (#490) 2023-10-17 15:53:54 +02:00
css Two Four Seven (#469) 2022-12-23 11:28:43 -08:00
docs Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
js Remove comments.js file 2019-10-07 13:03:57 -07:00
lib Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
templates Fix HTML of avatars in quotes in comments (#369) 2023-02-15 12:16:19 -08:00
tests Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
vendor_namespaced Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
.gitignore Update workflows and documentation (#430) 2021-12-07 13:53:22 -08:00
.jscsrc Merging changes from Got for 0.7 release 2016-07-05 22:05:34 +00:00
.jshintignore Two Four Seven (#469) 2022-12-23 11:28:43 -08:00
.phpunit.result.cache Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
composer.json Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
composer.lock Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
LICENSE license file an fixes 2016-07-05 18:51:35 +00:00
package-lock.json Update workflows and documentation (#430) 2021-12-07 13:53:22 -08:00
package.json Update workflows and documentation (#430) 2021-12-07 13:53:22 -08:00
phpcs.xml Two Four Seven (#469) 2022-12-23 11:28:43 -08:00
phpunit.xml Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
phpunit.xml.bak Update to PHPUnit 9 (#493) 2023-11-14 16:55:36 -08:00
README.md Two Four Seven (#469) 2022-12-23 11:28:43 -08:00
readme.txt Two Four Nine (#480) 2023-03-09 16:37:10 -07:00
scoper.inc.php Bump version to 2.2.4 (#404) 2021-05-11 15:31:24 -07:00
uninstall.php Revert "Update files for WordPress VIP" 2019-08-26 14:13:26 -07:00
wp-discourse.php Two Four Nine (#480) 2023-03-09 16:37:10 -07:00

WP Discourse

OpenCollective OpenCollective

Note: the wp-discourse plugin requires >= PHP-5.4.0.

The WP Discourse plugin acts as an interface between your WordPress site and your Discourse community.

The plugin is not a substitute for Disqus-like commenting systems.

Use Discourse for Comments:

  • Automatically creates a forum topic for discussion when a new blog post is published.
  • Associates WP author accounts with their respective Discourse accounts. Does not require DiscourseConnect.
  • Replies from the forum discussion can be embedded in the WP blog post. Select which replies to display based on post score and commenter "trust level" -- see docs.

See it Live

DiscourseConnect

The plugin also comes with optional DiscourseConnect functionality which lets you use your WordPress site as the DiscourseConnect provider for your Discourse forum.

This will override Discourse's native (and powerful) login flow and is only recommended for use cases that strictly require such a setup, e.g. a site that is already using WordPress for large scale user management.

Contact

Please post bug reports, support requests and all other inquiries in our dedicated support forum

Installation

From your WordPress dashboard

  1. Visit 'Plugins > Add New'
  2. Search for 'WP Discourse'
  3. Activate WP Discourse from your Plugins page

From wordpress.org

  1. Download WP Discourse
  2. Upload the 'wp-discourse' directory to your '/wp-content/plugins/' directory
  3. Activate WP Discourse from your Plugins page

With Composer

If you're using Composer to manage WordPress, add WP-Discourse to your project's dependencies. Run:

composer require discourse/wp-discourse ~1.3.2

Or manually add it to your composer.json:

{
  "require": {
    "php": ">=5.4.0",
    "discourse/wp-discourse": "~1.3.2"
  }
}

For more detailed instructions please see the WP Discourse plugin installation and setup.

Frequently Asked Questions

Does this plugin install Discourse for me?

No this plugin acts as an interface between Discourse and WordPress. For it to work you will need to first set up Discourse forum. You can install Discourse for yourself following either of these guides:

Can I import old WordPress comments as Discourse comments (i.e. "replies")?

No.

Do WordPress and Discourse have to be installed on the same server?

The plugin uses the Discourse API, so your forum and blog can be hosted separately and the integration will still work. In fact, we strongly recommend hosting the two applications separately, since their hosting requirements are very different.

Is it possible to customize the comment templates?

Yes, the html templates used for publishing posts on Discourse and for displaying comments on WordPress can be customized in your theme. This is done by hooking into the filters that are applied to each template.

For more details on template customization, see: WP Discourse template customization

Contributing

Before you start contributing or developing this plugin please read the documentation in docs/, starting with contributing.md. If you have any questions about those process, please post in #dev for assistance.