WordPress and wishlist member

I am looking for a forum for a community website running WordPress, wishlist member, and wp courseware. According to wishlist member, WishList Member uses the WordPress database to create members so no extra member account is needed for logging into forums that also use the WordPress user database.

Would Discourse with the wp plugin be suitable for this install?

1 Like

Yes, it could work very well. If you would like to restrict access to the forum based on what course a user has signed up for on your WordPress site, it will require some custom code. Iā€™m interested in integrating the WP Discourse plugin with this kind of thing, so I could help out if you decide to do it.

Excellent! In wishlist member, there are ā€œlevels.ā€ Courses in wp courseware can be assigned to multiple levels. Let me know the correct process for proceeding.

It looks like the Wishlist plugin works by assigning WordPress ā€˜rolesā€™, or ā€˜levelsā€™, to users and then restricting access to content based on these roles. Discourse lets you use ā€˜groupsā€™ and ā€˜categoriesā€™ to restrict access to parts of the forum.

As an example, if you had a trigonometry course on your WordPress site, and you only wanted people who had signed up for that course to have access to the trigonometry discussion on Discourse, you would need to:

  • create a trigonometry group on Discourse
  • create a trigonometry category on Discourse and restrict access to that category to members of the trigonometry group and site administrators

This can be done easily through the Discourse admin section.

The custom code that would be required would be to add WordPress users who had the role that gave them access to the WordPress siteā€™s trigonometry content to the Discourse trigonometry group. You would probably also want to redirect people who tried to access the forumā€™s trigonometry content from the WordPress site to the course sign up page.

Iā€™ll look at this some more this weekend and get back to you.

6 Likes

While this gets fleshed out ā€¦
am I understanding that I can use the plug in to connect WordPress and discourse, set up the protected forum and manually assign it to only those who are enrolled in the course?
Automating it is preferable, but not required?
Iā€™d just add the link to the protected forum on the wpcourse page, which is already protected by wishlist member?
Blog posts, and discourse comments, that are protected to that course would still be protected? (In bbpress, relplies are not protected in wishlist without additional plugin.)

Yes, I think that using the current setup, the easiest approach would be to not enable Single Sign On (SSO) between your WordPress site and the forum. This means that the forum and the website would manage users separately. When someone signs up for a course you would send them an invitation from the forum to join the associated discussion group. This groups content on the forum could be protected using the group/category setup. The links to that groups discussions on the WordPress site would also be protected by your membership plugin.

I think there is a small change we could make to the wp-discourse plugin that would make it possible to do something similar to this while using Single Sign On. The change would allow a WordPress user to be added to a Discourse group, by an admin, from the WordPress site. Something like this should work quite well with any membership plugin.

Complete integration between Discourse and a membership plugin is possible. This would automatically create a Discourse user and add them to a group when they sign up for a membership. The problem is that every membership plugin is different, so code would have to be written specifically for that plugin. I have started looking at doing this with the MemberPress plugin (because the people who make it gave me a copy of it to work on.)

1 Like

Of course the full integration would be desirable, saving time and keeping
the integration tight. Iā€™ve put a message on the wishlist member forum and
will message support to facilitate getting whatever you would need.

In the meantime, if we could implement sso and utilize manual adding, I can
move forward with my community launch. Iā€™ve been looking for a forum like
discourse and the wp sso for over a year. I have been messing with bbpress
trying ā€¦ Well ā€¦ I will be glad to move forward. Let me know what your
need from me. Thanks!!! Lea-Ann

More information about what you are doing would be great.

Should all categories on the forum be accessible to all members, or should members only have access to the part of the forum that relates to the course they are taking?

Are memberships only for a limited period of time, or are they lifetime memberships?

Are there signed up users on your website who do not have memberships and should not be able to access the forum?

Iā€™ve set wishlist up with two levels. Basic, which has access to limited areas, one or two forums, certain posts and pages. Then there is the subscriber level (annual payment) and they can access everything. The in between is the courses which each have their own wishlist level and access to the pages, posts and forums related to that course.

For what itā€™s worth, wpcoursewareā€™s integration into wishlist member is very easy to implement. And that toggle for adding people retroactively had come in handy. https://wordpress.org/plugins/wishlist-member-addon-for-wp-courseware/screenshots/

