• Resolved isydee

    (@isydee)


    Dear All,
    this morning I update the plugin but something not working anymore.

    In my course page “/courses/nameofcourse” I found description and lessons. When I pick a lesson the link is “/courses/nameofcoursenameoflesson” and not “/lessons/nameoflesson”.

    Where is the problem? I check everything plugin config, permalink, lessons, courses, orders…

    Anybody may help me?

    Isydee

    https://wordpress.org/plugins/learnpress/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi Isydee

    Firstly, in front-end, you can see a course includes curriculum (lessons and quizzes). And the most important thing is those lessons just belong to that course, that why we display those lessons inner that one with the link as you mentioned. So, thanks for your feedback, but it’s how we structure lessons link for being suitable with learning management system.

    Thanks for your concern again. If you have another questions, feel free to let us know.

    Ken

    Thread Starter isydee

    (@isydee)

    Hi Ken,
    thanks for answer, I want to explain with an image my problem after the updgrade.

    Check the red box and see the link on the status bar… there is something wrong and the link not working.

    Thanks again.

    Isydee

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi isydee,

    It’s early morning right now, I will try to reproduce and fix the issue then continue our discussion. Sorry for any convenience.

    Ken

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi isydee,

    I catched same error when set up numeric permalink because this one (and some other) does not have slash at the end of the link. We fixed and update version will be available in next weekend. In your case, there are two ways to solve this problem. First, try to use other kind of permalink (like post name, day and name, etc… which has end slash). Second, I will provide you the code of the function processed it, here you go:
    function learn_press_course_lesson_permalink_friendly in directory /learnpress/inc/lpr-core-functions.php, the replace code is:

    if ( '' != get_option( 'permalink_structure' ) ) {
    	if ( preg_match( '!\?lesson=([^\?\&]*)!', $permalink, $matches ) ) {
    		$permalink = preg_replace( '!/?\?lesson=([^\?\&]*)!', '/' . basename( get_permalink( $matches[1] ) ), untrailingslashit( $permalink ) );
    	}
    }
    
    return $permalink;

    Again, we apologize for any inconvenience because of this and we really appreciate your reporting.

    Ken

    Thread Starter isydee

    (@isydee)

    I try in another website with post name permalink only… I’ve the same error.

    I change the code in lpr-core-functions.php… this is the results
    You add the “/” but the link doesn’t change and doesn’t work

    Wrong (current)
    http://www.boveri.com/pro/courses/creare-vera-ruggine-su-plastica/preparazione-della-superficie-in-plastica

    Correct
    http://www.boveri.com/pro/lessons/preparazione-della-superficie-in-plastica

    Thanks again.

    Isydee

    Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi Isydee,

    Like I mentioned above, the link of lesson is exactly like your current one. LearnPress system shows all content of a lesson inner a course after you click a lesson link. You said It didn’t work, do you mean that no lesson content is displayed after you click the link? Edit some content for that lesson and try again. Sorry about that inconvenience.

    Ps: LearnPress is running beta version, that means your feedback (about the link, the content, …, every single thing) is very important to us for upgrading this product. Thanks a lot.

    Ken

    Thread Starter isydee

    (@isydee)

    Hi Ken,
    confirm… no lesson content is displayed after I click the link.

    Nothing happen if I create another lesson or edit existing lesson and course.

    Isydee

    Plugin Contributor Thong Tran

    (@thongta)

    Hi Isydee,

    In case, please create a support topic at: http://thimpress.com/forums/forum/plugins/learnpress/ (there is a box to insert site access information) with details information to check & debug on your WordPress site.

    We will go check and fix things for you without charge.

    Best Regards,
    Thong Tran

    Thread Starter isydee

    (@isydee)

    Dear all,
    thanks for link… here the results after the click

    Regards,

    Isydee

    Plugin Contributor Thong Tran

    (@thongta)

    Well, that forum is for paid users only, I’m sorry. Please send an email to learnpress@thimpress.co instead.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Lesson links not working’ is closed to new replies.