Home › Forums › Legacy Support › Support queries › Setup issues › Add Certificate
Tagged: certificate
- This topic has 9 replies, 2 voices, and was last updated 8 years, 5 months ago by H.K. Latiyan.
Viewing 10 posts - 1 through 10 (of 10 total)
-
AuthorPosts
-
May 17, 2016 at 10:02 pm #48642DannySpectatorFor some reason I am not able to add certificates anymore in Front End course creation. Using Modern theme and new front end creation. All themes and plugins are up to date, but I also had this issue in previous versions. My settings in wplms - course setting is Course Linkage = On Course Privacy = On I have these codes in the customizer plugin. /Function to remove instructor privacy but keep certificate/ add_filter('wplms_fontend_cpt_query','custom_wplms_fontend_cpt_query',999); function custom_wplms_fontend_cpt_query($args){ if($args['post_type']=='certificate'){ unset($args['author']); } return $args; } /Hides certificate and badges for other users/ add_action('init','custom_hide_certificate_badge'); function custom_hide_certificate_badge(){ if(is_user_logged_in() && !bp_is_my_profile()){ remove_action('bp_before_profile_content','show_profile_snapshot'); } }May 17, 2016 at 10:03 pm #48645DannySpectatorCredentials url: www.qampus.se Userid: p511dvi Password: Alicia0810163584May 18, 2016 at 6:33 am #48688H.K. LatiyanParticipantThanks for sharing the credentials. I checked your site but I couldn't replicate the issue on your site, it was working fine on your site. Please refer the video in my next private reply.May 18, 2016 at 6:33 am #48689H.K. LatiyanParticipantHere is the video: http://screencast-o-matic.com/watch/cDhF1xicC0May 18, 2016 at 8:48 am #48728DannySpectatorHi Latiyan, Yes, you are right. It works when you are admin, but not as an instructor. Didn´t try it on the admin before. But if you use these credentials you can see the issue. Username: Qampuss Password: Alicia0810163584May 19, 2016 at 5:06 am #48893H.K. LatiyanParticipantOk I again checked your site with instructor credentials and yes instructor cannot add the certificate, the reason is that the certificate is created by the admin and you have enabled force instructor content privacy in wplms -> course manager. If you disable this setting then the instructor can add the certificate because that setting will not allow other instructors to see the content created by another instructors and admin is also an instructor. Therefore to add certificate in course through instructor account either disable the setting or ask your instructors to create their own certificates to add in their course.May 19, 2016 at 9:59 am #48999DannySpectatorYes it works when I disable the instructor privacy, but I can´t have my instructors to have access to other instructors/or admin media files and courses. I have created a ticket about this before and Alex gave me this code. add_filter('wplms_fontend_cpt_query','custom_wplms_fontend_cpt_query',999); function custom_wplms_fontend_cpt_query($args){ if($args['post_type']=='certificate'){ unset($args['author']); } return $args; } https://wplms.io/support/forums/topic/certificate-front-end/ I think it worked before because I have closed the ticket, but it´s not working anymore. So the thing that I want is Instructors privacy but not for certificates. Can you please look at the code and see if something needs to be changed?May 20, 2016 at 6:00 am #49183H.K. LatiyanParticipantI checked the code the only problem is the spelling mistake of frontend in the hook, I used this code and it works fine on my test setup. Please use this code: add_filter('wplms_frontend_cpt_query','custom_wplms_frontend_cpt_query',999); function custom_wplms_frontend_cpt_query($args){ if($args['post_type']=='certificate'){ unset($args['author']); } return $args; }June 8, 2016 at 9:31 pm #52342DannySpectatorSorry for late reply. It seems to work... MANY thanks.June 9, 2016 at 4:12 am #52378H.K. LatiyanParticipantThanks for confirming, so marking the topic as resolved and closing the topic.
-
AuthorPosts
Viewing 10 posts - 1 through 10 (of 10 total)
- The topic ‘Add Certificate’ is closed to new replies.