Home Forums Academy Redirect to lesson #1 after user click 'take this course'

Redirect to lesson #1 after user click 'take this course'

  • ihor Staff

    Please sign in or register to view replies from the support staff.

    noxstar

    How can I do this with the latest version of Academy?

    ihor Staff

    Please sign in or register to view replies from the support staff.

    noxstar

    Worked! Thanks man!

    dionhorton

    Will this still work on version 4.6.1?

    ihor Staff

    Please sign in or register to view replies from the support staff.

    dionhorton

    Im having a hard time adding it after line 919. It just gives me a error message once I test it. Any ideas?

    dionhorton

    Im using version 2.15 and just want to redirect to lesson #1 page after they click ‘take this course’ button on course page.

    ihor Staff

    Please sign in or register to view replies from the support staff.

    dionhorton

    I did the same thing and keep getting this error message once I test it on my website.
    Warning: Missing argument 2 for ThemexCourse::getLessons(), called in /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php on line 922 and defined in /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php on line 1064

    Warning: Cannot modify header information – headers already sent by (output started at /home2/dionhorton/public_html/wp-content/themes/academy/framework/classes/themex.course.php:1064) in /home2/dionhorton/public_html/wp-includes/pluggable.php on line 1174

    ihor Staff

    Please sign in or register to view replies from the support staff.

    dionhorton

    Perfect,that worked. Thank you

    nwpastry

    Hi,
    Changing this codes work perfectly, but if the course has no lessons, redirects me to somewhere else. Is there any way to redirect to the course page or a specific page if the course has no lessons?

    I’ve used the following code in academy/sidebar-profile.php file:

    line 22:
    <?php ThemexCourse::refresh($ID, true); ?>

    line 28:

    <h4 class=”nomargin”><a>ID); ?>”><?php echo get_the_title($ID); ?></a></h4>

    nwpastry

    Also, I would need to redirect to the first lesson after a course is paid. Is there any way to do that? Of course, the same here, if the course has no lessons, redirect them to a specific page or to the course page.

    Thanks

    ihor Staff

    Please sign in or register to view replies from the support staff.

Viewing 15 posts - 16 through 30 (of 42 total)

You must be logged in to reply to this topic.