-
Hello,
I want to add a custom popup on course curriculum unit in single course page. I want to add some short-codes in that popup like Amazon S3 videos or any other Iframe video. So please tell me how can I do that.It will be great is I can add that short-code in particular unit page. And when I click on the Unit name In curriculum section on single page that Short-code will appear in a Pop-up there.
Thank You .
Yes there is a setting in the course “Full units in Curriculum” enable this setting then a detail option will appear in the units in curriculum and when you click it, the full units will open in a popup.
But make sure there is a catch in this setting i.e. even non logged in users or the members who have not purchased the course can also see the full units.
So what is the solution for that. I do not want to show that full unit to those members who haven’t purchased that course..
I found a solution for my problem.
I used these two threadsFor Enable Students subscribed to Course to view units from Curriculum:-
For Open FREE units in a Popup from Course Curriculum:-
https://wplms.io/support/knowledge-base/open-free-units-in-a-popup-from-course-curriculum/
I made some changes in a function:-
I changed thisfunction wplms_custom_course_curriculum_free_access_2($html,$lesson,$course_id){
$free=get_post_meta($lesson,’vibe_free’,true);
if(vibe_validate($free))
$html =’‘.get_the_title($lesson).(vibe_validate($free)?”.__(‘FREE’,’vibe’).”:”).’‘;
return $html;
}to this
function wplms_custom_course_curriculum_free_access_2($html,$lesson,$course_id){
$free=get_post_meta($lesson,’vibe_free’,true);
if(!vibe_validate($free))
$html =’‘.get_the_title($lesson).(!vibe_validate($free)?”.__(‘FREE’,’vibe’).”:”).’‘;
return $html;
}Thanks for sharing this information here. It will be useful to other users also.
The topic ‘Add popup on courriculum unit.’ is closed to new replies.