Home › Forums › Legacy Support › Support queries › Other issues › This course can not be taken. Contact Administrator.
Tagged: contact administrator
- This topic has 8 replies, 2 voices, and was last updated 6 years, 7 months ago by marinarov.
Viewing 9 posts - 1 through 9 (of 9 total)
-
AuthorPosts
-
October 1, 2017 at 7:09 pm #130593marinarovSpectatorHello guys, I am having this problem. My website is https but i set it in general ---> wordpress adress and site adress are both with https. If you get into a course and click in continue course you get ok into the course but if you want to navigate in the curriculum to any previous or next unit you get that message "This course can not be taken. Contact Administrator."October 1, 2017 at 7:10 pm #130594marinarovSpectatorThis reply has been marked as private.October 3, 2017 at 9:10 am #130713Anshuman SahuKeymasterPlease try adding this given code in your wplms-customizer.php file in wplms customizer plugin : add_action('wplms_after_start_course',function(){ if(!empty($_POST['course_id'])){ echo ' <script> jQuery.cookie("course", '.$_POST['course_id'].', { expires: 1 }); </script> '; } });October 3, 2017 at 9:51 am #130718marinarovSpectatorHello alex! When I put this code like this, the website crashes, may be is not in the right place <?php /* Plugin Name: WPLMS Customizer Plugin Plugin URI: http://www.Vibethemes.com Description: A simple WordPress plugin to modify WPLMS template Version: 1.0 Author: VibeThemes Author URI: http://www.vibethemes.com License: GPL2 */ /* Copyright 2014 VibeThemes (email : [email protected]) wplms_customizer program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. wplms_customizer program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with wplms_customizer program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ include_once 'classes/customizer_class.php'; if(class_exists('WPLMS_Customizer_Plugin_Class')) { // instantiate the plugin class $wplms_customizer = new WPLMS_Customizer_Plugin_Class(); add_action('wplms_after_start_course',function(){ if(!empty($_POST['course_id'])){ echo ' jQuery.cookie("course", '.$_POST['course_id'].', { expires: 1 }); '; } }October 3, 2017 at 10:39 am #130735Anshuman SahuKeymasterit seems like the code was not pasted properly . Please provide your ftp credentials in private reply .I will add the code for you .October 3, 2017 at 10:47 am #130740marinarovSpectatorLike this website doesn´t crash but still having the same contact administrator error include_once 'classes/customizer_class.php'; if(class_exists('WPLMS_Customizer_Plugin_Class')) { // instantiate the plugin class $wplms_customizer = new WPLMS_Customizer_Plugin_Class(); add_action('wplms_after_start_course',function(){ if(!empty($_POST['course_id'])){ echo ' jQuery.cookie("course", '.$_POST['course_id'].', { expires: 1 }); '; } }); }October 3, 2017 at 10:48 am #130741marinarovSpectatorThis reply has been marked as private.October 4, 2017 at 1:20 pm #130922Anshuman SahuKeymasterThis reply has been marked as private.October 6, 2017 at 10:57 am #131219marinarovSpectatorThanks alex!
-
AuthorPosts
Viewing 9 posts - 1 through 9 (of 9 total)
- The topic ‘This course can not be taken. Contact Administrator.’ is closed to new replies.