Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Course List: Add new option to show current user's progress #25

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

bernhardkaindl
Copy link

@bernhardkaindl bernhardkaindl commented Jul 17, 2023

Hi @ibrahim-kardi!

This Tutor LMS Elementor Addon's Course List element shows course cards for the courses. The benefit of this element over Tutor LMS dashboard is that it is customizable in multiple ways.

4 commits in this PR:

@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch from 5fee020 to a43e417 Compare July 17, 2023 08:10
@bernhardkaindl
Copy link
Author

bernhardkaindl commented Aug 1, 2023

@ibrahim-kardi @shewa12 @wprashed Please consider merging improvement, thanks!

@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch 5 times, most recently from 448b876 to 23ea760 Compare August 4, 2023 23:41
@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch from 23ea760 to a150622 Compare August 19, 2023 20:08
@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch from b4e10f8 to 5a5d327 Compare September 21, 2023 19:42
Fix crash of Elementor when $authordata is not set, which
may be caused by slight inconsistencies of the database.

Tutor LMS handles these gracefully, so should do the Elementor
addon.

For example, when courses were imported but the author was not
imported beforehand, $authordata may not be set. Since it would
be False and not an array with an ID, this could crash the Elementor
editor when opening a page for editing.

Fix this crash by checking if $authordata is an array before
attempting to use $authordata->ID, and return an empty profile_url
in this case.
@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch 2 times, most recently from c563f63 to fa7e1a4 Compare September 22, 2023 22:27
On the Tutor LMS frontend user dashboard page (site.edu/dashboard),
the 1st dashboard entry and the entry "Enrolled courses" show the
list of enrolled courses.

This plugin's Course List element shows the same course cards.
The benefit of this element is of course that it is customizable.

Add an option to this plugin's Course List element to enable showing the
current user's course progress in the course list's course cards in the
same way the dashboard shows the user's course progress for each course.

The configuration setting is copied from the "Meta Data" toggle.
It defaults to be disabled to only show the user's course progress
when explicitly requested to not cause change to existing installations.

Additional minor fixes:
- Fix spelling of "Course Per Page" to "Courses Per Page"
- Fix Elementor Compatibility warning to show the version up to which
  this plugin is tested with, not "Unknown".
@bernhardkaindl bernhardkaindl force-pushed the course_list_current_user_progres branch from fa7e1a4 to 08fd570 Compare September 22, 2023 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant