Upgrade to v4

Home Forums Legacy Support Support queries Update Issues Upgrade to v4

Viewing 15 posts - 106 through 120 (of 135 total)
  • Author
    Posts
  • #386256
    Veronica
    Moderator
    hi 1 , it can only be changed by admin from backend 2 . and this is from custom code if you add the code then you will be able to add the fields..
    add_filter('wplms_course_creation_tabs','add_in_front_end');
     
    function add_in_front_end($settings){
                
                    
        $fields = $settings['course_settings']['fields'];
        $arr=array(array(
                    'label' => __('custom','wplms-front-end'), // <label>
                    'desc'  => __('custom','wplms-front-end'), 
                    'text'=>__('custom','wplms-front-end' ),// description
                    'id'  => 'vibe_custom', // field id and name
                    'type'  => 'text', // type of field
                    ));
    
        array_splice($fields, (count($fields)-1), 0,$arr );
        $settings['course_settings']['fields'] = $fields;  
    
      return $settings;
    }
    #386271
    hashur
    Participant
    Thanks I already have code added. To be clear, custom course desalt can only be added in the course backend ?
    #386300
    Veronica
    Moderator
    This reply has been marked as private.
    #386309
    hashur
    Participant
    I see where, but it does not work. I also added to the course template. see the test course I made: https://wordpress-728966-2433567.cloudwaysapps.com/course/test-course/ Thank You
    #386350
    Veronica
    Moderator
    hi on your course layout I am unable to get the field that you have added can you share any screenshots?
    #386373
    hashur
    Participant
    Please check this: 1- Added custom course details to back end of course Test Course. https://prnt.sc/2DDGQBMu7sxK 2- Now they will show in course description: https://prnt.sc/IaCjFxCAubSI 3- However, they do not appear in test course admin front end: all the way down, https://prnt.sc/edzkxNALN9ce Not sure where the no of pdh units listed is from. 4- Now, see the Udemy course layout template where course detail was added to template: https://prnt.sc/cksS1Q09099r I am missing something. Thank You
    #386398
    Veronica
    Moderator
    hi as in the settings section the value in the custom field is not saving so please try this: try to add this code in wplms-customizer.php in wp-admin>>plugins>>plugin editor>>select wplms customizer plugin
    add_filter('wplms_course_creation_tabs','add_in_front_end');
     
    function add_in_front_end($settings){
                
                    
        $fields = $settings['course_settings']['fields'];
        $arr=array(array(
                    'label' => __('custom','wplms-front-end'), // <label>
                    'desc'  => __('custom','wplms-front-end'), 
                    'text'=>__('custom','wplms-front-end' ),// description
                    'id'  => 'vibe_custom', // field id and name
                    'type'  => 'text', // type of field
    'from'=>'meta'
                    ));
    
        array_splice($fields, (count($fields)-3), 0,$arr );
        $settings['course_settings']['fields'] = $fields;  
    
      return $settings;
    }
    #386467
    hashur
    Participant
    That's the same code I added earlier. Please check wplms customizer plugin to see. Thank You
    #386487
    Veronica
    Moderator
    ok, let me check...
    #386488
    Veronica
    Moderator
    This reply has been marked as private.
    #386514
    hashur
    Participant
    Thank You Very Much. Its not saving yet. What you saw was values entered on the course back-end, once I removed them from the back-end, values do not show up anymore. I enter one custom course detail (course no. in the front end, as you see in this pic, https://prnt.sc/sLEP47s6t0cy It did not show on the course: https://wordpress-728966-2433567.cloudwaysapps.com/course/test-course/ Another thing to note, if you look at the image shared above, down in the middle, there is: Set no of PDH units, That is the other custom detail, I don't know where its from, but it also does not show on the course. The custom course details work fine from the back end, not from the course front end. Also, do I need to enable Full Course Status in Course pages. [No BP Single Page] in Course Settings. Thank You
    #386540
    Anshuman Sahu
    Keymaster
    Hi I want to know exactly where did you add the custom code for the " Set number of pdh units " field in course settings .
    #386541
    hashur
    Participant
    I did not add this setting, I only added the custom course details. I wish it works,.
    #386561
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #386564
    hashur
    Participant
    Alex: That is a link to an image, has the site name (pdhsource.com). The set no of pdh units could be (may be) from an add on plugin, you developed for me: WPLMS Custom Certificate Codes you can see it in active plugins, may be it needs update. I needed it to have no of pdh units on the certificate.
Viewing 15 posts - 106 through 120 (of 135 total)
  • The topic ‘Upgrade to v4’ is closed to new replies.