-
AuthorPosts
-
October 20, 2018 at 3:11 pm #16137
SAAD AHMADParticipantUNABLE TO BUILD THE APP , DOES NOT MAKE APK AND ALSO THE APP DOES NOT SHOW CONTENT IN UNITS (CONTENT WAS EMBEDDED FROM GOOGLE DRIVE USING USE-YOUR-DRIVE PLUGIN SHORTCODES. PLEASE HELP ME MAKE THIS APP WORK ASAP/
October 22, 2018 at 12:10 pm #16156
AlexKeymasterWell third party shortcode support is not available in wplms app as of now , what you can do is to enable a button to open the the unit in in app browser which will run all scripts and your shortcode content will show up .
for that please goto src->services-> config.ts file follow screenshot : http://prntscr.com/l8z6bf
and then please add this given code in your wplms-customizer.php file in wplms customizer plugin :
add_filter(‘wplms_direct_access_tounit’,’enable_access_tostudents’,999,2);
function enable_access_tostudents($flag,$post){
if(!empty($_GET) && !empty($_GET[‘access_token’])){
$token = urldecode ($_GET[‘access_token’]);
$course_id = $_GET[‘id’];
global $wpdb;
$user_id = $wpdb->get_var(“SELECT user_id FROM {$wpdb->usermeta} WHERE meta_key = ‘$token'”);
if(!empty($user_id) && is_numeric($user_id)){
$check = wplms_user_course_active_check($user_id,$course_id);
if($check){
return 0;
}
}
}
return $flag;
}
October 23, 2018 at 12:45 pm #16195
SAAD AHMADParticipantI am getting these errors on my theme now.
https://drive.google.com/file/d/1AGrGHUVsh9lQ3jFvWEXfv7iw-SvmWy-J/view?usp=sharing
https://drive.google.com/file/d/1-nMt6ngLMsiuubn035p8BaG8fpnGN77C/view?usp=sharing
October 24, 2018 at 12:39 pm #16207
AlexKeymasterPlease remove the code and copy code from this link :
https://gist.github.com/alexvibealex/4d837d800052b4cf24c5a006ce03f3fa
October 25, 2018 at 7:02 am #16225
AlexKeymasterWell please do ignore this. This error wont appear in mobile .
-
AuthorPosts
- You must be logged in to reply to this topic.