Eta: my particular implementation requires everyone to register.

Here is the API info for wishlist member: http://codex.wishlistproducts.com

1 Like

Thanks for the link to the API. It looks like it will be quite easy to integrate it with Discourse.

I think that integrating Discourse with WordPress membership plugins is something that will be useful. What I would like to do is create a general wp-discourse-membership plugin that will work with all membership plugins when using wp-discourse and Single Sign On. It will still require you to manually add members to the appropriate Discourse group when they sign up for a membership on WordPress, but it will let you add the member to the Discourse group from the WordPress dashboard, before they exist as users on Discourse. Iā€™ll try to get this done by early next week.

Once that is done, it should be quite easy to customize the plugin to hook into specific membership plugins, so that members are added to Discourse groups automatically at the time that a new membership is created on WordPress.

What is your timeline for getting this up and running?

1 Like

Thank you, Simon. Frankly, Iā€™ve had this community in mind since 2010. In the past three months all of the software is coming together to make it function the way I envisioned. I have beta testers who try the different functions out and tell me what they like and donā€™t like and the forum is the last piece and actually the most important to my community.
Your plan sounds great and Iā€™m very excited. Iā€™ll implement as soon as the single sign on and manual adding can be done and then work with you on the automation as soon as possible. Of course, the less administrative I have to do to get from purchase to using, the better the customer experience. Once everything is functional Iā€™m scheduling time for you tube tutorials for the users as well.

Simon, will this be an update to your existing plugin or something new? How do I get on the list to be notified??

It will be a separate plugin that you will need to install along with the wp-discourse plugin. Iā€™ll post it on here when itā€™s ready to try, so you will get a notification about it.

3 Likes

Any update @simon?

Sorry, itā€™s taking a lot longer to get to this than I had hoped. I have it planned out in my head, but Iā€™ve been having a hard time finding time to do the work. I still think that this is a very good use for the wp-discourse plugin - it will make it possible to use WordPress/Discourse to create something similar to Moodle. The project I am currently working on should be finished this week. Iā€™ll start work on a wp-discourse-membership plugin right after that.

1 Like

Thanks for the update. Not meaning to pressure just wanted to make sure I am not waiting for something fruitlessly. :slight_smile:

1 Like

[quote=ā€œSimon_Cossar, post:10, topic:51560ā€] it will let you add the member to the Discourse group from the WordPress dashboard, before they exist as users on Discourse. Iā€™ll try to get this done by early next week.
[/quote]
I didnā€™t miss this functionality in the wp plugin???

Itā€™s coming soon. I shouldnā€™t give times, but itā€™s the thing Iā€™m most interested in making as a plugin.

2 Likes

Since itā€™s now possible to add and remove users to Discourse groups through SSO, maybe all that has to be done for a membership plugin is make it so that login links to Discourse from certain areas of the WordPress site automatically add the user to a specific group. Login links that are in a protected area of the WordPress site could add the user to the Discourse group that is associated with that area. Something like this might be able to work with most WordPress membership plugins.

5 Likes

Iā€™ve made a fairly basic plugin that integrates Discourse with the WishList Member plugin. It lets you associate Discourse groups with WIshList levels.

When users sign up for a WishList level, if there are any Discourse groups associated with the level, they are automatically added to those Discourse groups. If the user doesnā€™t yet exist on Discourse, they are created through the Discourse API.

When user levels are added/moved/removed through the WishList admin section, they are moved on Discourse.

There is an issue that new users who are created through the API are sent an activation email from Discourse. This isnā€™t needed because they are logged in through SSO. This can be sorted out fairly soon.

Thereā€™s a conflict between the wp-discourse ā€˜Create Discourse User on Loginā€™ setting and the WishList Member plugin. That can be fixed.

For security reasons, for each group, you should either select ā€˜Require Email Verificationā€™ on the WP Discourse ā€˜WishList Groupsā€™ tab, or select ā€˜Require Email Confirmation After Registrationā€™ on the WishList pluginā€™s ā€˜Levelsā€™ tab.

I might eventually be selling this plugin for a small fee, but for now itā€™s free to anyone whoā€™s willing to test it. Get in touch with me and Iā€™ll send you a zip file.

The admin interface still needs some work. This was the easiest way to set it up for now.

6 Likes