LifterLMS
Forum Replies Created
-
I’m not entirely sure what you’re seeing here as I’m not seeing this issue on my local with WP 5.0 and the latest LifterLMS WC.
Can you submit a support ticket about this issue at https://lifterlms.com/my-account/my-tickets so I can look at your system report and review this issue with the premium add-on more closely.
Thanks
Nothing’s changed in LifterLMS (or in WordPress) with regards to plugin installation.
Are you not seeing the Plugins -> Add New area on your site?
Or are you not seeing LifterLMS when you search for plugins?
If either of these are your issues you should try disabling all other plugins and see if the issue goes away. Our installation steps remain identical as before so I’m really not sure why it would stop working suddenly.
Let me know if that helps,
Forum: Plugins
In reply to: [LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes] Custom FieldsSecond first: if you add custom meta data you must decide where / how you want to display that custom meta data (on your own). It’s custom. I haven’t written a robust-enough api to automatically do it all for you, sorry…
Add data to the information tab of the student’s reporting screen by using this hook: https://lifterlms.com/docs/add-custom-fields-lifterlms-checkout-open-registration/#display-reporting
Use these filters to display (and edit) from the user’s WP profile on the admin panel: https://lifterlms.com/docs/add-custom-fields-lifterlms-checkout-open-registration/#display-profile-wp
Firstly last: You’re talking about the form on the checkout screen then you can pretty easily figure out if the access plan is for a course or a membership. In your existing code that adds the fields you’ll want to access an LLMS_Access_Plan object to check what the plan grants access to:
$plan = isset( $_GET['plan] ) ? llms_get_post( $_GET['plan] ) : false; if ( ! $plan ) { return; } $type = get_post_type( $plan->get( 'product_id' ) ); if ( 'course' === $type ) { // do course stuff } elseif ( 'llms_membership' === $type ) { // do membership stuff }I wrote that really quick and didn’t run it. Use at your own risk for fear of typos and errors.
That’s the basic idea though.
Hope that helps,
Quizzes must be entered via the LESSON (you cannot access quizzes directly) because quizzes can be associated with multiple lessons but quiz attempts must be specific to one lesson/quiz combination.
We used to store quiz data in the session so you could — technically — access quizzes directly if there was quiz session data associated with your user. 3.9 fixed a lot of session related issues and removed this “loophole” of sorts.
So, ensure you go to the lesson first and then click the “Take QUiz” button on the associated lesson.
If you have further issues please gather the information in the sticky and reply back so I can investigate further.
Also this FAQ outlines the steps you need to take in greater detail: https://lifterlms.com/docs/i-cant-take-the-quiz-i-just-created/
sure, use this function: https://github.com/gocodebox/lifterlms/blob/2987a4c84bd4a8960f912e525c623ceac27a9283/includes/functions/llms.functions.person.php#L99-L114
$user_id = 123; $membership_id = 456; $trigger = 'because_i_said_so'; llms_enroll_student( $user_id, $membership_id, $trigger );You asked for a hook but I think you already have your hook and you need the LifterLMS function to use within your action coming from somewhere else (I think). If I’m misunderstanding let me know.
Hope that helps,
- This reply was modified 9 years ago by LifterLMS.
We had some quiz-related issues in 3.8 and rewrote our quizzing api’s in 3.9. Assets and endpoints have been changed so this “0” is a sign of attempting to access an AJAX endpoint that no longer exists. That happens when you’re using cached JS assets.
Please ensure you’re on the latest version of LifterLMS and then ensure you’re not serving cached assets if you’re using any caching mechanisms.
If an individual student is having issues have them clear their local browser cache.
Hope that helps.