Entries by Ken Young

Group Forums with bbPress

Overview LearnDash provides an official bbPress integration plugin that allows the association of bbPress forums with LearnDash courses, enabling students enrolled in courses to have exclusive access to course-specific discussion forums. The Group Forums with bbPress module is based on LearnDash’s excellent plugin but modified to support the association of bbPress forums with LearnDash groups, enabling members of LearnDash groups to have exclusive access to group-specific discussion forums. Creating group-restricted forums Activating the module adds a new metabox to the Edit Forum page: To configure group access to the forum: In the Associated Groups(s) box, select the group(s) that should have access to this forum. In the Post Limit Access dropdown, choose whether a user needs to be a member of ALL of the selected groups or ANY of the selected groups to have access. If you would like forum posts to visible to all users on the site check the Forum View checkbox. The forum will be readable for all site users, but only members in the selected group(s) will be allowed to post topics and replies. Group Forums widget When active, this module adds a new Group Forums widget.  This widget displays a list of links to all group-specific forums the […]

Restrict Page Access

Overview The Restrict Page Access module enables admins to restrict access to any public-facing page (post, course, lesson, topic, quiz, etc.) based on several criteria.  Users that are denied access can then be shown a message or redirected to another page. Set up restricted access The Restrict Page Access module, when active, adds a metabox to the sidebar of the Edit Post page of every post type that is registered as public: Here’s how to set up restricted access: Check Users must be logged in to view this page to prevent logged-out users from accessing the page. Select one or more Required roles if only users with a specific role should be allowed to view the page.  Users with ANY of the selected roles will be able to view the page. Select one or more Required courses if only users enrolled in a specific course should be allowed to view the page. Users enrolled in ANY of the selected courses will be able to view the page. Select one or more Required groups if only members of a specific group should be allowed to view the page.  Members of ANY of the selected groups will be able to view the page. […]

Configure Group Emails

