Home › Forums › Legacy Support › Support queries › Update Issues › Upgrade to v4
- This topic has 134 replies, 4 voices, and was last updated 2 years, 3 months ago by Veronica.
-
AuthorPosts
-
June 24, 2022 at 1:54 pm #386256VeronicaModeratorhi 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; }
June 24, 2022 at 4:28 pm #386271hashurParticipantThanks I already have code added. To be clear, custom course desalt can only be added in the course backend ?June 25, 2022 at 2:29 pm #386300VeronicaModeratorThis reply has been marked as private.June 25, 2022 at 9:07 pm #386309hashurParticipantI 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 YouJune 27, 2022 at 2:38 pm #386350VeronicaModeratorhi on your course layout I am unable to get the field that you have added can you share any screenshots?June 27, 2022 at 8:50 pm #386373hashurParticipantPlease 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 YouJune 28, 2022 at 11:27 am #386398VeronicaModeratorhi 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 pluginadd_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; }
June 29, 2022 at 6:49 pm #386467hashurParticipantThat's the same code I added earlier. Please check wplms customizer plugin to see. Thank YouJune 30, 2022 at 9:14 am #386487VeronicaModeratorok, let me check...June 30, 2022 at 9:37 am #386488VeronicaModeratorThis reply has been marked as private.June 30, 2022 at 7:03 pm #386514hashurParticipantThank 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 YouJuly 1, 2022 at 3:09 pm #386540Anshuman SahuKeymasterHi I want to know exactly where did you add the custom code for the " Set number of pdh units " field in course settings .July 1, 2022 at 3:33 pm #386541hashurParticipantI did not add this setting, I only added the custom course details. I wish it works,.July 2, 2022 at 3:58 pm #386561Anshuman SahuKeymasterThis reply has been marked as private.July 2, 2022 at 8:46 pm #386564hashurParticipantAlex: 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. -
AuthorPosts
- The topic ‘Upgrade to v4’ is closed to new replies.