Great, seems to work fine.
But the site that you tested on was just my development site. I wan´t to make the change for my production site as well. What did you do to upgrade the course module? Did I have a old version of the plugin, or is there a issue in the latest course module plugin 2.5.2?
This reply has been marked as private.
I also want the discount coupon codes for instructors, in front end.
After update I also get the error on line 316 after upgrade.
Sorry for late reply.
It seems to work... MANY thanks.
Yes, the issue was with the translation.
Thanks :)
Warning: sprintf(): Too few arguments in /storage/content/62/163362/qampus.se/public_html/wp-content/plugins/vibe-course-module/includes/bp-course-activity.php on line 272
Hi Alex,
I found the issue, at least in my installation.
It has to do with the "WP Admin area access" in WPLMS - Buddypress settings. I had this set to only administrators. If I change it to All, or Instructor/Administrator then it works with uploads on my site.
Can you try on your site?
I have created a video in order to show you that it works on a older version but not after an upgrade.
https://www.youtube.com/watch?v=94w-6UyWKIU&feature=youtu.be
I have now done some tests.
Have installed a old version of WPLMS 2.0.7 on a sub-domain, no third party plugins are installed. I am able to upload images and files as an instructor. I then upgrade the theme and plugins to the latest version 2.0.9.3 for theme and 2.0.9.1 for plugins. Then I am no longer able to upload images.
So for my point of view it seems to be something with the theme and your plugins.
I can add that the upload is running, but when it has been upload it says "there was an error in the upload, please try again later". If the instructor reloads the page and go to Add Media again then the image is showing in the Media Library.
Credentials.
www.qampus.se
Admin user
Userid: p511dvi
Password: Alicia0810163584
Instructor User
Userid: Qampuss
Password: Alicia0810163584
Hm, i solved it with the code, change some numbers.
Yes 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?