Email Settings From the Email Settings tab you can set the From Email, From Name, and the Reply To  for all group email communication, using the email templates provided by the plugin.  You can also disable any emails that you don’t want sent by unchecking the associated box. There are 5 built in email templates to set up and automate communications when users are added to groups. Note that all email templates are global; there is currently no way to send different communications to different groups, or to allow Group Leaders to add their own personal messages. The variables associated with each template allow you to include personalized information (such as #FirstName, #LastName) for each user. Please take note of the variables for each template and their description below: The Add and invite (new user) email is sent when a Group Leader selects the Add and invite option in the Add user dialog, and the user is not already registered on the site.  When this email is sent, the user is automatically registered as a new WordPress user and added to the LearnDash Group.  This template includes the #Password variable because passwords are randomly generated for new users.  If you would prefer to […]

New Mark Complete Button Options in Tin Canny!

Our Tin Canny LearnDash Reporting plugin offers the easiest way to add modules from tools like Articulate Storyline, Adobe Captivate, Rise, and iSpring to your LearnDash courses. It’s our second most popular LearnDash plugin and gives thousands of LearnDash sites xAPI and SCORM capabilities that rival bigger LMS vendors. Since it was introduced, we gave LearnDash users a way to control progress in courses based on how learners interacted with uploaded modules. It was pretty simple: users could only click the LearnDash Mark Complete button to move forward if they completed, passed, or achieved some other condition inside the module. For Tin Canny some users, that wasn’t enough. We got a lot of questions about Tin Canny like these: Can we hide the Mark Complete button completely until the learner completes a module? Can we change the text on the Mark Complete button if there’s Tin Canny content on the page? Can we automatically mark the lesson/topic complete when the learner completes the module? Can we automatically move the learner to the next lesson when they complete the module? We wrestled with changes for a long time and couldn’t settle on the right way to handle autocompletion and autoadvancing for […]

Certificate Preview

The Certificate Preview module is part of the Pro Suite of modules for the Uncanny LearnDash Toolkit. It lets you preview what a LearnDash .pdf certificate will look like without having to leave the certificate editing interface by adding a metabox with a Certificate Preview button to the Edit Certificate page. Troubleshooting If your certificate doesn’t seem to be rendering correctly in the preview, here are a few things to check: Be sure save changes to your certificate before you click the preview button; unsaved changes will not be reflected in the preview. LearnDash shortcodes (such as quizinfo and courseinfo) will be replaced with static preview values. Non-LearnDash shortcodes may not render at all and are not supported.  

Template Overrides

As of Uncanny LearnDash Groups version 3.0.4, developers can edit template files in an upgrade-safe way using overrides.   Copy the template file into a directory within your theme named /uncanny-groups/, keeping the same file and folder structure but removing the /templates/ subdirectory. For example, to override the controls above the users table, copy: wp-content/plugins/uncanny-learndash-groups/src/templates/frontend-uo_groups/users-table-actions.php to wp-content/themes/yourtheme/uncanny-groups/frontend-uo_groups/users-table-actions.php The copied file will now override the default. Warning: Do not edit these files within the the Uncanny Groups plugin itself, as they are overwritten during the upgrade process and any customizations will be lost. Uncanny LearnDash Groups is a complex plugin with integrations into LearnDash, WooCommerce, Gravity Forms and Theme My Login.  Customizations should only be attempted by experienced developers, as we cannot provide support for custom code.

Template Overrides

As of Uncanny LearnDash Enrollment Codes version 3.0.3, developers can edit template files in an upgrade-safe way using overrides.   Copy the template file into a directory within your theme named /uncanny-codes/, keeping the same file and folder structure but removing the /templates/ subdirectory. For example, to override the Codes registration form, copy: wp-content/plugins/uncanny-learndash-codes/src/templates/frontend-user-registration-form.php to wp-content/themes/yourtheme/uncanny-codes/frontend-user-registration-form.php The copied file will now override the default. Warning: Do not edit these files within the the Uncanny Codes plugin itself, as they are overwritten during the upgrade process and any customizations will be lost. Customizations should only be attempted by experienced developers, as we cannot provide support for custom code.

Adding Credits to Student Transcript

Uncanny Continuing Education Credits integrates with the Learner Transcript module in the Uncanny LearnDash Toolkit Pro by adding a column that shows credits earned or credits available for each course in which the user is enrolled. In the screenshot above, credits have been renamed to “Hours” (in the Uncanny CEU plugin settings). To use this functionality: Enable and set up the Learner Transcript module of the Uncanny LearnDash Toolkit Pro. Install and activate the Uncanny Continuing Education Credits plugin.  The column will automatically be added to the transcript.

Actions/Filters for Developers

Uncanny LearnDash Groups provides the hooks below for advanced developers to use when developing custom functionality that integrates with the plugin.  No support is provided for the use of these filters. When an existing user is added on front end do_action( ‘ulgm_existing_group_user_added’, $user_data, $group_id, $order_id ); $do_not_send_emails = apply_filters( ‘ulgm_do_not_send_existing_user_email’, $do_not_send_emails, $user_data, $group_id, $order_id ); Before user is added on front end returns true or false if group leader allowed to add user wp_get_current_user() = (object) of current logged in user details $group_email_data[‘group_id’] = (int) LD Group ID $user_data = (object) user data, user_email is part of the array and recommended method to verify user v/s group leader $ulgm_gdpr_compliance = apply_filters( ‘ulgm_gdpr_is_group_leader_allowed’, true, wp_get_current_user(), (int) $group_email_data[‘group_id’], $user_data ); After user is added on front end do_action( ‘ulgm_group_user_invited’, $user_data, $group_id, $order_id ); $do_not_send_emails = apply_filters( ‘ulgm_do_not_send_new_user_email’, $do_not_send_emails, $user_data, $group_id, $order_id ); When redemption email is sent out do_action( ‘ulgm_redemption_email_sent’, $user_data, $group_id ); $do_not_send_emails = apply_filters( ‘ulgm_do_not_send_redemption_email’, $do_not_send_emails, $user_data, $group_id ); When group leader is added on front end do_action( ‘ulgm_group_leader_added’, $user_data, (int) $_POST[‘group-id’], $order_id ); When group leader is removed on front end do_action( ‘ulgm_group_leader_removed’, $user_id, (int) $group_id ); When user is removed on front end do_action( ‘ulgm_group_user_removed’, $user_id, (int) $group_id […]