Create a community of your students by connecting your LearnPress Website to your Discord server.
This add-on enables connecting your LearnPress-enabled website to your discord server. With this plugin, you can create a discord community of your students and assign them discord roles in your server according to the course they are learning. private access to course content plus discord's ability to add fun and creativity in community engagement will help create a thriving community, discord is safe and designed to help fight spam that promote healthy community discussions. This plugin promotes Engagement, Upsell and cross-sell opportunities, and referrals that ultimately help increase revenues.
- You can find the plugin inside the LearnPress LMS settings Add-ons and click install from there
- OR Upload the
connect-learnpress-discord-addon
folder to the/wp-content/plugins/
directory. - Activate the plugin through the 'Installed Plugins' page in WordPress admin.
- Inside WP Admin, you will find Discord Settings sub-menu under top-level LearnPress menu in the left hand side.
- Login to your dsicord account and open this url: https://discord.com/developers/applications
- Click Top right button "New Appliaction", and name your Application.
- New screen will load, you need to look at left hand side and see "oAuth".
- See right hand side, you will see "CLIENT ID and CLIENT SECRET" values copy them.
- Open the discord settings page.
- Paste the copied ClientID and ClientSecret.
- Add a Redirect URL, this should be LearnPress Profile of learner.
- Bot Auth Redirect URL: Add this URL inside Application Redirect settings.
- Now again see inside discord left hand side menu, you will see "Bot" page link.
- This is very important, you need to name your bot and click generate, this will generate "Bot Token".
- Copy the "Bot Token" and paste into "Bot Token" setting of Discord add-on Plugin.
- Now the last and most important setting, "Server ID".
-
- Open https://discord.com/ and go inside your server.
-
- Enable Developer mode by going into Advanced setting of your account.
-
- Then you should right click on your server name and you will see "Copy ID"
-
- Copy and paste into "Guild ID" Settings
- Now you will see "Connect your bot" button on your plugin settings page.
- Click Connect your bot button and this will take you to the Discord authorisation page.
- Here you need to select the Server of which Guild ID you just did copy in above steps.
- Once successfully connect you should see Bot Authorized screen.
- Open again the discord server settings and see Roles menu.
- Please make sure your bot role has the highest priority among all other roles in your discord server roles settings otherwise you will see 5000:Missing Access Error in your plugin error logs.
This plugin provides the following features:
-
Allow any student to connect their discord account with their LearnPress website account.
-
Shortcode [ets_learnpress_discord] to display connect/disconnect button.
-
Mapping of courses and discord roles.
-
Send custom welcome message when student joins the server.
-
Send custom message when student completes a course.
-
Send custom message when student completes a lesson.
-
Auto assignment of discord roles to student when they enroll into courses.
-
Button designer to match the theme of your website.
-
Assign roles to student when admin assign a course.
-
Remove roles when admin remove order for a student.
- Inside the log tab you will see "50001:Missing Access", which is happening because the new BOT role need to the TOP priroty among the other roles.
-
- The new created BOT will add a ROLE with the same name as it is given to the BOT itself.
- So, Go inside the "Server Settings" from the TOP left menu.
- Go inside the "Roles" and Drag and Drop the new BOT over to the TOP all other roles.
- Do not for forget to save the roles settings
- I'm getting an error in error Log 'Missing Access'
-
- Please make sure your bot role has the highest priority among all other roles in your discord server roles settings.
- Role Settings is not appearing.
-
- Clear browser cache, to uninstall and install again.
-
- Try the disabling cache
-
- Try Disabling other plugins, there may be any conflict with another plugin.
- Learner are not being added spontaneously.
-
- Due to the nature of Discord API, we have to use schedules to precisely control API calls, that why actions are delayed.
- Learner roles are not being assigned spontaneously.
-
- Due to the nature of Discord API, we have to use schedules to precisely control API calls, that why actions are delayed.
- Some learned are not getting their role and there is no error in the log.
-
- It is suggested to TRY again OR use another discord account.