Tag Archives: namaste

Zapier Webhooks in Namaste! LMS

From version 2.5.6 the WordPress learning management sytsem Namaste! LMS supports webhooks & Zapier integration.

You can learn more about Zapier’s implementation of webhooks here.

Currently Supported Actions

At the moment Namaste! LMS allows you to attach hooks to the following actions:

  • Student enrolls in a course. This happens for auto-approved enrollments or enrollments made by admin. It will also be fired when a pending enrollment is approved.
  • Student completes a course.

Webhooks can be used to connect your LMS to mailing list services, CRM, or any other web based services that support webhooks directly or through Zapier (or similar products).

To get to the webhooks interface click on the Webhooks / Zapier link in your Namaste! LMS menu. Here is the interface that you’ll see when adding a webhook:

A webhook form for Namaste LMS

With the above example you will have your webhook notified when someone successfully enrolls in the Free course. The hook will send username, email, and 3 fixed custom parameters. The data that will be sent to Pipedream (you can use it for testing and more) is this:

data sent to Pipedream

 

Pipedream lets you test your hooks and see the JSON message that you have sent to them. In real usage this data will be used by other apps to do all kind of things with it.

Stay tuned for more webhook events powered by the Namaste! Connect module soon.

Hierarchical Breadcrumb Navigation in Namaste! LMS

Since the introduction of the new [namaste-breadcrumb] shortcode in Namaste! LMS it’s now easy to add a breadcrumb navigation that lets you see your position in the learning process. It looks like this:

Course link >> Module link >> Lesson

Or if you don’t use modules:

Course link >> Lesson.

Simple. You can just drop the shortcode inside every lesson and/or module and you’ll get the navigation.

But how to add it to your theme?

There are two ways: the easiest is to get the Namaste! Premium theme which has this option built in:

Breadcrumb navigation in Namaste! LMS Theme

The other method is manual. It’s also not too hard, so let me explain how to do it. You’ll need a very basic understanding of HTML, editing PHP files and a text editor like Notepad++

  1. Download your theme locally.
  2. Open the file single.php. Use “Save as” and save it as single-namaste_lesson.php
  3. In that file find the following line:
    get_template_part( 'template-parts/content', get_post_format() );
  4. Replace it with this:
    get_template_part( 'template-parts/content-lessons', get_post_format() );
  5. Open the file template-parts/content.php. Use “Save as” and save it as template-parts/content-lessons.php
  6. Go right before the following line that wraps the article:
    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

    And add the following code:

    <?php echo do_shortcode('[namaste-breadcrumb]');?>

    Feel free to wrap it in a div or another element if you like.

That’s it. If you use modules, you need to repeat the steps but save the files as single-namaste_module.php and template-parts/content-modules.php. Also the line in step 4 will be like this:

get_template_part( 'template-parts/content-modules', get_post_format() );

Don’t forget that the shortcode allows you to use custom separator so you can use it like this:

<?php echo do_shortcode('[namaste-breadcrumb separator="/"]');?>

 

Namaste! LMS Bridge for GamiPress

We have just released an integration between Namaste! LMS and GamiPress.

The integration adds new activity events that let you award GamiPress points of any type when any of the following events happen in Namaste! LMS:

For Courses

  • When a student finish a course
  • When a student finish a specific course

For Modules (When Modules are Enabled)

  • When a student user finish a module
  • When a student finish a specific module
  • When a student finish a module of a specific course

For Lessons

  • When a student complete a lesson
  • When a student complete a specific lesson
  • When a student complete a lesson of a specific course

The new events are visible in the “When” drop-down selector in Add/Edit point type page:

Feel free to send us any suggestions for other events in this integration.