• Resolved ryancole

    (@ryancole)


    In the LearnPress single Lesson popup, a WordPress Tooltips plugin conflict results in displaying the parent Course description instead of the Lesson description and gets duplicated twice. Any quick help for this?

    • This topic was modified 9 years, 3 months ago by ryancole.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ryancole

    (@ryancole)

    Conflicting LearnPress Template: /wp-content/plugins/learnpress/templates/content-lesson/description.php

    Template Code:
    =========================================
    <?php
    /***/
    $course = LP()->global[‘course’];
    if ( !defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed directly
    }
    $item = LP()->global[‘course-item’];
    if ( !$item ) {
    return;
    }
    ?>
    <div class=”course-lesson-description”>
    <?php if ( $the_content = apply_filters( ‘learn_press_course_lesson_content’, $item->get_content() ) ): ?>
    <?php echo $the_content; ?>
    <?php else: ?>
    <?php learn_press_display_message( __( ‘This lesson has no content’, ‘learnpress’ ) ); ?>
    <?php endif; ?>
    </div>
    =========================================

    • This reply was modified 9 years, 3 months ago by ryancole.
    • This reply was modified 9 years, 3 months ago by ryancole.
    Plugin Author Tomas

    (@zhuyi)

    Hi,

    Thanks for messages. πŸ™‚

    For understand the problem, better, could you please:
    1: Give me a URL which the problem existing.
    2: Give me a copy of your plugin and give me your settings of your plugin

    I am happy to do a check on my development platform and find what is happen, thanks, have a good day. πŸ™‚

    Best Regards,
    Tomas

    Thread Starter ryancole

    (@ryancole)

    Thank you Tomas for helping, you can do these quick steps:

    1- Download and install LearnPress plugin: https://ww.wp.xz.cn/plugins/learnpress/
    2- From the LearnPress menu: Create a new Course with a dummy description-1
    3- From the LearnPress menu: Create a new Lesson with a dummy description-2
    4- From the Course Edit page: Add the Lesson item to the Course from the related menu
    5- View the Lesson created, you will see the dummy description-2 displayed
    ===
    6- Now install WordPress Tooltips
    7- Go again to the Lesson view page, refresh, you will see the Lesson is displaying the parent Course dummy description-1 and duplicates it twice!

    Plugin Author Tomas

    (@zhuyi)

    Hi @ryancole

    Thanks for the message. πŸ™‚

    I will download it and do a test and reply you again. πŸ™‚

    Thanks, have a happy day with your family. πŸ™‚

    Best Regards,
    Tomas

    Thread Starter ryancole

    (@ryancole)

    Thanks you too be good, Any news? πŸ™

    • This reply was modified 9 years, 2 months ago by ryancole.
    Plugin Author Tomas

    (@zhuyi)

    Hi @ryancole,

    Thanks for the message. πŸ™‚

    I have some disease and I am sorry for the delay of the reply, I installed learnpress and and our plugin and followed your steps at below:

    1- Download and install LearnPress plugin: https://ww.wp.xz.cn/plugins/learnpress/
    2- From the LearnPress menu: Create a new Course with a dummy description-1
    3- From the LearnPress menu: Create a new Lesson with a dummy description-2
    4- From the Course Edit page: Add the Lesson item to the Course from the related menu
    5- View the Lesson created, you will see the dummy description-2 displayed
    ===
    6- Now install WordPress Tooltips
    7- Go again to the Lesson view page, refresh, you will see the Lesson is displaying the parent Course dummy description-1 and duplicates it twice!

    I found I have created courses http://mydomain.com/courses/description-1/ successfully, when I open http://mydomain.com/courses/description-1/, I do see the Lesson is displaying, but I did not found ‘the parent Course dummy description-1 and duplicates it twice’? Maybe there are anything miss-understanding?

    If you can let me replay the error, I am happy to check more, thanks. Have a good day. πŸ™‚

    Best Regards,
    Tomas

    • This reply was modified 9 years, 2 months ago by Tomas.
Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘LearnPress Conflict with WordPress Tooltips Plugin’ is closed to new replies.